summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-02 20:39:45 -0600
committerBrian <[email protected]>2007-08-02 20:39:45 -0600
commit66ae07854e7e6e9f56e0beb6b56a8c1429bfa3c6 (patch)
tree597294368b7b6f83fab350fb5e9c21e50f57a4f3
parentfc9ff31298952f0a7e4cdfae95059144a5be6e1b (diff)
more formats
-rw-r--r--src/mesa/pipe/p_defines.h34
1 files changed, 19 insertions, 15 deletions
diff --git a/src/mesa/pipe/p_defines.h b/src/mesa/pipe/p_defines.h
index 4c29ec2c0e6..a3288134db2 100644
--- a/src/mesa/pipe/p_defines.h
+++ b/src/mesa/pipe/p_defines.h
@@ -134,21 +134,25 @@
/**
* Texture/surface image formats (preliminary)
*/
-#define PIPE_FORMAT_NONE 0 /**< unstructured */
-#define PIPE_FORMAT_U_R8_G8_B8_A8 1 /**< ubyte[4] RGBA */
-#define PIPE_FORMAT_U_A8_R8_G8_B8 2 /**< ubyte[4] ARGB */
-#define PIPE_FORMAT_U_R5_G6_B5 3 /**< 5/6/5 RGB */
-#define PIPE_FORMAT_U_L8 4 /**< ubyte luminance */
-#define PIPE_FORMAT_U_A8 5 /**< ubyte alpha */
-#define PIPE_FORMAT_U_I8 6 /**< ubyte intensity */
-#define PIPE_FORMAT_U_L8_A8 7 /**< ubyte luminance, alpha */
-#define PIPE_FORMAT_YCBCR 8
-#define PIPE_FORMAT_YCBCR_REV 9
-#define PIPE_FORMAT_U_Z16 10 /**< ushort Z/depth */
-#define PIPE_FORMAT_U_Z32 11 /**< uint Z/depth */
-#define PIPE_FORMAT_F_Z32 12 /**< float Z/depth */
-#define PIPE_FORMAT_S8_Z24 13 /**< 8-bit stencil + 24-bit Z */
-#define PIPE_FORMAT_U_S8 14 /**< 8-bit stencil */
+#define PIPE_FORMAT_NONE 0 /**< unstructured */
+#define PIPE_FORMAT_U_R8_G8_B8_A8 1 /**< ubyte[4] RGBA */
+#define PIPE_FORMAT_U_A8_R8_G8_B8 2 /**< ubyte[4] ARGB */
+#define PIPE_FORMAT_U_A1_R5_G5_B5 3 /**< 16-bit packed RGBA */
+#define PIPE_FORMAT_U_A4_R4_G4_B4 4 /**< 16-bit packed RGBA */
+#define PIPE_FORMAT_U_R5_G6_B5 5 /**< 16-bit packed RGB */
+#define PIPE_FORMAT_U_L8 6 /**< ubyte luminance */
+#define PIPE_FORMAT_U_A8 7 /**< ubyte alpha */
+#define PIPE_FORMAT_U_I8 8 /**< ubyte intensity */
+#define PIPE_FORMAT_U_L8_A8 9 /**< ubyte luminance, alpha */
+#define PIPE_FORMAT_S_R16_G16_B16_A16 10 /**< signed 16-bit RGBA (accum) */
+#define PIPE_FORMAT_YCBCR 11
+#define PIPE_FORMAT_YCBCR_REV 12
+#define PIPE_FORMAT_U_Z16 13 /**< ushort Z/depth */
+#define PIPE_FORMAT_U_Z32 14 /**< uint Z/depth */
+#define PIPE_FORMAT_F_Z32 15 /**< float Z/depth */
+#define PIPE_FORMAT_S8_Z24 16 /**< 8-bit stencil + 24-bit Z */
+#define PIPE_FORMAT_U_S8 17 /**< 8-bit stencil */
+#define PIPE_FORMAT_COUNT 18 /**< number of formats */
/**