summaryrefslogtreecommitdiff
path: root/src/radeon_glamor.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2012-07-13 11:15:25 +0200
committerMichel Dänzer <michel@daenzer.net>2012-07-13 11:15:25 +0200
commit6ef1ad6a46348d3aecd8d1f5e94431ca2298853c (patch)
treeec19a154ec7a0b5d8393d6b8556eb600b04a21be /src/radeon_glamor.c
parentef8a404391036d8aa814dbda2407c789b8a64b92 (diff)
Deal more gracefully with DRI2 being unavailable at build or run time.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'src/radeon_glamor.c')
-rw-r--r--src/radeon_glamor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/radeon_glamor.c b/src/radeon_glamor.c
index 714dde9e..12dfd38c 100644
--- a/src/radeon_glamor.c
+++ b/src/radeon_glamor.c
@@ -83,6 +83,9 @@ radeon_glamor_pre_init(ScrnInfoPtr scrn)
CARD32 version;
const char *s;
+ if (!info->dri2.available)
+ return FALSE;
+
s = xf86GetOptValString(info->Options, OPTION_ACCELMETHOD);
if (s == NULL)
return FALSE;