From 1e32c8303ad917ef8380b6a66f008900f17a9e7c Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 11 Jul 2017 08:53:42 -0700 Subject: anv: Separate surface states by layout instead of aux_usage Reviewed-by: Lionel Landwerlin --- src/intel/vulkan/anv_descriptor_set.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/intel/vulkan/anv_descriptor_set.c') diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan/anv_descriptor_set.c index 4b58b0be95c..91387c065e4 100644 --- a/src/intel/vulkan/anv_descriptor_set.c +++ b/src/intel/vulkan/anv_descriptor_set.c @@ -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), }; } -- cgit v1.2.3