summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-07-18 14:44:59 +0100
committerEric Engestrom <[email protected]>2018-07-26 10:21:03 +0100
commit2cc1849afb741bef3e5f04d005e07365c90fd367 (patch)
tree695326be9936a1e2652fb5a04bc6f4bb3089a60a /src/intel/vulkan
parent2a4191bb383133a440dccf7a9797f0cbc5b7dd3b (diff)
anv: drop unused local vars
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r--src/intel/vulkan/anv_descriptor_set.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan/anv_descriptor_set.c
index 8f7f1f3ba38..66ed28292b0 100644
--- a/src/intel/vulkan/anv_descriptor_set.c
+++ b/src/intel/vulkan/anv_descriptor_set.c
@@ -902,15 +902,9 @@ anv_descriptor_set_write_template(struct anv_descriptor_set *set,
const struct anv_descriptor_update_template *template,
const void *data)
{
- const struct anv_descriptor_set_layout *layout = set->layout;
-
for (uint32_t i = 0; i < template->entry_count; i++) {
const struct anv_descriptor_template_entry *entry =
&template->entries[i];
- const struct anv_descriptor_set_binding_layout *bind_layout =
- &layout->binding[entry->binding];
- struct anv_descriptor *desc = &set->descriptors[bind_layout->descriptor_index];
- desc += entry->array_element;
switch (entry->type) {
case VK_DESCRIPTOR_TYPE_SAMPLER: