anv: Make format_for_descriptor return an isl_format

This commit is contained in:
Jason Ekstrand
2016-05-13 12:38:12 -07:00
parent 263a8cb52d
commit 1bda8d06e5
3 changed files with 11 additions and 13 deletions

View File

@@ -599,10 +599,8 @@ void anv_UpdateDescriptorSets(
&set->buffer_views[bind_layout->buffer_index];
view += write->dstArrayElement + j;
const struct anv_format *format =
anv_format_for_descriptor_type(write->descriptorType);
view->format = format->isl_format;
view->format =
anv_isl_format_for_descriptor_type(write->descriptorType);
view->bo = buffer->bo;
view->offset = buffer->offset + write->pBufferInfo[j].offset;