diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-15 01:00:26 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-15 01:00:26 +0000 |
commit | 4cd0f2201a62cef3631d7d5cce190d56025b3028 (patch) | |
tree | 7ce777c6006654ef9525123dcf2611467ad23c1f /libvo | |
parent | 279284cc4c52d8cca221d7341b608ebc550a059f (diff) |
use mem2agpcpy_pic()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4714 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_dga.c | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/libvo/vo_dga.c b/libvo/vo_dga.c index 0a3f75b9c4..6d94d12407 100644 --- a/libvo/vo_dga.c +++ b/libvo/vo_dga.c @@ -23,6 +23,9 @@ * - works only on x86 architectures * * $Log$ + * Revision 1.43 2002/02/15 01:00:26 michael + * use mem2agpcpy_pic() + * * Revision 1.42 2002/02/12 23:19:37 michael * use mem2agpcpy() instead of fast_memcpy() * @@ -476,26 +479,12 @@ static uint32_t draw_frame( uint8_t *src[] ){ switch(SRC_MODE.vdm_conversion_func){ case VDM_CONV_NATIVE: -#if defined(HAVE_MMX) || !defined(ARCH_X86) - // use the code from fastmemcpy.h on x86, - // or ordinary memcpy on non-x86 cpus. - if(vo_dga_vp_skip){ - // use some stride ... - int i; - for(i=0; i< vo_dga_lines; i++){ - mem2agpcpy(d, s, vo_dga_bytes_per_line); - d+=vo_dga_vp_skip; - d+=vo_dga_bytes_per_line; - s+=vo_dga_bytes_per_line; - } - }else{ - // no stride, cool + fast ... - mem2agpcpy(d,s, vo_dga_bytes_per_line * vo_dga_lines); - } -#else /* ARCH_X86 and NO_MMX */ - // use some homebrewn assembly code ... - rep_movsl(d, s, lpl, vo_dga_vp_skip, numlines ); -#endif + mem2agpcpy_pic( + d, s, + vo_dga_bytes_per_line, + numlines, + vo_dga_bytes_per_line+vo_dga_vp_skip, + vo_dga_bytes_per_line); // DBG-COde |