uxa: Do not expose TextureVideo Xv adapters when acceleration is disabled
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 6 Feb 2014 09:24:17 +0000 (09:24 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 6 Feb 2014 09:24:17 +0000 (09:24 +0000)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/uxa/intel_video.c

index d1b98d4..01919e3 100644 (file)
@@ -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) {