anv: Separate surface states by layout instead of aux_usage

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
Jason Ekstrand
2017-07-11 08:53:42 -07:00
parent 628bfaf1c6
commit 1e32c8303a
4 changed files with 58 additions and 53 deletions

View File

@@ -615,12 +615,9 @@ anv_descriptor_set_write_image_view(struct anv_descriptor_set *set,
*desc = (struct anv_descriptor) {
.type = type,
.layout = info->imageLayout,
.image_view = image_view,
.sampler = sampler,
.aux_usage = image_view == NULL ? ISL_AUX_USAGE_NONE :
anv_layout_to_aux_usage(devinfo, image_view->image,
image_view->aspect_mask,
info->imageLayout),
};
}