summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/formats.h
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsalvez <[email protected]>2014-10-08 11:06:21 +0200
committerIago Toral Quiroga <[email protected]>2015-01-12 11:20:28 +0100
commitc5a5c9a7db898145774524415a3a94fe75ddb364 (patch)
tree9a2d2796d04ae8533386f2b32e9ee6a73b1fc46c /src/mesa/main/formats.h
parentf8d160fc96cccb46040d47b4dead31c81375e6b6 (diff)
mesa/formats: add new mesa formats and their pack/unpack functions.
This will be used to refactor code in pack.c and support conversion to/from these types in a master convert function that will be added later. v2: - Fix autogeneration of MESA_FORMAT_A2R10G10B10_UNORM pack/unpack functions Signed-off-by: Samuel Iglesias Gonsalvez <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/main/formats.h')
-rw-r--r--src/mesa/main/formats.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mesa/main/formats.h b/src/mesa/main/formats.h
index 4f83208bd4c..02afbce7c4f 100644
--- a/src/mesa/main/formats.h
+++ b/src/mesa/main/formats.h
@@ -358,6 +358,19 @@ typedef enum
MESA_FORMAT_Z24_UNORM_S8_UINT,/* SSSS SSSS ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ */
MESA_FORMAT_Z24_UNORM_X8_UINT,/* xxxx xxxx ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ */
+ /* Other formats */
+ MESA_FORMAT_R3G3B2_UNORM, /* BBGG GRRR */
+ MESA_FORMAT_A4B4G4R4_UNORM, /* RRRR GGGG BBBB AAAA */
+ MESA_FORMAT_R4G4B4A4_UNORM, /* AAAA BBBB GGGG RRRR */
+ MESA_FORMAT_R1G5B5A5_UNORM, /* AAAA ABBB BBGG GGGR */
+ MESA_FORMAT_R5G5B5A1_UNORM, /* ABBB BBGG GGGR RRRR */
+ MESA_FORMAT_A5B5G5R1_UNORM, /* RGGG GGBB BBBA AAAA */
+ MESA_FORMAT_A2B10G10R10_UNORM,/* RRRR RRRR RRGG GGGG GGGG BBBB BBBB BBAA */
+ MESA_FORMAT_A2R10G10B10_UNORM,/* BBBB BBBB BBGG GGGG GGGG RRRR RRRR RRAA */
+ MESA_FORMAT_R2G10B10A10_UNORM,/* AAAA AAAA AABB BBBB BBBB GGGG GGGG GGRR */
+ MESA_FORMAT_A10B10G10R2_UNORM,/* RRGG GGGG GGGG BBBB BBBB BBAA AAAA AAAA */
+
+
MESA_FORMAT_YCBCR, /* YYYY YYYY UorV UorV */
MESA_FORMAT_YCBCR_REV, /* UorV UorV YYYY YYYY */
@@ -452,6 +465,8 @@ typedef enum
/* Packed signed/unsigned non-normalized integer formats */
MESA_FORMAT_B10G10R10A2_UINT, /* AARR RRRR RRRR GGGG GGGG GGBB BBBB BBBB */
MESA_FORMAT_R10G10B10A2_UINT, /* AABB BBBB BBBB GGGG GGGG GGRR RRRR RRRR */
+ MESA_FORMAT_A2B10G10R10_UINT, /* RRRR RRRR RRGG GGGG GGGG BBBB BBBB BBAA */
+ MESA_FORMAT_A2R10G10B10_UINT, /* BBBB BBBB BBGG GGGG GGGG RRRR RRRR RRAA */
/* Array signed/unsigned non-normalized integer formats */
MESA_FORMAT_A_UINT8,