summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/r600/drm/r600d.h
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2011-03-14 16:58:27 -0400
committerAlex Deucher <[email protected]>2011-03-14 17:42:19 -0400
commit028987c80362eddd39176628486a456b076f0427 (patch)
tree6226c35ad7ca90ccc416c2a3d6bbdcca7f8446ed /src/gallium/winsys/r600/drm/r600d.h
parent1a8dc1539b59ab61a6f81a4de32b69978dded7ff (diff)
r600g: emit SURFACE_BASE_UPDATE packet on rv6xx
This packet is required when updating the DB, CB, or STRMOUT base addresses on rv6xx for the surface sync logic to work correctly. Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/winsys/r600/drm/r600d.h')
-rw-r--r--src/gallium/winsys/r600/drm/r600d.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/winsys/r600/drm/r600d.h b/src/gallium/winsys/r600/drm/r600d.h
index cb12865ff01..80424818044 100644
--- a/src/gallium/winsys/r600/drm/r600d.h
+++ b/src/gallium/winsys/r600/drm/r600d.h
@@ -90,6 +90,9 @@
#define PKT3_SET_SAMPLER 0x6E
#define PKT3_SET_CTL_CONST 0x6F
#define PKT3_SURFACE_BASE_UPDATE 0x73
+#define SURFACE_BASE_UPDATE_DEPTH (1 << 0)
+#define SURFACE_BASE_UPDATE_COLOR(x) (2 << (x))
+#define SURFACE_BASE_UPDATE_STRMOUT(x) (0x200 << (x))
#define EVENT_TYPE_PS_PARTIAL_FLUSH 0x10
#define EVENT_TYPE_CACHE_FLUSH_AND_INV_TS_EVENT 0x14