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 <boris.brezillon@collabora.com>
Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37158>
This commit is contained in:
Boris Brezillon 2025-09-10 11:48:45 +02:00 committed by Marge Bot
parent bff39c4f25
commit 42b90f858e

View file

@ -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