summaryrefslogtreecommitdiff
path: root/src/radeon_exa.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-02-12 11:34:47 -0500
committerAlex Deucher <alexdeucher@gmail.com>2010-02-12 11:34:47 -0500
commit8ad4025affe1fb2f417e3a3031d74f83be5df253 (patch)
tree3559f1dc54dfc709ad2df7512b0def5807733348 /src/radeon_exa.c
parent4f9d1714a7382594b834d446bbe502663f6a2778 (diff)
radeon: consolidate crtc selector for vline wait
Use the Xv version as it takes into account the area covered by the op rather than just picking the largest crtc area.
Diffstat (limited to 'src/radeon_exa.c')
-rw-r--r--src/radeon_exa.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/radeon_exa.c b/src/radeon_exa.c
index 97733c3b..f8b0cc92 100644
--- a/src/radeon_exa.c
+++ b/src/radeon_exa.c
@@ -205,34 +205,6 @@ Bool RADEONGetPixmapOffsetPitch(PixmapPtr pPix, uint32_t *pitch_offset)
return RADEONGetOffsetPitch(pPix, bpp, pitch_offset, offset, pitch);
}
-/*
- * Used for vblank render stalling.
- * Ideally we'd have one pixmap per crtc.
- * syncing per-blit is unrealistic so,
- * we sync to whichever crtc has a larger area.
- */
-xf86CrtcPtr RADEONBiggerCrtcArea(PixmapPtr pPix)
-{
- ScrnInfoPtr pScrn = xf86Screens[pPix->drawable.pScreen->myNum];
- xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(pScrn);
- int c, area = 0;
- xf86CrtcPtr ret_crtc = NULL;
-
- for (c = 0; c < xf86_config->num_crtc; c++) {
- xf86CrtcPtr crtc = xf86_config->crtc[c];
-
- if (!crtc->enabled)
- continue;
-
- if ((crtc->mode.HDisplay * crtc->mode.VDisplay) > area) {
- area = crtc->mode.HDisplay * crtc->mode.VDisplay;
- ret_crtc = crtc;
- }
- }
-
- return ret_crtc;
-}
-
#if X_BYTE_ORDER == X_BIG_ENDIAN
static unsigned long swapper_surfaces[6];