radeonsi: fix FBFETCH with 2D MSAA arrays
authorMarek Olšák <marek.olsak@amd.com>
Fri, 18 May 2018 03:26:56 +0000 (23:26 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 14 Jun 2018 02:00:17 +0000 (22:00 -0400)
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c

index d0dd4e7cab905de1af95d37b0998516e845ee6ed..d36ccf789051d95d3c7fc55fde18efbefe861742 100644 (file)
@@ -1865,7 +1865,8 @@ static void si_llvm_emit_fbfetch(const struct lp_build_tgsi_action *action,
                fmask = ac_build_load_to_sgpr(&ctx->ac, ptr,
                        LLVMConstInt(ctx->i32, SI_PS_IMAGE_COLORBUF0_FMASK / 2, 0));
 
-               ac_apply_fmask_to_sample(&ctx->ac, fmask, args.coords, false);
+               ac_apply_fmask_to_sample(&ctx->ac, fmask, args.coords,
+                                        ctx->shader->key.mono.u.ps.fbfetch_layered);
        }
 
        args.opcode = ac_image_load;