Search
lxdream.org :: lxdream/src/pvr2/pvr2mem.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2mem.c
changeset 477:9a373f2ff009
prev429:e581b90c3fb3
next502:c4ecae2b1b5e
author nkeynes
date Wed Oct 31 09:10:23 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Add save/restore of render buffers in save states
Gzip memory blocks in save states
Move front-buffer management back to pvr2
Add screenshot preview when loading save states
Various minor fixes and cleanups
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2mem.c Mon Oct 08 11:52:13 2007 +0000
1.2 +++ b/src/pvr2/pvr2mem.c Wed Oct 31 09:10:23 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2mem.c,v 1.10 2007-10-08 11:52:13 nkeynes Exp $
1.6 + * $Id: pvr2mem.c,v 1.11 2007-10-31 09:10:23 nkeynes Exp $
1.7 *
1.8 * PVR2 (Video) VRAM handling routines (mainly for the 64-bit region)
1.9 *
1.10 @@ -521,13 +521,13 @@
1.11 if( (buffer->address & 0xFF000000) == 0x04000000 ) {
1.12 /* Interlaced buffer. Go the double copy... :( */
1.13 unsigned char target[buffer->size];
1.14 - display_driver->read_render_buffer( buffer, target );
1.15 + display_driver->read_render_buffer( target, buffer, buffer->rowstride, buffer->colour_format );
1.16 pvr2_vram64_write( buffer->address, target, buffer->size );
1.17 } else {
1.18 /* Regular buffer */
1.19 unsigned char target[buffer->size];
1.20 int line_size = buffer->width * colour_formats[buffer->colour_format].bpp;
1.21 - display_driver->read_render_buffer( buffer, target );
1.22 + display_driver->read_render_buffer( target, buffer, buffer->rowstride, buffer->colour_format );
1.23 if( (buffer->scale & 0xFFFF) == 0x0800 ) {
1.24 pvr2_vram_write_invert( buffer->address, target, buffer->size, line_size, line_size << 1 );
1.25 } else {
.