From a4f05a6fb3299754807d9a615ab42bd2b959bf9a Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sat, 16 May 2020 14:18:53 +0000 Subject: Fix VT switching in EXA acceleration. --- driver/xf86-video-cirrus/src/alp_exa.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'driver/xf86-video-cirrus') diff --git a/driver/xf86-video-cirrus/src/alp_exa.c b/driver/xf86-video-cirrus/src/alp_exa.c index c31a0ea09..7b2812d58 100644 --- a/driver/xf86-video-cirrus/src/alp_exa.c +++ b/driver/xf86-video-cirrus/src/alp_exa.c @@ -268,9 +268,8 @@ AlpSync(ScreenPtr pScreen, int marker) static void -AlpAccelEngineInit(ScreenPtr pScreen) +AlpAccelEngineInit(ScrnInfoPtr pScrn) { - ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); CirPtr pCir = CIRPTR(pScrn); outw(pCir->PIOReg, 0x200E); /* enable writes to gr33 */ @@ -291,7 +290,9 @@ AlpEXAInit(ScreenPtr pScreen) ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); CirPtr pCir = CIRPTR(pScrn); - AlpAccelEngineInit(pScreen); + AlpAccelEngineInit(pScrn); + + pCir->InitAccel = AlpAccelEngineInit; pCir->ExaDriver->exa_major = EXA_VERSION_MAJOR; pCir->ExaDriver->exa_minor = EXA_VERSION_MINOR; -- cgit v1.2.3