Search
lxdream.org :: lxdream :: r355:18bd008f700a
lxdream 0.9.1
released Jun 29
Download Now
changeset355:18bd008f700a MILESTONE2
parent354:8bf6587e1f9b
child356:b281cad966b7
authornkeynes
dateSun Feb 11 10:17:03 2007 +0000 (12 years ago)
Bug 27: FBO support
Update calls to pvr2_render_buffer_invalidate() for changes in #27
src/sh4/sh4mem.c
1.1 --- a/src/sh4/sh4mem.c Sun Feb 11 10:15:23 2007 +0000
1.2 +++ b/src/sh4/sh4mem.c Sun Feb 11 10:17:03 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4mem.c,v 1.19 2007-01-25 10:16:32 nkeynes Exp $
1.6 + * $Id: sh4mem.c,v 1.20 2007-02-11 10:17:03 nkeynes Exp $
1.7 * sh4mem.c is responsible for the SH4's access to memory (including memory
1.8 * mapped I/O), using the page maps created in mem.c
1.9 *
1.10 @@ -130,9 +130,9 @@
1.11
1.12 if( (addr&0x1F800000) == 0x04000000 ) {
1.13 addr = TRANSLATE_VIDEO_64BIT_ADDRESS(addr);
1.14 - pvr2_render_buffer_invalidate(addr);
1.15 + pvr2_render_buffer_invalidate(addr, FALSE);
1.16 } else if( (addr&0x1F800000) == 0x05000000 ) {
1.17 - pvr2_render_buffer_invalidate(addr);
1.18 + pvr2_render_buffer_invalidate(addr, FALSE);
1.19 }
1.20
1.21 if( IS_MMU_ENABLED() ) {
1.22 @@ -167,9 +167,9 @@
1.23
1.24 if( (addr&0x1F800000) == 0x04000000 ) {
1.25 addr = TRANSLATE_VIDEO_64BIT_ADDRESS(addr);
1.26 - pvr2_render_buffer_invalidate(addr);
1.27 + pvr2_render_buffer_invalidate(addr, FALSE);
1.28 } else if( (addr&0x1F800000) == 0x05000000 ) {
1.29 - pvr2_render_buffer_invalidate(addr);
1.30 + pvr2_render_buffer_invalidate(addr, FALSE);
1.31 }
1.32
1.33
1.34 @@ -204,9 +204,9 @@
1.35 return SIGNEXT8(sh4_read_p4( addr ));
1.36 if( (addr&0x1F800000) == 0x04000000 ) {
1.37 addr = TRANSLATE_VIDEO_64BIT_ADDRESS(addr);
1.38 - pvr2_render_buffer_invalidate(addr);
1.39 + pvr2_render_buffer_invalidate(addr, FALSE);
1.40 } else if( (addr&0x1F800000) == 0x05000000 ) {
1.41 - pvr2_render_buffer_invalidate(addr);
1.42 + pvr2_render_buffer_invalidate(addr, FALSE);
1.43 }
1.44
1.45
1.46 @@ -245,9 +245,9 @@
1.47 (addr&0x1F800000) == 0x11000000 ) {
1.48 texcache_invalidate_page(addr& 0x7FFFFF);
1.49 addr = TRANSLATE_VIDEO_64BIT_ADDRESS(addr);
1.50 - pvr2_render_buffer_invalidate(addr);
1.51 + pvr2_render_buffer_invalidate(addr, TRUE);
1.52 } else if( (addr&0x1F800000) == 0x05000000 ) {
1.53 - pvr2_render_buffer_invalidate(addr);
1.54 + pvr2_render_buffer_invalidate(addr, TRUE);
1.55 }
1.56
1.57 if( IS_MMU_ENABLED() ) {
1.58 @@ -293,9 +293,9 @@
1.59 (addr&0x1F800000) == 0x11000000 ) {
1.60 texcache_invalidate_page(addr& 0x7FFFFF);
1.61 addr = TRANSLATE_VIDEO_64BIT_ADDRESS(addr);
1.62 - pvr2_render_buffer_invalidate(addr);
1.63 + pvr2_render_buffer_invalidate(addr, TRUE);
1.64 } else if( (addr&0x1F800000) == 0x05000000 ) {
1.65 - pvr2_render_buffer_invalidate(addr);
1.66 + pvr2_render_buffer_invalidate(addr, TRUE);
1.67 }
1.68 if( IS_MMU_ENABLED() ) {
1.69 ERROR( "user-mode & mmu translation not implemented, aborting", NULL );
1.70 @@ -329,9 +329,9 @@
1.71 (addr&0x1F800000) == 0x11000000 ) {
1.72 texcache_invalidate_page(addr& 0x7FFFFF);
1.73 addr = TRANSLATE_VIDEO_64BIT_ADDRESS(addr);
1.74 - pvr2_render_buffer_invalidate(addr);
1.75 + pvr2_render_buffer_invalidate(addr, TRUE);
1.76 } else if( (addr&0x1F800000) == 0x05000000 ) {
1.77 - pvr2_render_buffer_invalidate(addr);
1.78 + pvr2_render_buffer_invalidate(addr, TRUE);
1.79 }
1.80
1.81 if( IS_MMU_ENABLED() ) {
1.82 @@ -377,7 +377,7 @@
1.83 pvr2_dma_write( destaddr, src, count );
1.84 return;
1.85 } else if( (destaddr & 0x1F800000) == 0x05000000 ) {
1.86 - pvr2_render_buffer_invalidate( destaddr );
1.87 + pvr2_render_buffer_invalidate( destaddr, TRUE );
1.88 } else if( (destaddr & 0x1F800000) == 0x04000000 ) {
1.89 pvr2_vram64_write( destaddr, src, count );
1.90 return;
.