summaryrefslogtreecommitdiff
path: root/src/uxa
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-01-28 21:56:23 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-01-28 21:56:23 +0000
commit9f3fc9ec49f0caf53344577896ef9b6468cd3d4f (patch)
tree2eda5b27f7e1fe29e455168d8562a48a953605e0 /src/uxa
parent2425f03432de9bedeeda14ddbc5742cf7ce22874 (diff)
Allow selection of glamor as the default acceleration method
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74162 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/uxa')
-rw-r--r--src/uxa/intel_glamor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uxa/intel_glamor.c b/src/uxa/intel_glamor.c
index 7f59e29a..4d1c7679 100644
--- a/src/uxa/intel_glamor.c
+++ b/src/uxa/intel_glamor.c
@@ -76,11 +76,12 @@ intel_glamor_create_screen_resources(ScreenPtr screen)
static Bool
intel_glamor_enabled(intel_screen_private *intel)
{
+ enum { SNA, UXA, GLAMOR } default_accel_method = DEFAULT_ACCEL_METHOD;
const char *s;
s = xf86GetOptValString(intel->Options, OPTION_ACCEL_METHOD);
if (s == NULL)
- return FALSE;
+ return default_accel_method == GLAMOR;
return strcasecmp(s, "glamor") == 0;
}