Skip to content

Commit 9dec3e8

Browse files
committed
AMD GPU 680m profile addition and edits
1 parent 992fa5c commit 9dec3e8

File tree

3 files changed

+4283
-6
lines changed

3 files changed

+4283
-6
lines changed

include/nbl/video/SPhysicalDeviceLimits.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,10 @@ struct SPhysicalDeviceLimits
232232
uint32_t maxUpdateAfterBindDescriptorsInAllPools = 1u<<20u;
233233
bool shaderUniformBufferArrayNonUniformIndexingNative = false;
234234
bool shaderSampledImageArrayNonUniformIndexingNative = false;
235-
//bool shaderStorageBufferArrayNonUniformIndexingNative = true;
235+
bool shaderStorageBufferArrayNonUniformIndexingNative = false;
236236
bool shaderStorageImageArrayNonUniformIndexingNative = false;
237237
bool shaderInputAttachmentArrayNonUniformIndexingNative = false;
238-
//bool robustBufferAccessUpdateAfterBind = true;
238+
bool robustBufferAccessUpdateAfterBind = false;
239239
bool quadDivergentImplicitLod = false;
240240
uint32_t maxPerStageDescriptorUpdateAfterBindSamplers = 500000u;
241241
uint32_t maxPerStageDescriptorUpdateAfterBindUBOs = 15u;
@@ -803,8 +803,10 @@ struct SPhysicalDeviceLimits
803803
if (maxUpdateAfterBindDescriptorsInAllPools > _rhs.maxUpdateAfterBindDescriptorsInAllPools) return false;
804804
if (shaderUniformBufferArrayNonUniformIndexingNative && !_rhs.shaderUniformBufferArrayNonUniformIndexingNative) return false;
805805
if (shaderSampledImageArrayNonUniformIndexingNative && !_rhs.shaderSampledImageArrayNonUniformIndexingNative) return false;
806+
if (shaderStorageBufferArrayNonUniformIndexingNative && !_rhs.shaderStorageBufferArrayNonUniformIndexingNative) return false;
806807
if (shaderStorageImageArrayNonUniformIndexingNative && !_rhs.shaderStorageImageArrayNonUniformIndexingNative) return false;
807808
if (shaderInputAttachmentArrayNonUniformIndexingNative && !_rhs.shaderInputAttachmentArrayNonUniformIndexingNative) return false;
809+
if (robustBufferAccessUpdateAfterBind && !_rhs.robustBufferAccessUpdateAfterBind) return false;
808810
if (quadDivergentImplicitLod && !_rhs.quadDivergentImplicitLod) return false;
809811

810812
if (maxPerStageDescriptorUpdateAfterBindSamplers > _rhs.maxPerStageDescriptorUpdateAfterBindSamplers) return false;

src/nbl/video/CVulkanPhysicalDevice.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,12 +420,10 @@ std::unique_ptr<CVulkanPhysicalDevice> CVulkanPhysicalDevice::create(core::smart
420420
properties.limits.maxUpdateAfterBindDescriptorsInAllPools = vulkan12Properties.maxUpdateAfterBindDescriptorsInAllPools;
421421
properties.limits.shaderUniformBufferArrayNonUniformIndexingNative = vulkan12Properties.shaderUniformBufferArrayNonUniformIndexingNative;
422422
properties.limits.shaderSampledImageArrayNonUniformIndexingNative = vulkan12Properties.shaderSampledImageArrayNonUniformIndexingNative;
423-
if (!vulkan12Properties.shaderStorageBufferArrayNonUniformIndexingNative)
424-
return nullptr;
423+
properties.limits.shaderStorageBufferArrayNonUniformIndexingNative = vulkan12Properties.shaderStorageBufferArrayNonUniformIndexingNative;
425424
properties.limits.shaderStorageImageArrayNonUniformIndexingNative = vulkan12Properties.shaderStorageImageArrayNonUniformIndexingNative;
426425
properties.limits.shaderInputAttachmentArrayNonUniformIndexingNative = vulkan12Properties.shaderInputAttachmentArrayNonUniformIndexingNative;
427-
if (!vulkan12Properties.robustBufferAccessUpdateAfterBind)
428-
return nullptr;
426+
properties.limits.robustBufferAccessUpdateAfterBind = vulkan12Properties.robustBufferAccessUpdateAfterBind;
429427
properties.limits.quadDivergentImplicitLod = vulkan12Properties.quadDivergentImplicitLod;
430428
properties.limits.maxPerStageDescriptorUpdateAfterBindSamplers = vulkan12Properties.maxPerStageDescriptorUpdateAfterBindSamplers;
431429
properties.limits.maxPerStageDescriptorUpdateAfterBindUBOs = vulkan12Properties.maxPerStageDescriptorUpdateAfterBindUniformBuffers;

0 commit comments

Comments
 (0)