diff --git a/src/radeon_kms.c b/src/radeon_kms.c index 49b922d..fdaa027 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -1137,6 +1137,10 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags) goto fail; } + /* Get ScreenInit function */ + if (!xf86LoadSubModule(pScrn, "fb")) + return FALSE; + if (!RADEONPreInitAccel_KMS(pScrn)) goto fail; radeon_drm_queue_init(); @@ -1315,9 +1319,6 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags) /* Set display resolution */ xf86SetDpi(pScrn, 0, 0); - /* Get ScreenInit function */ - if (!xf86LoadSubModule(pScrn, "fb")) return FALSE; - if (!xf86SetGamma(pScrn, zeros)) return FALSE; if (!xf86ReturnOptValBool(info->Options, OPTION_SW_CURSOR, FALSE)) {