[Mesa-dev] [PATCH 2/3] radv: set ACCESS_NON_READABLE on the fmask expand pass output image
Samuel Pitoiset
samuel.pitoiset at gmail.com
Mon May 20 08:28:02 UTC 2019
The driver will emit GLC=1.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/amd/vulkan/radv_meta_fmask_expand.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/amd/vulkan/radv_meta_fmask_expand.c b/src/amd/vulkan/radv_meta_fmask_expand.c
index 12533935348..44068edc89e 100644
--- a/src/amd/vulkan/radv_meta_fmask_expand.c
+++ b/src/amd/vulkan/radv_meta_fmask_expand.c
@@ -51,6 +51,7 @@ build_fmask_expand_compute_shader(struct radv_device *device, int samples)
img_type, "out_img");
output_img->data.descriptor_set = 0;
output_img->data.binding = 1;
+ output_img->data.image.access = ACCESS_NON_READABLE;
nir_ssa_def *invoc_id = nir_load_local_invocation_id(&b);
nir_ssa_def *wg_id = nir_load_work_group_id(&b);
--
2.21.0
More information about the mesa-dev
mailing list