xf86-video-intel: src/i830_hwmc.c

Zhenyu Wang zhen at kemper.freedesktop.org
Sun Jun 28 22:46:37 PDT 2009


 src/i830_hwmc.c |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit f53b3239dbc0ed723774e386e07ac9d8ce96bb89
Author: Zhenyu Wang <zhenyuw at linux.intel.com>
Date:   Thu Jun 25 10:22:23 2009 +0800

    Disable XvMC on 915G/GM in KMS
    
    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>

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


More information about the xorg-commit mailing list