Mesa (master): radv: set ACCESS_NON_READABLE on the fmask expand pass output image

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 5 18:50:20 UTC 2019


Module: Mesa
Branch: master
Commit: 7664eb8f2b55fef2da78f40e0448c8f48917a5ec
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7664eb8f2b55fef2da78f40e0448c8f48917a5ec

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Mon May 20 10:28:02 2019 +0200

radv: set ACCESS_NON_READABLE on the fmask expand pass output image

The driver will emit GLC=1.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-By: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

---

 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);




More information about the mesa-commit mailing list