diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-05-24 18:22:45 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-05-24 19:01:22 +0100 |
commit | e45629135065d0cc73c285f8df35ab4e1d07c6dc (patch) | |
tree | 7677db32ced6e3114ca4cf7822dabd6871d1a177 /src/intel_driver.c | |
parent | df6ab02c3690eea8393ecc8c113e2f2891856cc6 (diff) |
Allow runtime switching of AccelMethod between uxa/sna and even glamor
Section "Device"
Option "AccelMethod" "uxa/glamor/sna"
EndSection
The appropriate backend must also be enabled at compile time for the
runtime option to be available (i.e. --enable-uxa (default) --enable-sna
--enable-glamor)
Demanded-by: Adam Jackson <ajax@redhat.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50290
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_driver.c')
-rw-r--r-- | src/intel_driver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel_driver.c b/src/intel_driver.c index 6b2ab803..60f43bb8 100644 --- a/src/intel_driver.c +++ b/src/intel_driver.c @@ -1236,7 +1236,7 @@ static Bool I830PMEvent(int scrnIndex, pmEvent event, Bool undo) return TRUE; } -void intel_init_scrn(ScrnInfoPtr scrn) +Bool intel_init_scrn(ScrnInfoPtr scrn) { scrn->PreInit = I830PreInit; scrn->ScreenInit = I830ScreenInit; @@ -1247,4 +1247,5 @@ void intel_init_scrn(ScrnInfoPtr scrn) scrn->FreeScreen = I830FreeScreen; scrn->ValidMode = I830ValidMode; scrn->PMEvent = I830PMEvent; + return TRUE; } |