[PATCH 05/14] DRI2: Remove superfluous assignments to *_info->frame

Michel Dänzer michel at daenzer.net
Wed Mar 11 23:10:47 PDT 2015


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

That field is only used for page flipping.

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

diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 31bd73c..a0eecac 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -1133,7 +1133,6 @@ static int radeon_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr draw,
 	CARD32 delay;
 	delay = radeon_dri2_extrapolate_msc_delay(crtc, &target_msc,
 						  divisor, remainder);
-	wait_info->frame = target_msc;
 	radeon_dri2_schedule_event(delay, wait_info);
 	DRI2BlockClient(client, draw);
 	return TRUE;
@@ -1179,8 +1178,6 @@ static int radeon_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr draw,
             goto out_complete;
         }
 
-        wait_info->frame = vbl.reply.sequence;
-	wait_info->frame += radeon_get_interpolated_vblanks(crtc);
         DRI2BlockClient(client, draw);
         return TRUE;
     }
@@ -1213,8 +1210,6 @@ static int radeon_dri2_schedule_wait_msc(ClientPtr client, DrawablePtr draw,
         goto out_complete;
     }
 
-    wait_info->frame = vbl.reply.sequence;
-    wait_info->frame += radeon_get_interpolated_vblanks(crtc);
     DRI2BlockClient(client, draw);
 
     return TRUE;
@@ -1370,7 +1365,6 @@ static int radeon_dri2_schedule_swap(ClientPtr client, DrawablePtr draw,
 	CARD32 delay;
 	delay = radeon_dri2_extrapolate_msc_delay(crtc, target_msc,
 						  divisor, remainder);
-	swap_info->frame = *target_msc;
 	radeon_dri2_schedule_event(delay, swap_info);
 	return TRUE;
     }
-- 
2.1.4



More information about the xorg-driver-ati mailing list