diff options
author | Marek Olšák <[email protected]> | 2020-05-06 12:27:56 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-15 22:12:35 +0000 |
commit | 9f8089139f1be6f30628fad033d87fdb8c804f80 (patch) | |
tree | 53efe1b1a59779cf592a58d4d087a340ca72d6e4 /src | |
parent | 2361e8e72278cfe256f80946516be7a48534e6d5 (diff) |
radeonsi: use correct clear value size for EQAA in expand_fmask
based on the fmask_expand_values array.
Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4935>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_compute_blit.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |