summaryrefslogtreecommitdiff
path: root/src/uxa/intel_video.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-02-06 09:24:17 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-02-06 09:24:17 +0000
commit6fc46adb18a8410074c12d6e8979ef01813ebdf2 (patch)
tree541618f94175a747366ada1844c2d4bc47fd1082 /src/uxa/intel_video.c
parent1eadd1d0b1c8bcbf11eb7c0e112d1e424b63c25e (diff)
uxa: Do not expose TextureVideo Xv adapters when acceleration is disabled
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/uxa/intel_video.c')
-rw-r--r--src/uxa/intel_video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uxa/intel_video.c b/src/uxa/intel_video.c
index d1b98d47..01919e37 100644
--- a/src/uxa/intel_video.c
+++ b/src/uxa/intel_video.c
@@ -354,7 +354,8 @@ void I830InitVideo(ScreenPtr screen)
/* Set up textured video if we can do it at this depth and we are on
* supported hardware.
*/
- if (scrn->bitsPerPixel >= 16 &&
+ if (!intel->force_fallback &&
+ scrn->bitsPerPixel >= 16 &&
INTEL_INFO(intel)->gen >= 030) {
texturedAdaptor = I830SetupImageVideoTextured(screen);
if (texturedAdaptor != NULL) {