mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
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:
parent
0c1ebc63ca
commit
23b26c94f5
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue