summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIlija Hadzic <ilijahadzic@gmail.com>2013-05-08 22:39:36 -0400
committerMichel Dänzer <michel@daenzer.net>2013-05-23 18:16:44 +0200
commit34660d8757ff16acd1686ff2872f4600d92a68bf (patch)
treea5287bb4c85b3be2ad9c2ec52ff530f05779492a /src
parentab6e85d1f5dd4657591b314b85fd2453f99c3712 (diff)
DRI2: change signature of populate_vbl_request_type
This function no longer uses info argument, so nuke it. Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r--src/radeon_dri2.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 443d9084..8c4be4c6 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -854,8 +854,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);
@@ -895,7 +894,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);
@@ -959,7 +958,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) {
@@ -985,7 +984,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);
@@ -1005,7 +1004,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;
@@ -1190,7 +1189,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) {
@@ -1233,7 +1232,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
@@ -1269,7 +1268,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;