Search
lxdream.org :: lxdream/src/pvr2/texcache.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/texcache.c
changeset 314:2a1f3b3d8708
prev313:7e4bd1629268
next315:2d8ba198d62c
author nkeynes
date Tue Jan 23 09:30:59 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Enable twiddled YUV - no idea if it will actually work though
file annotate diff log raw
1.1 --- a/src/pvr2/texcache.c Tue Jan 23 08:18:05 2007 +0000
1.2 +++ b/src/pvr2/texcache.c Tue Jan 23 09:30:59 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: texcache.c,v 1.17 2007-01-23 08:18:05 nkeynes Exp $
1.6 + * $Id: texcache.c,v 1.18 2007-01-23 09:30:59 nkeynes Exp $
1.7 *
1.8 * Texture cache. Responsible for maintaining a working set of OpenGL
1.9 * textures.
1.10 @@ -395,8 +395,11 @@
1.11 } else if( tex_format == PVR2_TEX_FORMAT_YUV422 ) {
1.12 int inputlength = ((mip_width*mip_height)<<1);
1.13 char tmp[inputlength];
1.14 - pvr2_vram64_read( tmp, texture_addr, inputlength );
1.15 - ERROR( "Twiddled YUV not supported" );
1.16 + if( PVR2_TEX_IS_TWIDDLED(mode) ) {
1.17 + pvr2_vram64_read_twiddled_16( tmp, texture_addr, mip_width, mip_height );
1.18 + } else {
1.19 + pvr2_vram64_read( tmp, texture_addr, inputlength );
1.20 + }
1.21 yuv_decode( (uint32_t *)data, (uint32_t *)tmp, mip_width, mip_height );
1.22 } else if( PVR2_TEX_IS_COMPRESSED(mode) ) {
1.23 int inputlength = ((mip_width*mip_height) >> 2);
.