diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2007-07-23 10:35:32 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2007-07-23 10:35:32 +0800 |
commit | c4deefa80a6349db968e25bd6778cdf7a514ca7f (patch) | |
tree | 18dcaca262c5626fccb96312c9d7e70c52fe81d0 | |
parent | a52c53b8603495ab05e07e3da5092fe122fcb6f2 (diff) |
only enable xvmc for 915/945/G33
-rw-r--r-- | src/i830_driver.c | 5 | ||||
-rw-r--r-- | src/i830_video.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c index f24d1add..b617bd4a 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -2722,7 +2722,10 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) } #ifdef XvMCExtension - if (pI830->XvEnabled && (pI830->directRenderingEnabled) && IS_I9XX(pI830)) { + if (pI830->XvEnabled && (pI830->directRenderingEnabled) && + (IS_I915G(pI830) || IS_I915GM(pI830) || + IS_I945G(pI830) || IS_I945GM(pI830) || + IS_G33CLASS(pI830))) { I915InitMC(pScreen); } #endif diff --git a/src/i830_video.c b/src/i830_video.c index a74634fa..4ee9f761 100644 --- a/src/i830_video.c +++ b/src/i830_video.c @@ -605,8 +605,11 @@ I830InitVideo(ScreenPtr pScreen) #ifdef XF86DRI #ifdef XvMCExtension - if (IS_I9XX(pI830)) + if (IS_I915G(pI830) || IS_I915GM(pI830) || + IS_I945G(pI830) || IS_I945GM(pI830) || + IS_G33CLASS(pI830)) { I915XvMCInitXv(pScrn, texturedAdaptor); + } #endif #endif } else { |