summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-11-06 12:07:36 -0800
committerJason Ekstrand <[email protected]>2015-11-06 12:16:54 -0800
commit45b1bbe80197f646e72362502fa047df372bdd4e (patch)
tree100b0f046a915fda4d8a673c2c9e71e54819e5ae /src/vulkan/anv_pipeline.c
parentf029e0ce13b1fd6182c98a76df3920431a867589 (diff)
anv: Add a descriptor_index to anv_descriptor_set_binding_layout
Diffstat (limited to 'src/vulkan/anv_pipeline.c')
-rw-r--r--src/vulkan/anv_pipeline.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vulkan/anv_pipeline.c b/src/vulkan/anv_pipeline.c
index 9fb5ddba20b..1555b23fc69 100644
--- a/src/vulkan/anv_pipeline.c
+++ b/src/vulkan/anv_pipeline.c
@@ -1230,9 +1230,9 @@ VkResult anv_CreatePipelineLayout(
for (uint32_t set = 0; set < pCreateInfo->descriptorSetCount; set++) {
struct anv_descriptor_set_layout *set_layout = l.set[set].layout;
- unsigned set_offset = 0;
for (uint32_t b = 0; b < set_layout->binding_count; b++) {
unsigned array_size = set_layout->binding[b].array_size;
+ unsigned set_offset = set_layout->binding[b].descriptor_index;
if (set_layout->binding[b].stage[s].surface_index >= 0) {
assert(surface == l.set[set].stage[s].surface_start +
@@ -1253,8 +1253,6 @@ VkResult anv_CreatePipelineLayout(
}
sampler += array_size;
}
-
- set_offset += array_size;
}
}
}