Search
lxdream.org :: lxdream/src/pvr2/pvr2.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.c
changeset 649:620c5c6496b5
prev645:a7392098299c
next1066:ddffe9d2b332
author nkeynes
date Tue Mar 11 08:50:16 2008 +0000 (12 years ago)
branchlxdream-render
permissions -rw-r--r--
last change Use maxz rather than minz for tri sorting (better results atm)
Change depth-test-disable to depth-mask (more correct)
Implement alpha test for punchthru polys
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.c Thu Mar 06 08:22:00 2008 +0000
1.2 +++ b/src/pvr2/pvr2.c Tue Mar 11 08:50:16 2008 +0000
1.3 @@ -585,7 +585,9 @@
1.4 case RENDER_PALETTE:
1.5 MMIO_WRITE( PVR2, reg, val&0x00000003 );
1.6 break;
1.7 -
1.8 + case RENDER_ALPHA_REF:
1.9 + MMIO_WRITE( PVR2, reg, val&0x000000FF );
1.10 + break;
1.11 /********** CRTC registers *************/
1.12 case DISP_HBORDER:
1.13 case DISP_VBORDER:
1.14 @@ -681,9 +683,6 @@
1.15 case PVRUNK5:
1.16 MMIO_WRITE( PVR2, reg, val&0x0000FFFF );
1.17 break;
1.18 - case PVRUNK6:
1.19 - MMIO_WRITE( PVR2, reg, val&0x000000FF );
1.20 - break;
1.21 case PVRUNK7:
1.22 MMIO_WRITE( PVR2, reg, val&0x00000001 );
1.23 break;
.