summaryrefslogtreecommitdiff
path: root/shared-core/radeon_drm.h
diff options
context:
space:
mode:
authorMichel Daenzer <michel@daenzer.net>2002-07-11 20:31:12 +0000
committerMichel Daenzer <michel@daenzer.net>2002-07-11 20:31:12 +0000
commitfd86ac9561dc77ef23e19d28723b40c72bdf1e97 (patch)
tree4c1b91512341d46f5a2988ab6266fffa76edf14f /shared-core/radeon_drm.h
parent2ec9c15d8ce45d95ef395a4fff114109c908a572 (diff)
Don't read scratch registers directly, obtain the values via the GET_PARAM
ioctl. The DRM reads them from memory addresses the chip writes to on updates. Fall back to reading the registers directly with an old DRM. (Tim Smith, cleanups by myself)
Diffstat (limited to 'shared-core/radeon_drm.h')
-rw-r--r--shared-core/radeon_drm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared-core/radeon_drm.h b/shared-core/radeon_drm.h
index dd24d429..3802e46c 100644
--- a/shared-core/radeon_drm.h
+++ b/shared-core/radeon_drm.h
@@ -458,6 +458,9 @@ typedef struct drm_radeon_indirect {
* client any other way.
*/
#define RADEON_PARAM_AGP_BUFFER_OFFSET 0x1
+#define RADEON_PARAM_LAST_FRAME 0x2
+#define RADEON_PARAM_LAST_DISPATCH 0x3
+#define RADEON_PARAM_LAST_CLEAR 0x4
typedef struct drm_radeon_getparam {
int param;