OSDN Git Service

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 6d38d11..6e53f38 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);