[Mplayer-cvslog] CVS: main/vidix/drivers radeon_vid.c,1.26,1.27

Nick Kurshev nick at mplayer.dev.hu
Wed Jan 30 10:18:44 CET 2002


Update of /cvsroot/mplayer/main/vidix/drivers
In directory mplayer:/var/tmp.root/cvs-serv6550/main/vidix/drivers

Modified Files:
	radeon_vid.c 
Log Message:
More correct double_buffering for packed fourcc

Index: radeon_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/radeon_vid.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- radeon_vid.c	30 Jan 2002 08:53:22 -0000	1.26
+++ radeon_vid.c	30 Jan 2002 09:18:41 -0000	1.27
@@ -954,20 +954,23 @@
 	  config->offset.u = config->offset.v;
 	  config->offset.v = tmp;
 	}
+	besr.vid_buf3_base_adrs = besr.vid_buf0_base_adrs+config->frame_size;
+	besr.vid_buf4_base_adrs = besr.vid_buf1_base_adrs+config->frame_size;
+	besr.vid_buf5_base_adrs = besr.vid_buf2_base_adrs+config->frame_size;
     }
     else
     {
       besr.vid_buf0_base_adrs = radeon_overlay_off;
       config->offset.y = config->offset.u = config->offset.v = ((left & ~7) << 1)&VIF_BUF0_BASE_ADRS_MASK;
       besr.vid_buf0_base_adrs += config->offset.y;
-      besr.vid_buf1_base_adrs = besr.vid_buf0_base_adrs;
+      besr.vid_buf1_base_adrs = besr.vid_buf0_base_adrs+config->frame_size;
       besr.vid_buf2_base_adrs = besr.vid_buf0_base_adrs;
+      besr.vid_buf3_base_adrs = besr.vif_buf0_base_adrs+config->frame_size;
+      besr.vid_buf4_base_adrs = besr.vid_buf0_base_adrs;
+      besr.vid_buf5_base_adrs = besr.vid_buf0_base_adrs+config->frame_size;
     }
     config->offsets[0] = 0;
     config->offsets[1] = config->frame_size;
-    besr.vid_buf3_base_adrs = besr.vid_buf0_base_adrs+config->frame_size;
-    besr.vid_buf4_base_adrs = besr.vid_buf1_base_adrs+config->frame_size;
-    besr.vid_buf5_base_adrs = besr.vid_buf2_base_adrs+config->frame_size;
 
     tmp = (left & 0x0003ffff) + 0x00028000 + (h_inc << 3);
     besr.p1_h_accum_init = ((tmp <<  4) & 0x000f8000) |




More information about the MPlayer-cvslog mailing list