summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2020-05-16 14:18:53 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2020-05-16 14:18:53 +0000
commita4f05a6fb3299754807d9a615ab42bd2b959bf9a (patch)
treed077fd457fc177b70ef5eff01ffefa5198b446b6 /driver
parent7e2f2fed37576cd7015930493d6262af046b597a (diff)
Fix VT switching in EXA acceleration.
Diffstat (limited to 'driver')
-rw-r--r--driver/xf86-video-cirrus/src/alp_exa.c7
1 files changed, 4 insertions, 3 deletions
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;