From edb7f67bd9c320cd47af20dc0a854e65fced7d9b Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 25 Oct 2016 10:32:18 -0700 Subject: anv/image: Add an aux_usage field for "default" aux Initially, the field is set to ISL_AUX_USAGE_NONE so this commit shouldn't bring any functional changes. Setting this field to something else will cause all sampled and storage image views to be created with AUX and blorp will start trying to respect it so set with care. --- src/intel/vulkan/genX_cmd_buffer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/intel/vulkan/genX_cmd_buffer.c') diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index dc97f03f66c..8da432e259a 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -946,14 +946,16 @@ emit_binding_table(struct anv_cmd_buffer *cmd_buffer, surface_state = desc->image_view->sampler_surface_state; assert(surface_state.alloc_size); add_image_view_relocs(cmd_buffer, desc->image_view, - ISL_AUX_USAGE_NONE, surface_state); + desc->image_view->image->aux_usage, + surface_state); break; case VK_DESCRIPTOR_TYPE_STORAGE_IMAGE: { surface_state = desc->image_view->storage_surface_state; assert(surface_state.alloc_size); add_image_view_relocs(cmd_buffer, desc->image_view, - ISL_AUX_USAGE_NONE, surface_state); + desc->image_view->image->aux_usage, + surface_state); struct brw_image_param *image_param = &cmd_buffer->state.push_constants[stage]->images[image++]; -- cgit v1.2.3