radeon: make build without libdrm_radeon better
authorDave Airlie <airlied@dhcp-1-203.bne.redhat.com>
Thu, 12 Feb 2009 04:16:24 +0000 (14:16 +1000)
committerDave Airlie <airlied@dhcp-1-203.bne.redhat.com>
Thu, 12 Feb 2009 04:16:24 +0000 (14:16 +1000)
src/mesa/drivers/dri/radeon/radeon_cs_drm.h
src/mesa/drivers/dri/radeon/radeon_screen.c

index 7cc75d470049038c98b7ebc70f89c01e4754fa21..ffda17c11fe4c92acaa1a295f1f0f47dc406dbf4 100644 (file)
@@ -35,7 +35,7 @@
 #include <stdint.h>
 #include "drm.h"
 #include "radeon_drm.h"
-#include "radeon_bo.h"
+#include "radeon_bocs_wrapper.h"
 
 struct radeon_cs_reloc {
     struct radeon_bo    *bo;
index 8b06fb4d3e9baff44eff068f01cd7c843b5ff1dc..133d0d7555263bda075129d50b2d78e9510ac0d2 100644 (file)
@@ -1016,6 +1016,10 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv )
    return screen;
 }
 
+#ifndef RADEON_PARAM_DEVICE_ID
+#define RADEON_PARAM_DEVICE_ID 17
+#endif
+
 static radeonScreenPtr
 radeonCreateScreen2(__DRIscreenPrivate *sPriv)
 {