diff options
author | Icecream95 <[email protected]> | 2020-03-24 14:45:45 +1300 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-31 00:48:58 +0000 |
commit | 49a81a431e0b5aef53da2319b327da717603fbc6 (patch) | |
tree | 0a2312ae248f14bf81c2ff188a1690b63ee2589f /src/mesa | |
parent | 81d059c89859841bf6c4c74e29d2dd95f6dd93bf (diff) |
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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4292>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_format.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index 310c5b62ab7..99e91ca96de 100644 --- a/src/mesa/state_tracker/st_format.c +++ b/src/mesa/state_tracker/st_format.c @@ -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 }, |