Mesa (main): anv: Drop dead code in anv_UpdateDescriptorSets

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Mar 30 13:57:15 UTC 2022


Module: Mesa
Branch: main
Commit: d876abeaa8c48dac44c843272ba218817fe89f8c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d876abeaa8c48dac44c843272ba218817fe89f8c

Author: Rohan Garg <rohan.garg at intel.com>
Date:   Wed Mar 30 14:39:10 2022 +0200

anv: Drop dead code in anv_UpdateDescriptorSets

Signed-off-by: Rohan Garg <rohan.garg at intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15666>

---

 src/intel/vulkan/anv_descriptor_set.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan/anv_descriptor_set.c
index 76696fe703c..97ad56fc43a 100644
--- a/src/intel/vulkan/anv_descriptor_set.c
+++ b/src/intel/vulkan/anv_descriptor_set.c
@@ -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,



More information about the mesa-commit mailing list