r300: disable microtiling for scanout buffers

Does not work with R300/R400 due to kernel driver limitations.
Suggested by Marek Olšák.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12010
Fixes: f424ef1801
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
(cherry picked from commit 8bc271e90d)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32852>
This commit is contained in:
Pavel Ondračka
2024-12-13 21:49:38 +01:00
committed by Dylan Baker
parent 7bea0dd536
commit 2cbe3468a3
2 changed files with 5 additions and 4 deletions

View File

@@ -564,7 +564,7 @@
"description": "r300: disable microtiling for scanout buffers",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "f424ef18010751aae1e70ebda363ada0bed82bda",
"notes": null

View File

@@ -510,11 +510,12 @@ static void r300_setup_tiling(struct r300_screen *screen,
break;
case 2:
tex->tex.microtile =
tex->b.bind & PIPE_BIND_SCANOUT ?
RADEON_LAYOUT_TILED : RADEON_LAYOUT_SQUARETILED;
tex->tex.microtile = RADEON_LAYOUT_SQUARETILED;
break;
}
if (tex->b.bind & PIPE_BIND_SCANOUT) {
tex->tex.microtile = RADEON_LAYOUT_LINEAR;
}
if (dbg_no_tiling) {
return;