summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_descriptor_set.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-07-11 08:53:42 -0700
committerJason Ekstrand <[email protected]>2017-07-22 21:41:12 -0700
commit1e32c8303ad917ef8380b6a66f008900f17a9e7c (patch)
tree6cce2fedc969835eb065d40c8dcaf1416d5de650 /src/intel/vulkan/anv_descriptor_set.c
parent628bfaf1c6f207ee01c59e236cef3fae942d6c55 (diff)
anv: Separate surface states by layout instead of aux_usage
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_descriptor_set.c')
-rw-r--r--src/intel/vulkan/anv_descriptor_set.c5
1 files changed, 1 insertions, 4 deletions
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),
};
}