radv: set ACCESS_NON_READABLE on the fmask expand pass output image
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 20 May 2019 08:28:02 +0000 (10:28 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 5 Jun 2019 18:50:56 +0000 (20:50 +0200)
The driver will emit GLC=1.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-By: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta_fmask_expand.c

index 12533935348727da67012020edf64e0c88a709f1..44068edc89ec9e74e58209e2dd9feb9c31246e0c 100644 (file)
@@ -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);