Search
lxdream.org :: lxdream/src/pvr2/pvr2mem.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2mem.c
changeset 796:a2dc83592467
prev736:a02d1475ccfd
next827:d333f4248727
author nkeynes
date Wed Jul 30 22:50:44 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Bug #61: OpenBSD support
(Modified) patch from bsdmaniak, thanks!
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2mem.c Mon Jul 14 07:44:42 2008 +0000
1.2 +++ b/src/pvr2/pvr2mem.c Wed Jul 30 22:50:44 2008 +0000
1.3 @@ -71,7 +71,7 @@
1.4 length = 0x800000 - destaddr;
1.5 }
1.6
1.7 - for( i=destaddr & 0xFFFFF000; i < destaddr + length; i+= PAGE_SIZE ) {
1.8 + for( i=destaddr & 0xFFFFF000; i < destaddr + length; i+= LXDREAM_PAGE_SIZE ) {
1.9 texcache_invalidate_page( i );
1.10 }
1.11
1.12 @@ -127,7 +127,7 @@
1.13 line_gap = i >> 3;
1.14 line_bytes >>= 2;
1.15
1.16 - for( i=destaddr & 0xFFFFF000; i < destaddr + line_stride_bytes*line_count; i+= PAGE_SIZE ) {
1.17 + for( i=destaddr & 0xFFFFF000; i < destaddr + line_stride_bytes*line_count; i+= LXDREAM_PAGE_SIZE ) {
1.18 texcache_invalidate_page( i );
1.19 }
1.20
.