mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
80c0efa50f
commit
82926d93b4
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue