diff options
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r-- | src/radeon_kms.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c index e33c9eff..1ba320be 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -493,10 +493,6 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags) xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Kernel modesetting setup failed\n"); goto fail; } - if (drmmode_pre_init(pScrn, &info->drmmode, pScrn->bitsPerPixel / 8) == FALSE) { - xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Kernel modesetting setup failed\n"); - goto fail; - } info->dri2.enabled = FALSE; info->dri->pKernelDRMVersion = drmGetVersion(info->dri->drmFD); @@ -506,6 +502,12 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags) goto fail; } + if (drmmode_pre_init(pScrn, &info->drmmode, pScrn->bitsPerPixel / 8) == FALSE) { + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Kernel modesetting setup failed\n"); + goto fail; + } + + { struct drm_radeon_gem_info mminfo; |