[Mesa-dev] [PATCH 4/7] gallium: add IA88 and AI88 indexed formats.
Christian König
deathsimple at vodafone.de
Thu Sep 1 06:50:03 PDT 2011
They are mostly used for menu overlay.
Signed-off-by: Christian König <deathsimple at vodafone.de>
---
src/gallium/auxiliary/util/u_format.csv | 2 ++
src/gallium/include/pipe/p_format.h | 6 ++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_format.csv b/src/gallium/auxiliary/util/u_format.csv
index b1a85a5..d596d4b 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
# Indexed with Alpha
PIPE_FORMAT_IA44 , plain, 1, 1, un4 , un4 , , , y00x, rgb
PIPE_FORMAT_AI44 , plain, 1, 1, un4 , un4 , , , x00y, rgb
+PIPE_FORMAT_IA88 , plain, 1, 1, un8 , un8 , , , x00y, rgb
+PIPE_FORMAT_AI88 , 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 c9f75c0..674cb14 100644
--- a/src/gallium/include/pipe/p_format.h
+++ b/src/gallium/include/pipe/p_format.h
@@ -238,8 +238,10 @@ enum pipe_format {
PIPE_FORMAT_VUYA = PIPE_FORMAT_B8G8R8A8_UNORM,
PIPE_FORMAT_XYUV = PIPE_FORMAT_X8R8G8B8_UNORM,
PIPE_FORMAT_VUYX = PIPE_FORMAT_B8G8R8X8_UNORM,
- PIPE_FORMAT_IA44 = 168,
- PIPE_FORMAT_AI44 = 169,
+ PIPE_FORMAT_IA44 = 168, /**< 4bit index, alpha */
+ PIPE_FORMAT_AI44 = 169, /**< 4bit alpha, index */
+ PIPE_FORMAT_IA88 = 170, /**< ubyte index, alpha */
+ PIPE_FORMAT_AI88 = 171, /**< ubyte alpha, index */
PIPE_FORMAT_COUNT
};
--
1.7.4.1
More information about the mesa-dev
mailing list