anv/UpdateDescriptorSets: Use the correct index for the buffer view
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Jan 2016 05:36:11 +0000 (21:36 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Jan 2016 05:36:11 +0000 (21:36 -0800)
src/vulkan/anv_descriptor_set.c

index 6d38d114f960ed4f574ad8d390a5f8cb345a0060..6e53f3897c813d99abe2fd2602f6b8fe0bc13498 100644 (file)
@@ -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);