summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r600/r600_sq.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-09-08 14:09:40 +1000
committerDave Airlie <airlied@redhat.com>2010-09-08 14:12:21 +1000
commitbf346f065c65e15e5757d5b1a14dbc6638051860 (patch)
treeeaa1e5bdec0cce3c5e38d4a7a218fa755a9ef8cb /src/gallium/drivers/r600/r600_sq.h
parent48e789d71e01b0a7185555735b4a26b1a53d0825 (diff)
r600g: add initial bank swizzle support.
this is ported from r600c mostly, bank swizzling is real messy and I don't think I got enough sleep last night to fully understand it.
Diffstat (limited to 'src/gallium/drivers/r600/r600_sq.h')
-rw-r--r--src/gallium/drivers/r600/r600_sq.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_sq.h b/src/gallium/drivers/r600/r600_sq.h
index 1542059c03..d0f5726d25 100644
--- a/src/gallium/drivers/r600/r600_sq.h
+++ b/src/gallium/drivers/r600/r600_sq.h
@@ -455,4 +455,16 @@
#define V_SQ_REL_ABSOLUTE 0
#define V_SQ_REL_RELATIVE 1
+
+#define SQ_ALU_VEC_012 0x00
+#define SQ_ALU_VEC_021 0x01
+#define SQ_ALU_VEC_120 0x02
+#define SQ_ALU_VEC_102 0x03
+#define SQ_ALU_VEC_201 0x04
+#define SQ_ALU_VEC_210 0x05
+
+#define SQ_ALU_SCL_210 0x00000000
+#define SQ_ALU_SCL_122 0x00000001
+#define SQ_ALU_SCL_212 0x00000002
+#define SQ_ALU_SCL_221 0x00000003
#endif