summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r600/evergreend.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-10-01 13:09:09 +1000
committerDave Airlie <airlied@redhat.com>2010-10-01 13:36:56 +1000
commitd662195f00fe60349cdda368eeb065910764842f (patch)
tree667cd52ad6656d5cdb05eae4f106d8eb302c57d1 /src/gallium/drivers/r600/evergreend.h
parente973221538d5edfad62abedf5b37a4fb774d71fc (diff)
r600g: fixup vertex format picking.
there are some vertex formats defined in r600c not in the docs.
Diffstat (limited to 'src/gallium/drivers/r600/evergreend.h')
-rw-r--r--src/gallium/drivers/r600/evergreend.h73
1 files changed, 39 insertions, 34 deletions
diff --git a/src/gallium/drivers/r600/evergreend.h b/src/gallium/drivers/r600/evergreend.h
index ce2b667868..f9328c6198 100644
--- a/src/gallium/drivers/r600/evergreend.h
+++ b/src/gallium/drivers/r600/evergreend.h
@@ -1050,40 +1050,45 @@
#define S_030008_DATA_FORMAT(x) (((x) & 0x3F) << 20)
#define G_030008_DATA_FORMAT(x) (((x) >> 20) & 0x3F)
#define C_030008_DATA_FORMAT 0xFC0FFFFF
-#define V_030008_COLOR_INVALID 0x00000000
-#define V_030008_COLOR_8 0x00000001
-#define V_030008_COLOR_4_4 0x00000002
-#define V_030008_COLOR_3_3_2 0x00000003
-#define V_030008_COLOR_16 0x00000005
-#define V_030008_COLOR_16_FLOAT 0x00000006
-#define V_030008_COLOR_8_8 0x00000007
-#define V_030008_COLOR_5_6_5 0x00000008
-#define V_030008_COLOR_6_5_5 0x00000009
-#define V_030008_COLOR_1_5_5_5 0x0000000A
-#define V_030008_COLOR_4_4_4_4 0x0000000B
-#define V_030008_COLOR_5_5_5_1 0x0000000C
-#define V_030008_COLOR_32 0x0000000D
-#define V_030008_COLOR_32_FLOAT 0x0000000E
-#define V_030008_COLOR_16_16 0x0000000F
-#define V_030008_COLOR_16_16_FLOAT 0x00000010
-#define V_030008_COLOR_8_24 0x00000011
-#define V_030008_COLOR_8_24_FLOAT 0x00000012
-#define V_030008_COLOR_24_8 0x00000013
-#define V_030008_COLOR_24_8_FLOAT 0x00000014
-#define V_030008_COLOR_10_11_11 0x00000015
-#define V_030008_COLOR_10_11_11_FLOAT 0x00000016
-#define V_030008_COLOR_11_11_10 0x00000017
-#define V_030008_COLOR_11_11_10_FLOAT 0x00000018
-#define V_030008_COLOR_2_10_10_10 0x00000019
-#define V_030008_COLOR_8_8_8_8 0x0000001A
-#define V_030008_COLOR_10_10_10_2 0x0000001B
-#define V_030008_COLOR_X24_8_32_FLOAT 0x0000001C
-#define V_030008_COLOR_32_32 0x0000001D
-#define V_030008_COLOR_32_32_FLOAT 0x0000001E
-#define V_030008_COLOR_16_16_16_16 0x0000001F
-#define V_030008_COLOR_16_16_16_16_FLOAT 0x00000020
-#define V_030008_COLOR_32_32_32_32 0x00000022
-#define V_030008_COLOR_32_32_32_32_FLOAT 0x00000023
+#define V_030008_FMT_INVALID 0x00000000
+#define V_030008_FMT_8 0x00000001
+#define V_030008_FMT_4_4 0x00000002
+#define V_030008_FMT_3_3_2 0x00000003
+#define V_030008_FMT_16 0x00000005
+#define V_030008_FMT_16_FLOAT 0x00000006
+#define V_030008_FMT_8_8 0x00000007
+#define V_030008_FMT_5_6_5 0x00000008
+#define V_030008_FMT_6_5_5 0x00000009
+#define V_030008_FMT_1_5_5_5 0x0000000A
+#define V_030008_FMT_4_4_4_4 0x0000000B
+#define V_030008_FMT_5_5_5_1 0x0000000C
+#define V_030008_FMT_32 0x0000000D
+#define V_030008_FMT_32_FLOAT 0x0000000E
+#define V_030008_FMT_16_16 0x0000000F
+#define V_030008_FMT_16_16_FLOAT 0x00000010
+#define V_030008_FMT_8_24 0x00000011
+#define V_030008_FMT_8_24_FLOAT 0x00000012
+#define V_030008_FMT_24_8 0x00000013
+#define V_030008_FMT_24_8_FLOAT 0x00000014
+#define V_030008_FMT_10_11_11 0x00000015
+#define V_030008_FMT_10_11_11_FLOAT 0x00000016
+#define V_030008_FMT_11_11_10 0x00000017
+#define V_030008_FMT_11_11_10_FLOAT 0x00000018
+#define V_030008_FMT_2_10_10_10 0x00000019
+#define V_030008_FMT_8_8_8_8 0x0000001A
+#define V_030008_FMT_10_10_10_2 0x0000001B
+#define V_030008_FMT_X24_8_32_FLOAT 0x0000001C
+#define V_030008_FMT_32_32 0x0000001D
+#define V_030008_FMT_32_32_FLOAT 0x0000001E
+#define V_030008_FMT_16_16_16_16 0x0000001F
+#define V_030008_FMT_16_16_16_16_FLOAT 0x00000020
+#define V_030008_FMT_32_32_32_32 0x00000022
+#define V_030008_FMT_32_32_32_32_FLOAT 0x00000023
+#define V_030008_FMT_8_8_8 0x0000002c
+#define V_030008_FMT_16_16_16 0x0000002d
+#define V_030008_FMT_16_16_16_FLOAT 0x0000002e
+#define V_030008_FMT_32_32_32 0x0000002f
+#define V_030008_FMT_32_32_32_FLOAT 0x00000030
#define S_030008_NUM_FORMAT_ALL(x) (((x) & 0x3) << 26)
#define G_030008_NUM_FORMAT_ALL(x) (((x) >> 26) & 0x3)
#define C_030008_NUM_FORMAT_ALL 0xF3FFFFFF