[PATCH 01/13] DRI2: change signature of populate_vbl_request_type
Ilija Hadzic
ilijahadzic at gmail.com
Wed May 8 19:39:36 PDT 2013
This function no longer uses info argument, so nuke it.
Signed-off-by: Ilija Hadzic <ihadzic at research.bell-labs.com>
---
src/radeon_dri2.c | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 8064206..391483c 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -851,8 +851,7 @@ cleanup:
free(event);
}
-static
-drmVBlankSeqType populate_vbl_request_type(RADEONInfoPtr info, xf86CrtcPtr crtc)
+static drmVBlankSeqType populate_vbl_request_type(xf86CrtcPtr crtc)
{
drmVBlankSeqType type = 0;
int crtc_id = drmmode_get_crtc_id(crtc);
@@ -892,7 +891,7 @@ static int radeon_dri2_get_msc(DrawablePtr draw, CARD64 *ust, CARD64 *msc)
return TRUE;
}
vbl.request.type = DRM_VBLANK_RELATIVE;
- vbl.request.type |= populate_vbl_request_type(info, crtc);
+ vbl.request.type |= populate_vbl_request_type(crtc);
vbl.request.sequence = 0;
ret = drmWaitVBlank(info->dri2.drm_fd, &vbl);
@@ -956,7 +955,7 @@ static int radeon_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr draw,
/* Get current count */
vbl.request.type = DRM_VBLANK_RELATIVE;
- vbl.request.type |= populate_vbl_request_type(info, crtc);
+ vbl.request.type |= populate_vbl_request_type(crtc);
vbl.request.sequence = 0;
ret = drmWaitVBlank(info->dri2.drm_fd, &vbl);
if (ret) {
@@ -982,7 +981,7 @@ static int radeon_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr draw,
if (current_msc >= target_msc)
target_msc = current_msc;
vbl.request.type = DRM_VBLANK_ABSOLUTE | DRM_VBLANK_EVENT;
- vbl.request.type |= populate_vbl_request_type(info, crtc);
+ vbl.request.type |= populate_vbl_request_type(crtc);
vbl.request.sequence = target_msc;
vbl.request.signal = (unsigned long)wait_info;
ret = drmWaitVBlank(info->dri2.drm_fd, &vbl);
@@ -1002,7 +1001,7 @@ static int radeon_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr draw,
* so we queue an event that will satisfy the divisor/remainder equation.
*/
vbl.request.type = DRM_VBLANK_ABSOLUTE | DRM_VBLANK_EVENT;
- vbl.request.type |= populate_vbl_request_type(info, crtc);
+ vbl.request.type |= populate_vbl_request_type(crtc);
vbl.request.sequence = current_msc - (current_msc % divisor) +
remainder;
@@ -1187,7 +1186,7 @@ static int radeon_dri2_schedule_swap(ClientPtr client, DrawablePtr draw,
/* Get current count */
vbl.request.type = DRM_VBLANK_RELATIVE;
- vbl.request.type |= populate_vbl_request_type(info, crtc);
+ vbl.request.type |= populate_vbl_request_type(crtc);
vbl.request.sequence = 0;
ret = drmWaitVBlank(info->dri2.drm_fd, &vbl);
if (ret) {
@@ -1230,7 +1229,7 @@ static int radeon_dri2_schedule_swap(ClientPtr client, DrawablePtr draw,
*/
if (flip == 0)
vbl.request.type |= DRM_VBLANK_NEXTONMISS;
- vbl.request.type |= populate_vbl_request_type(info, crtc);
+ vbl.request.type |= populate_vbl_request_type(crtc);
/* If target_msc already reached or passed, set it to
* current_msc to ensure we return a reasonable value back
@@ -1266,7 +1265,7 @@ static int radeon_dri2_schedule_swap(ClientPtr client, DrawablePtr draw,
vbl.request.type = DRM_VBLANK_ABSOLUTE | DRM_VBLANK_EVENT;
if (flip == 0)
vbl.request.type |= DRM_VBLANK_NEXTONMISS;
- vbl.request.type |= populate_vbl_request_type(info, crtc);
+ vbl.request.type |= populate_vbl_request_type(crtc);
vbl.request.sequence = current_msc - (current_msc % divisor) +
remainder;
--
1.8.1.5
More information about the xorg-driver-ati
mailing list