mesa: Add X1B5G5R5 along with A1B5G5R5.

Graphics / Mesa 3D Graphics Library / Mesa - Eric Anholt [anholt.net] - 10 October 2017 12:31 EDT

For supporting RGB5 in hardware with A in the low bit (vc4), we need this format as well.

v2: Add proper _mesa_format_matches_format_and_type() support (from Nicolai).

3078296 mesa: Add X1B5G5R5 along with A1B5G5R5.
src/mesa/main/formats.c | 5 +++++
src/mesa/main/formats.csv | 1 +
src/mesa/main/formats.h | 1 +
src/mesa/main/texformat.c | 1 +
src/mesa/swrast/s_texfetch.c | 1 +
5 files changed, 9 insertions(+)

Upstream: cgit.freedesktop.org


  • Share