radeon: add defines for future bits
authorDave Airlie <airlied@dhcp-1-203.bne.redhat.com>
Thu, 12 Feb 2009 04:41:16 +0000 (14:41 +1000)
committerDave Airlie <airlied@dhcp-1-203.bne.redhat.com>
Thu, 12 Feb 2009 04:41:16 +0000 (14:41 +1000)
src/mesa/drivers/dri/radeon/radeon_bocs_wrapper.h
src/mesa/drivers/dri/radeon/radeon_screen.c

index 2117be71618d939cfe538a6643d2c97fc4e0646d..a54a3610b95af8f6c154114ecadeb6d3de2ed2ea 100644 (file)
 #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"
index 133d0d7555263bda075129d50b2d78e9510ac0d2..8b06fb4d3e9baff44eff068f01cd7c843b5ff1dc 100644 (file)
@@ -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)
 {