diff options
author | Maxim Levitsky <maximlevitsky at gmail.com> | 2008-11-05 13:47:09 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-11-05 13:51:19 -0800 |
commit | d828b0802c939cb12664db4dd157a4944a4db01b (patch) | |
tree | c63e232352a69319fec78340b315e4a56cd40185 /src/i830_video.c | |
parent | 040d9bf9d8748d1ed8f977a6356d198def978b51 (diff) |
Add an option to make the overlay be the first XV adaptor.
Diffstat (limited to 'src/i830_video.c')
-rw-r--r-- | src/i830_video.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/i830_video.c b/src/i830_video.c index 316bc61e..216ed476 100644 --- a/src/i830_video.c +++ b/src/i830_video.c @@ -611,7 +611,6 @@ I830InitVideo(ScreenPtr pScreen) { texturedAdaptor = I830SetupImageVideoTextured(pScreen); if (texturedAdaptor != NULL) { - adaptors[num_adaptors++] = texturedAdaptor; xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Set up textured video\n"); } else { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, @@ -625,7 +624,6 @@ I830InitVideo(ScreenPtr pScreen) { overlayAdaptor = I830SetupImageVideoOverlay(pScreen); if (overlayAdaptor != NULL) { - adaptors[num_adaptors++] = overlayAdaptor; xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Set up overlay video\n"); } else { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, @@ -633,6 +631,16 @@ I830InitVideo(ScreenPtr pScreen) } I830InitOffscreenImages(pScreen); } + + if (overlayAdaptor && pI830->XvPreferOverlay) + adaptors[num_adaptors++] = overlayAdaptor; + + if (texturedAdaptor) + adaptors[num_adaptors++] = texturedAdaptor; + + if (overlayAdaptor && !pI830->XvPreferOverlay) + adaptors[num_adaptors++] = overlayAdaptor; + #ifdef INTEL_XVMC if (intel_xvmc_probe(pScrn)) { if (texturedAdaptor) |