revision 340:5ae1c80a68fb
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 340:5ae1c80a68fb |
parent | 339:95b084ec9cb3 |
child | 341:924029ff95ea |
author | nkeynes |
date | Wed Jan 31 10:31:53 2007 +0000 (17 years ago) |
Fix sprites not setting clip mode
Fix clip-inside vertical size
Fix clip-inside vertical size
src/pvr2/tacore.c | view | annotate | diff | log |
1.1 --- a/src/pvr2/tacore.c Mon Jan 29 11:25:40 2007 +00001.2 +++ b/src/pvr2/tacore.c Wed Jan 31 10:31:53 2007 +00001.3 @@ -1,5 +1,5 @@1.4 /**1.5 - * $Id: tacore.c,v 1.10 2007-01-18 11:14:01 nkeynes Exp $1.6 + * $Id: tacore.c,v 1.11 2007-01-31 10:31:53 nkeynes Exp $1.7 *1.8 * PVR2 Tile Accelerator implementation1.9 *1.10 @@ -562,7 +562,7 @@1.11 break;1.12 case TA_POLYCMD_CLIP_INSIDE:1.13 if( polygon_bound.x2 < ta_status.clip.x1 || polygon_bound.x1 > ta_status.clip.x2 ||1.14 - polygon_bound.y2 < ta_status.clip.y1 || polygon_bound.y1 > ta_status.clip.y1 ) {1.15 + polygon_bound.y2 < ta_status.clip.y1 || polygon_bound.y1 > ta_status.clip.y2 ) {1.16 return;1.17 } else {1.18 /* Clamp to clip bounds */1.19 @@ -779,6 +779,10 @@1.20 ta_status.poly_context_size = 3;1.21 ta_status.poly_context[0] = (data[1].i & 0xFC1FFFFF) |1.22 ((data[0].i & 0x0B)<<22) | 0x00400000;1.23 + ta_status.clip_mode = TA_POLYCMD_CLIP(data[0].i);1.24 + if( ta_status.clip_mode == 1 ) { /* Reserved - treat as CLIP_INSIDE */1.25 + ta_status.clip_mode = TA_POLYCMD_CLIP_INSIDE;1.26 + }1.27 if( TA_POLYCMD_IS_SPECULAR(data[0].i) ) {1.28 ta_status.poly_context[0] |= 0x01000000;1.29 }
.