diff options
author | Eric Anholt <[email protected]> | 2018-01-20 10:02:07 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-02-02 16:27:49 -0800 |
commit | 2a97f1d3ef7a346113cd0a74d1c07d944a7edac4 (patch) | |
tree | fbb67ba5e0e2d76bdaf4b6eb90549a3ce59cfc32 /src/gallium/include/pipe/p_format.h | |
parent | 1429cd74c2c03a311d92a60b66806db3d96d6b16 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe/p_format.h')
-rw-r--r-- | src/gallium/include/pipe/p_format.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h index fedac8a06d7..57399800fa4 100644 --- a/src/gallium/include/pipe/p_format.h +++ b/src/gallium/include/pipe/p_format.h @@ -394,6 +394,7 @@ enum pipe_format { PIPE_FORMAT_R10G10B10X2_UNORM = 308, PIPE_FORMAT_A1B5G5R5_UNORM = 309, PIPE_FORMAT_X1B5G5R5_UNORM = 310, + PIPE_FORMAT_A4B4G4R4_UNORM = 311, PIPE_FORMAT_COUNT }; |