From 2373ef793b949322cfaa8e3e8197dcc4ab51abc9 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Tue, 15 Jul 2025 12:16:21 +0200 Subject: [PATCH] etnaviv: 128 bit format needs to be CPU tiled Signed-off-by: Christian Gmeiner Part-of: --- src/gallium/drivers/etnaviv/etnaviv_resource.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.c b/src/gallium/drivers/etnaviv/etnaviv_resource.c index 4d5316d8659..2ad83f0c0e7 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_resource.c +++ b/src/gallium/drivers/etnaviv/etnaviv_resource.c @@ -28,6 +28,7 @@ #include "etnaviv_context.h" #include "etnaviv_debug.h" +#include "etnaviv_format.h" #include "etnaviv_rs.h" #include "etnaviv_screen.h" #include "etnaviv_translate.h" @@ -576,6 +577,10 @@ etna_resource_create(struct pipe_screen *pscreen, layout |= ETNA_LAYOUT_BIT_SUPER; } + /* 128 bit format needs to be CPU tiled specially */ + if (format_is_128bit(templat->format)) + layout = ETNA_LAYOUT_TILED; + if (/* linear base or scanout without modifier requested */ (templat->bind & (PIPE_BIND_LINEAR | PIPE_BIND_SCANOUT)) || /* compressed textures don't use tiling, they have their own "tiles" */