[PATCH xf86-video-amdgpu 05/13] DRI2: Remove superfluous assignments to *_info->frame

Michel Dänzer michel at daenzer.net
Tue Jun 2 02:21:23 PDT 2015


From: Michel Dänzer <michel.daenzer at amd.com>

That field is only used for page flipping.

(Cherry picked from radeon commit 65045112fdc8a9fa36e0e00f46739a6152b775ff)

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/amdgpu_dri2.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/amdgpu_dri2.c b/src/amdgpu_dri2.c
index 895abcd..fd98fa7 100644
--- a/src/amdgpu_dri2.c
+++ b/src/amdgpu_dri2.c
@@ -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;
 	}
-- 
2.1.4



More information about the xorg-driver-ati mailing list