From 82926d93b4200f6ae67ce0c5bcdb0e925b8bc643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 18 Feb 2023 04:33:38 -0500 Subject: [PATCH] radeonsi: don't clamp z_samples to fix Unreal Tournament 99 Fixes: a29218b5 - radeonsi/gfx11: always set MSAA_NUM_SAMPLES=0 for DCC_DECOMPRESS Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8261 Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 22ff26b1ee7..78db825e708 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -3857,7 +3857,7 @@ static void si_emit_msaa_config(struct si_context *sctx) sctx->smoothing_enabled) { if (sctx->framebuffer.state.zsbuf) { z_samples = sctx->framebuffer.state.zsbuf->texture->nr_samples; - z_samples = MIN2(MAX2(1, z_samples), coverage_samples); + z_samples = MAX2(1, z_samples); } else { z_samples = coverage_samples; }