Search
lxdream.org :: lxdream/src/pvr2/pvr2.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.h
changeset 886:2bc6d2329cce
prev865:e10c081f4b81
next931:430048ea8b71
next953:f4a156508ad1
author nkeynes
date Mon Oct 20 05:08:31 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Fix texcache_init failing to clear texture_addr to -1
Replace direct references to PVR2 registers with a texcache_set_config() function called from glrender.c.
This also now actually does invalidation when palette mode or stride changes as well.
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.h Mon Sep 29 06:34:25 2008 +0000
1.2 +++ b/src/pvr2/pvr2.h Mon Oct 20 05:08:31 2008 +0000
1.3 @@ -330,6 +330,12 @@
1.4 void texcache_invalidate_page( uint32_t texture_addr );
1.5
1.6 /**
1.7 + * Set the global texture parameters for the scene (possibly invalidating
1.8 + * some existing textures)
1.9 + */
1.10 +void texcache_set_config( uint32_t palette_mode, uint32_t stride_width );
1.11 +
1.12 +/**
1.13 * Return a texture ID for the texture specified at the supplied address
1.14 * and given parameters (the same sequence of bytes could in theory have
1.15 * multiple interpretations). We use the texture address as the primary
.