gallium: Add a new A4B4G4R4 pipe format for Broadcom.
authorEric Anholt <eric@anholt.net>
Sat, 20 Jan 2018 18:02:07 +0000 (10:02 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 3 Feb 2018 00:27:49 +0000 (16:27 -0800)
commit2a97f1d3ef7a346113cd0a74d1c07d944a7edac4
treefbb67ba5e0e2d76bdaf4b6eb90549a3ce59cfc32
parent1429cd74c2c03a311d92a60b66806db3d96d6b16
gallium: Add a new A4B4G4R4 pipe format for Broadcom.

The VC5 HW puts A in the low bits and R in the high bits.  We can't just
swizzle in the shaders because the blending HW can't pick what channel A
is in, so make a new format to match it.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_format.csv
src/gallium/drivers/svga/svga_format.c
src/gallium/include/pipe/p_format.h
src/mesa/state_tracker/st_format.c