From 2a97f1d3ef7a346113cd0a74d1c07d944a7edac4 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sat, 20 Jan 2018 10:02:07 -0800 Subject: gallium: Add a new A4B4G4R4 pipe format for Broadcom. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/gallium/include/pipe/p_format.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/include') 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 }; -- cgit v1.2.3