anv/UpdateDescriptorSets: Use the correct index for the buffer view

This commit is contained in:
Jason Ekstrand 2016-01-04 21:36:11 -08:00
parent b8f0bea07a
commit ba7b5edc26
1 changed files with 1 additions and 1 deletions

View 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);