Search
lxdream.org :: lxdream/src/pvr2/rendsort.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/rendsort.c
changeset 276:1e594c2804f8
prev222:541d9d899aba
next318:363935d31859
author nkeynes
date Mon Jan 15 08:32:09 2007 +0000 (17 years ago)
permissions -rw-r--r--
last change Break vram routines out into pvr2mem.c
Initial (untested) implementation of stride textures
Hookup YUV converter code in pvr2.c
file annotate diff log raw
1.1 --- a/src/pvr2/rendsort.c Tue Sep 12 11:54:19 2006 +0000
1.2 +++ b/src/pvr2/rendsort.c Mon Jan 15 08:32:09 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: rendsort.c,v 1.1 2006-09-12 11:54:19 nkeynes Exp $
1.6 + * $Id: rendsort.c,v 1.2 2007-01-12 10:15:06 nkeynes Exp $
1.7 *
1.8 * PVR2 renderer routines for depth sorted polygons
1.9 *
1.10 @@ -121,7 +121,7 @@
1.11 }
1.12 } else if( (entry & 0xE0000000) == 0xA0000000 ) {
1.13 /* Sprite(s) */
1.14 - int strip_count = (entry >> 25) & 0x0F;
1.15 + int strip_count = ((entry >> 25) & 0x0F)+1;
1.16 int polygon_length = 4 * vertex_length + context_length;
1.17 int i;
1.18 for( i=0; i<strip_count; i++ ) {
.