summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-09-25 17:47:28 +0000
committerTom Stellard <[email protected]>2012-10-01 15:37:16 +0000
commitd13c3b19f9169308fe8d6e59313b41a7e69163e5 (patch)
treeb15751f0593b00c3e9c7aeb4b19dd909491575c1 /src
parent9545d9611fd983fd63960de787dff51aedd4a7f9 (diff)
r600g: Add register field definitions for 028C70_RESOURCE_TYPE
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/evergreend.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/evergreend.h b/src/gallium/drivers/r600/evergreend.h
index 3dff6f93149..d10ec7f2af5 100644
--- a/src/gallium/drivers/r600/evergreend.h
+++ b/src/gallium/drivers/r600/evergreend.h
@@ -365,9 +365,16 @@
#define S_028C70_RAT(x) (((x) & 0x1) << 26)
#define G_028C70_RAT(x) (((x) >> 26) & 0x1)
#define C_028C70_RAT 0xFBFFFFFF
+/* RESOURCE_TYPE is only used for compute shaders */
#define S_028C70_RESOURCE_TYPE(x) (((x) & 0x7) << 27)
#define G_028C70_RESOURCE_TYPE(x) (((x) >> 27) & 0x7)
#define C_028C70_RESOURCE_TYPE 0xC7FFFFFF
+#define V_028C70_BUFFER 0x0
+#define V_028C70_TEXTURE1D 0x1
+#define V_028C70_TEXTURE1DARRAY 0x2
+#define V_028C70_TEXTURE2D 0x3
+#define V_028C70_TEXTURE2DARRAY 0x4
+#define V_028C70_TEXTURE3D 0x5
#define R_028C74_CB_COLOR0_ATTRIB 0x028C74
#define S_028C74_NON_DISP_TILING_ORDER(x) (((x) & 0x1) << 4)