Search
lxdream.org :: lxdream :: r218:cbad5a3f8387
lxdream 0.9.1
released Jun 29
Download Now
changeset218:cbad5a3f8387
parent217:d0b3da720456
child219:dfd3292143f2
authornkeynes
dateTue Aug 29 08:11:56 2006 +0000 (14 years ago)
Add method to copy to vram and flip at the same time
src/pvr2/pvr2.c
1.1 --- a/src/pvr2/pvr2.c Tue Aug 29 08:09:51 2006 +0000
1.2 +++ b/src/pvr2/pvr2.c Tue Aug 29 08:11:56 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2.c,v 1.32 2006-08-18 12:43:04 nkeynes Exp $
1.6 + * $Id: pvr2.c,v 1.33 2006-08-29 08:11:56 nkeynes Exp $
1.7 *
1.8 * PVR2 (Video) Core module implementation and MMIO registers.
1.9 *
1.10 @@ -481,7 +481,17 @@
1.11 *dest++ = *src++;
1.12 }
1.13 }
1.14 +}
1.15
1.16 +void pvr2_vram_write_invert( sh4addr_t destaddr, char *src, uint32_t length, uint32_t line_length )
1.17 +{
1.18 + char *dest = video_base + (destaddr & 0x007FFFFF);
1.19 + char *p = src + length - line_length;
1.20 + while( p >= src ) {
1.21 + memcpy( dest, p, line_length );
1.22 + p -= line_length;
1.23 + dest += line_length;
1.24 + }
1.25 }
1.26
1.27 void pvr2_vram64_read( char *dest, sh4addr_t srcaddr, uint32_t length )
.