From ba7b5edc267c8a33eb55b83f9b0ea30e73e4b2c2 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 4 Jan 2016 21:36:11 -0800 Subject: [PATCH] anv/UpdateDescriptorSets: Use the correct index for the buffer view --- src/vulkan/anv_descriptor_set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2