From 42b90f858e70792bf79b2cdd489c8d0f96f88174 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Wed, 10 Sep 2025 11:48:45 +0200 Subject: [PATCH] pan/format: Fix the mapping for Z32_FLOAT on v7+ Mapping Z32_FLOAT to R32F works fine until we start using AFBC(Z32), which triggers DATA_INVALID faults. That's not an issue on v9+ because the compression mode and texture format are decorrelated, but we need this change if we want to support AFBC(Z32) on v7. Signed-off-by: Boris Brezillon Reviewed-by: Christoph Pillmayer Part-of: --- src/panfrost/lib/pan_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panfrost/lib/pan_format.c b/src/panfrost/lib/pan_format.c index b6bd4d703b9..06756557e15 100644 --- a/src/panfrost/lib/pan_format.c +++ b/src/panfrost/lib/pan_format.c @@ -552,7 +552,7 @@ const struct pan_format GENX(pan_pipe_format)[PIPE_FORMAT_COUNT] = { FMT(Z16_UNORM, Z16_UNORM, RGBA, L, _T_Z_), FMT(Z24_UNORM_S8_UINT, Z24X8_UNORM, RGBA, L, _T_Z_), FMT(Z24X8_UNORM, Z24X8_UNORM, RGBA, L, _T_Z_), - FMT(Z32_FLOAT, R32F, RGBA, L, _T_Z_), + FMT(Z32_FLOAT, Z32, RGBA, L, _T_Z_), #if PAN_ARCH >= 9 /* Specify interchange formats, the actual format for depth/stencil is