diff options
author | Alex Deucher <alex@botch2.com> | 2007-08-16 21:55:14 -0400 |
---|---|---|
committer | Alex Deucher <alex@botch2.com> | 2007-08-16 21:55:14 -0400 |
commit | a90d675832ddb02c81ace010ccbf02619b70edac (patch) | |
tree | 2a6ef595ea6fd08870e43e2d011636e01782a5c1 /src/radeon_crtc.c | |
parent | 5793e8753d11432bf95c7c6dd80c811e16aba058 (diff) |
RADEON: fix Xv clipping and overlay sourcing
- Basically just copied from the intel driver. I'm planning to push
this to the server soon, but add it now to get things working
and to provide compat for older servers.
- Overlay crtc source control attribute now called XV_CRTC
The old attribute XV_SWITCHCRT has been removed. If anyone cares,
we can add it back as an alias to XV_CRTC
XV_CRTC: -1 auto, 0 crtc0, 1 crtc1
Diffstat (limited to 'src/radeon_crtc.c')
-rw-r--r-- | src/radeon_crtc.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/radeon_crtc.c b/src/radeon_crtc.c index 8e71330..434034c 100644 --- a/src/radeon_crtc.c +++ b/src/radeon_crtc.c @@ -1296,28 +1296,3 @@ RADEONCrtcFindClosestMode(xf86CrtcPtr crtc, DisplayModePtr pMode) return pMode; } -void -RADEONChooseOverlayCRTC(ScrnInfoPtr pScrn, BoxPtr dstBox) -{ - xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(pScrn); - RADEONInfoPtr info = RADEONPTR(pScrn); - int c; - int crtc_num = 0; - - for (c = 0; c < xf86_config->num_crtc; c++) - { - xf86CrtcPtr crtc = xf86_config->crtc[c]; - - if (!crtc->enabled) - continue; - - if ((dstBox->x1 >= crtc->x) && (dstBox->y1 >= crtc->y)) - crtc_num = c; - } - - if (crtc_num == 1) - info->OverlayOnCRTC2 = TRUE; - else - info->OverlayOnCRTC2 = FALSE; -} - |