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 <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21525>
This commit is contained in:
Marek Olšák 2023-02-18 04:33:38 -05:00 committed by Marge Bot
parent 80c0efa50f
commit 82926d93b4

View file

@ -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;
}