mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
st/mesa: Fall back on R3G3B2 for R3_G3_B2
It's simpler for Panfrost to use R3G3B2 instead of B2G3R3, but format_map only listed the BGR variation. Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4292>
This commit is contained in:
parent
81d059c898
commit
49a81a431e
1 changed files with 3 additions and 2 deletions
|
|
@ -229,8 +229,9 @@ static const struct format_mapping format_map[] = {
|
|||
},
|
||||
{
|
||||
{ GL_R3_G3_B2, 0 },
|
||||
{ PIPE_FORMAT_B2G3R3_UNORM, PIPE_FORMAT_B5G6R5_UNORM,
|
||||
PIPE_FORMAT_B5G5R5A1_UNORM, DEFAULT_RGB_FORMATS }
|
||||
{ PIPE_FORMAT_B2G3R3_UNORM, PIPE_FORMAT_R3G3B2_UNORM,
|
||||
PIPE_FORMAT_B5G6R5_UNORM, PIPE_FORMAT_B5G5R5A1_UNORM,
|
||||
DEFAULT_RGB_FORMATS }
|
||||
},
|
||||
{
|
||||
{ GL_RGB4 },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue