summaryrefslogtreecommitdiff
path: root/src/intel/vulkan/anv_descriptor_set.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-02-22 17:13:46 -0800
committerJason Ekstrand <jason.ekstrand@intel.com>2016-02-22 17:23:29 -0800
commit442dff8cf4c99d67e7258e376d38ec32b92a2fbf (patch)
treec450f95556844e1f4ac7f981fad0f94b2d9d88ca /src/intel/vulkan/anv_descriptor_set.c
parent2570a58bcdf30d699b89323fef60692093dee7ea (diff)
anv/descriptor_set: Stop marking everything as having dynamic offsets
Diffstat (limited to 'src/intel/vulkan/anv_descriptor_set.c')
-rw-r--r--src/intel/vulkan/anv_descriptor_set.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan/anv_descriptor_set.c
index 718bc216f7..b439f2a0c3 100644
--- a/src/intel/vulkan/anv_descriptor_set.c
+++ b/src/intel/vulkan/anv_descriptor_set.c
@@ -218,8 +218,10 @@ VkResult anv_CreatePipelineLayout(
layout->set[set].dynamic_offset_start = dynamic_offset_count;
for (uint32_t b = 0; b < set_layout->binding_count; b++) {
- if (set_layout->binding[b].dynamic_offset_index >= 0)
- dynamic_offset_count += set_layout->binding[b].array_size;
+ if (set_layout->binding[b].dynamic_offset_index < 0)
+ continue;
+
+ dynamic_offset_count += set_layout->binding[b].array_size;
for (gl_shader_stage s = 0; s < MESA_SHADER_STAGES; s++) {
if (set_layout->binding[b].stage[s].surface_index >= 0)
layout->stage[s].has_dynamic_offsets = true;