anv: Drop dead code in anv_UpdateDescriptorSets
authorRohan Garg <rohan.garg@intel.com>
Wed, 30 Mar 2022 12:39:10 +0000 (14:39 +0200)
committerRohan Garg <rohan.garg@intel.com>
Wed, 30 Mar 2022 13:19:47 +0000 (15:19 +0200)
Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15666>

src/intel/vulkan/anv_descriptor_set.c

index 76696fe..97ad56f 100644 (file)
@@ -1812,12 +1812,6 @@ void anv_UpdateDescriptorSets(
          &src->descriptors[src_layout->descriptor_index];
       src_desc += copy->srcArrayElement;
 
-      const struct anv_descriptor_set_binding_layout *dst_layout =
-         &dst->layout->binding[copy->dstBinding];
-      struct anv_descriptor *dst_desc =
-         &dst->descriptors[dst_layout->descriptor_index];
-      dst_desc += copy->dstArrayElement;
-
       if (src_layout->type == VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK) {
          anv_descriptor_set_write_inline_uniform_data(device, dst,
                                                       copy->dstBinding,