aboutsummaryrefslogtreecommitdiff
path: root/shared-core/radeon_drm.h
diff options
context:
space:
mode:
authorAapo Tahkola <aet@rasterburn.org>2006-03-06 20:08:50 +0000
committerAapo Tahkola <aet@rasterburn.org>2006-03-06 20:08:50 +0000
commitb3fdf9bb7acd023060e0dba07d3b439c3b64faef (patch)
treec8c57bc2b05aac1fc9b1632d3d991644f2e560fd /shared-core/radeon_drm.h
parent02f76f41b12e1465db4e4a48c0b81977a8bd3d8d (diff)
Add general-purpose packet for manipulating scratch registers (r300)
Diffstat (limited to 'shared-core/radeon_drm.h')
-rw-r--r--shared-core/radeon_drm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared-core/radeon_drm.h b/shared-core/radeon_drm.h
index 62b82f22..601b22bb 100644
--- a/shared-core/radeon_drm.h
+++ b/shared-core/radeon_drm.h
@@ -222,6 +222,7 @@ typedef union {
# define R300_WAIT_3D 0x2
# define R300_WAIT_2D_CLEAN 0x3
# define R300_WAIT_3D_CLEAN 0x4
+#define R300_CMD_SCRATCH 8
typedef union {
unsigned int u;
@@ -247,6 +248,9 @@ typedef union {
struct {
unsigned char cmd_type, flags, pad0, pad1;
} wait;
+ struct {
+ unsigned char cmd_type, reg, n_bufs, flags;
+ } scratch;
} drm_r300_cmd_header_t;
#define RADEON_FRONT 0x1