From 8bc271e90d9980734de7c592cf1a30684563868b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Ondra=C4=8Dka?= Date: Fri, 13 Dec 2024 21:49:38 +0100 Subject: [PATCH] r300: disable microtiling for scanout buffers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: f424ef18010751aae1e70ebda363ada0bed82bda Signed-off-by: Pavel Ondračka Part-of: --- src/gallium/drivers/r300/r300_texture_desc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/r300/r300_texture_desc.c b/src/gallium/drivers/r300/r300_texture_desc.c index c725a91ec06..cbfdac83bfa 100644 --- a/src/gallium/drivers/r300/r300_texture_desc.c +++ b/src/gallium/drivers/r300/r300_texture_desc.c @@ -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;