mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
DRI2: Remove superfluous assignments to *_info->frame
That field is only used for page flipping. (Cherry picked from radeon commit 65045112fdc8a9fa36e0e00f46739a6152b775ff) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
f4c2b640be
commit
5419e13da7
@@ -1038,7 +1038,6 @@ static int amdgpu_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr draw,
|
||||
CARD32 delay;
|
||||
delay = amdgpu_dri2_extrapolate_msc_delay(crtc, &target_msc,
|
||||
divisor, remainder);
|
||||
wait_info->frame = target_msc;
|
||||
amdgpu_dri2_schedule_event(delay, wait_info);
|
||||
DRI2BlockClient(client, draw);
|
||||
return TRUE;
|
||||
@@ -1086,8 +1085,6 @@ static int amdgpu_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr draw,
|
||||
goto out_complete;
|
||||
}
|
||||
|
||||
wait_info->frame = vbl.reply.sequence;
|
||||
wait_info->frame += amdgpu_get_interpolated_vblanks(crtc);
|
||||
DRI2BlockClient(client, draw);
|
||||
return TRUE;
|
||||
}
|
||||
@@ -1120,8 +1117,6 @@ static int amdgpu_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr draw,
|
||||
goto out_complete;
|
||||
}
|
||||
|
||||
wait_info->frame = vbl.reply.sequence;
|
||||
wait_info->frame += amdgpu_get_interpolated_vblanks(crtc);
|
||||
DRI2BlockClient(client, draw);
|
||||
|
||||
return TRUE;
|
||||
@@ -1279,7 +1274,6 @@ static int amdgpu_dri2_schedule_swap(ClientPtr client, DrawablePtr draw,
|
||||
CARD32 delay;
|
||||
delay = amdgpu_dri2_extrapolate_msc_delay(crtc, target_msc,
|
||||
divisor, remainder);
|
||||
swap_info->frame = *target_msc;
|
||||
amdgpu_dri2_schedule_event(delay, swap_info);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user