diff options
Diffstat (limited to 'src/radeon_exa.c')
-rw-r--r-- | src/radeon_exa.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/radeon_exa.c b/src/radeon_exa.c index 7b9164e9..6cf9598b 100644 --- a/src/radeon_exa.c +++ b/src/radeon_exa.c @@ -211,11 +211,12 @@ Bool RADEONGetPixmapOffsetPitch(PixmapPtr pPix, uint32_t *pitch_offset) * syncing per-blit is unrealistic so, * we sync to whichever crtc has a larger area. */ -int RADEONBiggerCrtcArea(PixmapPtr pPix) +xf86CrtcPtr RADEONBiggerCrtcArea(PixmapPtr pPix) { ScrnInfoPtr pScrn = xf86Screens[pPix->drawable.pScreen->myNum]; xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(pScrn); - int c, crtc_num = -1, area = 0; + int c, area = 0; + xf86CrtcPtr ret_crtc = NULL; for (c = 0; c < xf86_config->num_crtc; c++) { xf86CrtcPtr crtc = xf86_config->crtc[c]; @@ -225,11 +226,11 @@ int RADEONBiggerCrtcArea(PixmapPtr pPix) if ((crtc->mode.HDisplay * crtc->mode.VDisplay) > area) { area = crtc->mode.HDisplay * crtc->mode.VDisplay; - crtc_num = c; + ret_crtc = crtc; } } - return crtc_num; + return ret_crtc; } #if X_BYTE_ORDER == X_BIG_ENDIAN |