diff options
author | Eric Anholt <eric@anholt.net> | 2009-02-27 23:38:00 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-03-06 13:29:09 -0800 |
commit | d2af21a66d7e1d1dd62c6aa8fb41d3fd6045bcd7 (patch) | |
tree | 5f2536f7cfa7a802d376a38f9cd8ed3feed4d8a0 /src | |
parent | 755757669f0cad670cfa084d33d7c3e928d27855 (diff) |
Remove configurable support for disabling XV.
google shows one instance of this being used a year and a half ago.
Diffstat (limited to 'src')
-rw-r--r-- | src/i830_driver.c | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c index 60a00768..16f68dc1 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -304,7 +304,6 @@ typedef enum { OPTION_NOACCEL, OPTION_CACHE_LINES, OPTION_DRI, - OPTION_XVIDEO, OPTION_VIDEO_KEY, OPTION_COLOR_KEY, OPTION_MODEDEBUG, @@ -326,7 +325,6 @@ static OptionInfoRec I830Options[] = { {OPTION_NOACCEL, "NoAccel", OPTV_BOOLEAN, {0}, FALSE}, {OPTION_CACHE_LINES, "CacheLines", OPTV_INTEGER, {0}, FALSE}, {OPTION_DRI, "DRI", OPTV_BOOLEAN, {0}, TRUE}, - {OPTION_XVIDEO, "XVideo", OPTV_BOOLEAN, {0}, TRUE}, {OPTION_COLOR_KEY, "ColorKey", OPTV_INTEGER, {0}, FALSE}, {OPTION_VIDEO_KEY, "VideoKey", OPTV_INTEGER, {0}, FALSE}, {OPTION_MODEDEBUG, "ModeDebug", OPTV_BOOLEAN, {0}, FALSE}, @@ -1763,9 +1761,6 @@ I830XvInit(ScrnInfoPtr pScrn) I830Ptr pI830 = I830PTR(pScrn); MessageType from = X_PROBED; - pI830->XvDisabled = - !xf86ReturnOptValBool(pI830->Options, OPTION_XVIDEO, TRUE); - pI830->XvPreferOverlay = xf86ReturnOptValBool(pI830->Options, OPTION_PREFER_OVERLAY, FALSE); #ifdef I830_XV @@ -3076,7 +3071,7 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) * Set this so that the overlay allocation is factored in when * appropriate. */ - pI830->XvEnabled = !pI830->XvDisabled; + pI830->XvEnabled = TRUE; #endif @@ -3105,13 +3100,10 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) return FALSE; #ifdef I830_XV - pI830->XvEnabled = !pI830->XvDisabled; - if (pI830->XvEnabled) { - if (pI830->accel == ACCEL_NONE) { - xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "Xv is disabled because it " - "needs 2D acceleration.\n"); - pI830->XvEnabled = FALSE; - } + if (pI830->accel == ACCEL_NONE) { + xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "Xv is disabled because it " + "needs 2D acceleration.\n"); + pI830->XvEnabled = FALSE; } #else pI830->XvEnabled = FALSE; @@ -3126,16 +3118,6 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) } } -#ifdef I830_XV - if (pI830->XvEnabled) { - if (pI830->accel == ACCEL_NONE) { - xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "Disabling Xv because it " - "needs 2D acceleration.\n"); - pI830->XvEnabled = FALSE; - } - } -#endif - if (!pI830->use_drm_mode) { DPRINTF(PFX, "assert( if(!I830MapMem(pScrn)) )\n"); if (!I830MapMem(pScrn)) |