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.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.8 * Texture cache. Responsible for maintaining a working set of OpenGL
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.19 + pvr2_vram64_read( tmp, texture_addr, inputlength );
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);