From b622860429e00d6ab4407980232659c283a8fe8d Mon Sep 17 00:00:00 2001 From: Xiang Hai hao Date: Mon, 18 May 2009 17:12:30 +0800 Subject: DRI2 for XvMC --- src/i830_driver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/i830_driver.c') diff --git a/src/i830_driver.c b/src/i830_driver.c index 854ad0fb..1061d44a 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -2767,8 +2767,9 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) #ifdef INTEL_XVMC pI830->XvMCEnabled = FALSE; - from = xf86GetOptValBool(pI830->Options, OPTION_XVMC, - &pI830->XvMCEnabled) ? X_CONFIG : X_DEFAULT; + from = ((pI830->directRenderingType == DRI_DRI2) && + xf86GetOptValBool(pI830->Options, OPTION_XVMC, + &pI830->XvMCEnabled) ? X_CONFIG : X_DEFAULT); xf86DrvMsg(pScrn->scrnIndex, from, "Intel XvMC decoder %sabled\n", pI830->XvMCEnabled ? "en" : "dis"); #endif -- cgit v1.2.3