Search
lxdream.org :: lxdream/src/pvr2/render.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/render.c
changeset 338:8c68d9097846
prev337:cdd757aa8e8c
next352:f0df7a6d4703
author nkeynes
date Mon Jan 29 11:24:44 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Get render size from the tile segment array
Set near clip to just 0 rather than scanning the scene
Fixup modulate RGB to force fragment alpha to 1.0
Add some debugging fprintfs
file annotate diff log raw
1.1 --- a/src/pvr2/render.c Sun Jan 28 11:36:00 2007 +0000
1.2 +++ b/src/pvr2/render.c Mon Jan 29 11:24:44 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: render.c,v 1.22 2007-01-28 11:36:00 nkeynes Exp $
1.6 + * $Id: render.c,v 1.23 2007-01-29 11:24:44 nkeynes Exp $
1.7 *
1.8 * PVR2 Renderer support. This part is primarily
1.9 *
1.10 @@ -230,12 +230,11 @@
1.11
1.12 float bgplanez = 1/MMIO_READF( PVR2, RENDER_FARCLIP );
1.13 uint32_t render_mode = MMIO_READ( PVR2, RENDER_MODE );
1.14 - int width = 640; /* FIXME - get this from the tile buffer */
1.15 - int height = 480;
1.16 + int width, height;
1.17 + pvr2_render_getsize( &width, &height );
1.18 int colour_format = pvr2_render_colour_format[render_mode&0x07];
1.19 - float maxz = pvr2_render_find_maximum_z();
1.20 pvr2_render_prepare_context( render_addr, width, height, colour_format,
1.21 - bgplanez, maxz, render_to_tex );
1.22 + bgplanez, 0, render_to_tex );
1.23
1.24 int clip_x = MMIO_READ( PVR2, RENDER_HCLIP ) & 0x03FF;
1.25 int clip_y = MMIO_READ( PVR2, RENDER_VCLIP ) & 0x03FF;
.