etnaviv: blt: Extend translate_blt_format(..)

Add A8_UNORM, L8_UNORM, and L8A8_UNORM format translations to
translate_blt_format(..) to enable BLT-based mipmap generation for
these formats.

This enables passing dEQP-GLES2/3 functional texture mipmap
generation tests for these additional formats.

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35991>
This commit is contained in:
Christian Gmeiner 2025-07-07 23:25:09 +02:00 committed by Marge Bot
parent 0c1ebc63ca
commit 23b26c94f5

View file

@ -333,6 +333,12 @@ translate_blt_format(enum pipe_format fmt)
return BLT_FORMAT_R8;
case PIPE_FORMAT_R8G8_UNORM:
return BLT_FORMAT_R8G8;
case PIPE_FORMAT_A8_UNORM:
return BLT_FORMAT_A8;
case PIPE_FORMAT_L8_UNORM:
return BLT_FORMAT_L8;
case PIPE_FORMAT_L8A8_UNORM:
return BLT_FORMAT_A8L8;
default:
return ETNA_NO_MATCH;
}