From 9f8089139f1be6f30628fad033d87fdb8c804f80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 6 May 2020 12:27:56 -0400 Subject: [PATCH] radeonsi: use correct clear value size for EQAA in expand_fmask based on the fmask_expand_values array. Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_compute_blit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_compute_blit.c b/src/gallium/drivers/radeonsi/si_compute_blit.c index 53bc34df508..c167a8bc7ee 100644 --- a/src/gallium/drivers/radeonsi/si_compute_blit.c +++ b/src/gallium/drivers/radeonsi/si_compute_blit.c @@ -687,7 +687,8 @@ void si_compute_expand_fmask(struct pipe_context *ctx, struct pipe_resource *tex /* Clear FMASK to identity. */ struct si_texture *stex = (struct si_texture *)tex; si_clear_buffer(sctx, tex, stex->surface.fmask_offset, stex->surface.fmask_size, - (uint32_t *)&fmask_expand_values[log_fragments][log_samples - 1], 4, + (uint32_t *)&fmask_expand_values[log_fragments][log_samples - 1], + log_fragments >= 2 && log_samples == 4 ? 8 : 4, SI_COHERENCY_SHADER, false); } -- 2.30.2