[Intel-gfx] [PATCH] Disable XvMC on 915/945/G33 in KMS

Zhenyu Wang zhenyuw at linux.intel.com
Thu Jun 25 03:51:12 CEST 2009


These chips require physical address for XvMC surface, which
is not available in KMS case. Instead of crashing X, disable it now.

Signed-off-by: Zhenyu Wang <zhenyuw at linux.intel.com>
---
 src/i830_hwmc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/i830_hwmc.c b/src/i830_hwmc.c
index 75bf2e6..b377412 100644
--- a/src/i830_hwmc.c
+++ b/src/i830_hwmc.c
@@ -55,6 +55,9 @@ Bool intel_xvmc_probe(ScrnInfoPtr pScrn)
     if (!pI830->XvMCEnabled)
 	return FALSE;
 
+    if (pI830->use_drm_mode && IS_I915(pI830))
+	return FALSE;
+
     if (IS_I9XX(pI830)) {
 	if (IS_I915(pI830))
 	    ret = intel_xvmc_set_driver(&i915_xvmc_driver);
-- 
1.6.3.1




More information about the Intel-gfx mailing list