From: Jason Ekstrand Date: Tue, 5 Jan 2016 05:36:11 +0000 (-0800) Subject: anv/UpdateDescriptorSets: Use the correct index for the buffer view X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba7b5edc267c8a33eb55b83f9b0ea30e73e4b2c2;p=mesa.git anv/UpdateDescriptorSets: Use the correct index for the buffer view --- diff --git a/src/vulkan/anv_descriptor_set.c b/src/vulkan/anv_descriptor_set.c index 6d38d114f96..6e53f3897c8 100644 --- a/src/vulkan/anv_descriptor_set.c +++ b/src/vulkan/anv_descriptor_set.c @@ -544,7 +544,7 @@ void anv_UpdateDescriptorSets( assert(buffer); struct anv_buffer_view *view = - &set->buffer_views[bind_layout->descriptor_index + j]; + &set->buffer_views[bind_layout->buffer_index + j]; const struct anv_format *format = anv_format_for_descriptor_type(write->descriptorType);