radeonsi: don't clamp z_samples to fix Unreal Tournament 99
authorMarek Olšák <marek.olsak@amd.com>
Sat, 18 Feb 2023 09:33:38 +0000 (04:33 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 24 Feb 2023 21:27:24 +0000 (21:27 +0000)
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>

src/gallium/drivers/radeonsi/si_state.c

index 22ff26b..78db825 100644 (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;
       }