diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2012-07-13 11:15:25 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2012-07-13 11:15:25 +0200 |
commit | 6ef1ad6a46348d3aecd8d1f5e94431ca2298853c (patch) | |
tree | ec19a154ec7a0b5d8393d6b8556eb600b04a21be /src/radeon_kms.c | |
parent | ef8a404391036d8aa814dbda2407c789b8a64b92 (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_kms.c')
-rw-r--r-- | src/radeon_kms.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 5cc362f9..a4f46d79 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -425,6 +425,10 @@ shadowfb: return TRUE; } +#ifdef DRI2 + info->dri2.available = !!xf86LoadSubModule(pScrn, "dri2"); +#endif + if (radeon_glamor_pre_init(pScrn)) return TRUE; @@ -740,6 +744,7 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags) goto fail; } + info->dri2.available = FALSE; info->dri2.enabled = FALSE; info->dri2.pKernelDRMVersion = drmGetVersion(info->dri2.drm_fd); if (info->dri2.pKernelDRMVersion == NULL) { |