From 23f01fd31c11720caaff74a68bcde60bfbd23a6b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20K=C3=B6nig?= Date: Thu, 1 Sep 2011 18:36:21 +0200 Subject: [PATCH] gallium: add R8A8 and A8R8 UNORM formats MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit They are mostly used for menu overlay in video decoding. Signed-off-by: Christian König --- src/gallium/auxiliary/util/u_format.csv | 2 ++ src/gallium/include/pipe/p_format.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/gallium/auxiliary/util/u_format.csv b/src/gallium/auxiliary/util/u_format.csv index d94d635efe2..6c008cc715a 100644 --- a/src/gallium/auxiliary/util/u_format.csv +++ b/src/gallium/auxiliary/util/u_format.csv @@ -269,3 +269,5 @@ PIPE_FORMAT_NV21 , other, 1, 1, x8 , x8 , x8 , x8 , xyzw, y # Usually used to implement IA44 and AI44 formats in video decoding PIPE_FORMAT_R4A4_UNORM , plain, 1, 1, un4 , un4 , , , y00x, rgb PIPE_FORMAT_A4R4_UNORM , plain, 1, 1, un4 , un4 , , , x00y, rgb +PIPE_FORMAT_R8A8_UNORM , plain, 1, 1, un8 , un8 , , , x00y, rgb +PIPE_FORMAT_A8R8_UNORM , plain, 1, 1, un8 , un8 , , , y00x, rgb diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h index 80ac96b3d36..3e5f45733eb 100644 --- a/src/gallium/include/pipe/p_format.h +++ b/src/gallium/include/pipe/p_format.h @@ -241,6 +241,8 @@ enum pipe_format { PIPE_FORMAT_R4A4_UNORM = 168, PIPE_FORMAT_A4R4_UNORM = 169, + PIPE_FORMAT_R8A8_UNORM = 170, + PIPE_FORMAT_A8R8_UNORM = 171, PIPE_FORMAT_COUNT }; -- 2.30.2