summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@dhcp-1-203.bne.redhat.com>2009-02-12 14:16:24 +1000
committerDave Airlie <airlied@dhcp-1-203.bne.redhat.com>2009-02-12 14:16:24 +1000
commitc83d0bfe0645a58e7dd028b4472dbd54e479ab32 (patch)
treeb93d1cf28a24152d20f0365ab3ee8881d50ffbef /src
parentd513915d27eac8a57ff7f5c1973b4a07fe288c53 (diff)
radeon: make build without libdrm_radeon better
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_cs_drm.h2
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_screen.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_cs_drm.h b/src/mesa/drivers/dri/radeon/radeon_cs_drm.h
index 7cc75d4700..ffda17c11f 100644
--- a/src/mesa/drivers/dri/radeon/radeon_cs_drm.h
+++ b/src/mesa/drivers/dri/radeon/radeon_cs_drm.h
@@ -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;
diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c
index 8b06fb4d3e..133d0d7555 100644
--- a/src/mesa/drivers/dri/radeon/radeon_screen.c
+++ b/src/mesa/drivers/dri/radeon/radeon_screen.c
@@ -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)
{