summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@dhcp-1-203.bne.redhat.com>2009-02-12 14:41:16 +1000
committerDave Airlie <airlied@dhcp-1-203.bne.redhat.com>2009-02-12 14:41:16 +1000
commitec0939b01370e9272000fcd4d71a023866e767a0 (patch)
treed2e1c89544796b511606cd9a5e1ff7a6d343ec39
parent1e77f7b55c052de238d46df3454bf2f2eb8d7346 (diff)
radeon: add defines for future bits
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_bocs_wrapper.h8
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_screen.c4
2 files changed, 8 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_bocs_wrapper.h b/src/mesa/drivers/dri/radeon/radeon_bocs_wrapper.h
index 2117be7161..a54a3610b9 100644
--- a/src/mesa/drivers/dri/radeon/radeon_bocs_wrapper.h
+++ b/src/mesa/drivers/dri/radeon/radeon_bocs_wrapper.h
@@ -13,6 +13,14 @@
#define RADEON_GEM_DOMAIN_GTT 0x2 // GTT or cache flushed
#define RADEON_GEM_DOMAIN_VRAM 0x4 // VRAM domain
+#ifndef DRM_RADEON_GEM_INFO
+#define DRM_RADEON_GEM_INFO 0x1c
+#endif
+
+#ifndef RADEON_PARAM_DEVICE_ID
+#define RADEON_PARAM_DEVICE_ID 17
+#endif
+
/* to be used to build locally in mesa with no libdrm bits */
#include "../radeon/radeon_bo_drm.h"
#include "../radeon/radeon_cs_drm.h"
diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c
index 133d0d7555..8b06fb4d3e 100644
--- a/src/mesa/drivers/dri/radeon/radeon_screen.c
+++ b/src/mesa/drivers/dri/radeon/radeon_screen.c
@@ -1016,10 +1016,6 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv )
return screen;
}
-#ifndef RADEON_PARAM_DEVICE_ID
-#define RADEON_PARAM_DEVICE_ID 17
-#endif
-
static radeonScreenPtr
radeonCreateScreen2(__DRIscreenPrivate *sPriv)
{