etnaviv: 128 bit format needs to be CPU tiled

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37597>
This commit is contained in:
Christian Gmeiner
2025-07-15 12:16:21 +02:00
committed by Marge Bot
parent f4689fd467
commit 2373ef793b
@@ -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" */