diff options
author | Marek Olšák <[email protected]> | 2018-05-17 23:26:56 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-06-13 22:00:17 -0400 |
commit | 47a57a709d5f74feb0495cd49524a4907bd773ae (patch) | |
tree | 44e1d3f731461a371adeee10b89c88285e7acdc8 /src | |
parent | e5e57c3a5e517d866be2a6fdaf6e9e59181838fd (diff) |
radeonsi: fix FBFETCH with 2D MSAA arrays
Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c index d0dd4e7cab9..d36ccf78905 100644 --- a/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c +++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c @@ -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; |