only enable xvmc for 915/945/G33

This commit is contained in:
Xiang, Haihao 2007-07-23 10:35:32 +08:00
parent a52c53b860
commit c4deefa80a
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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 {