anv: drop unused local vars
authorEric Engestrom <eric.engestrom@intel.com>
Wed, 18 Jul 2018 13:44:59 +0000 (14:44 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Thu, 26 Jul 2018 09:21:03 +0000 (10:21 +0100)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_descriptor_set.c

index 8f7f1f3ba386de438887b9edd689f314a0e9db96..66ed28292b01897fc1d1315ca5e112a5ab49d009 100644 (file)
@@ -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: