Search
lxdream.org :: lxdream :: r432:0b761ef2dbfd
lxdream 0.9.1
released Jun 29
Download Now
changeset432:0b761ef2dbfd
parent431:248dd77a9e44
child433:a4f61551d79d
authornkeynes
dateTue Oct 09 08:46:21 2007 +0000 (12 years ago)
Fix compilation warnings
Add #defines for sync status
src/pvr2/pvr2.h
1.1 --- a/src/pvr2/pvr2.h Tue Oct 09 08:12:29 2007 +0000
1.2 +++ b/src/pvr2/pvr2.h Tue Oct 09 08:46:21 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2.h,v 1.36 2007-10-08 11:52:13 nkeynes Exp $
1.6 + * $Id: pvr2.h,v 1.37 2007-10-09 08:46:21 nkeynes Exp $
1.7 *
1.8 * PVR2 (video chip) functions and macros.
1.9 *
1.10 @@ -39,6 +39,13 @@
1.11 #define DISPCFG_BS 0x000000C0 /* Broadcast standard */
1.12 #define DISPCFG_VO 0x00000100 /* Video output enable */
1.13
1.14 +#define DISPSYNC_LINE_MASK 0x000003FF
1.15 +#define DISPSYNC_EVEN_FIELD 0x00000000
1.16 +#define DISPSYNC_ODD_FIELD 0x00000400
1.17 +#define DISPSYNC_ACTIVE 0x00000800
1.18 +#define DISPSYNC_HSYNC 0x00001000
1.19 +#define DISPSYNC_VSYNC 0x00002000
1.20 +
1.21 #define BS_NTSC 0x00000000
1.22 #define BS_PAL 0x00000040
1.23 #define BS_PALM 0x00000080 /* ? */
1.24 @@ -305,6 +312,16 @@
1.25 void texcache_shutdown( void );
1.26
1.27 /**
1.28 + * Flush (ie free) all textures.
1.29 + */
1.30 +void texcache_flush( void );
1.31 +
1.32 +/**
1.33 + * Flush all palette-based textures (if any)
1.34 + */
1.35 +void texcache_invalidate_palette(void);
1.36 +
1.37 +/**
1.38 * Evict all textures contained in the page identified by a texture address.
1.39 */
1.40 void texcache_invalidate_page( uint32_t texture_addr );
1.41 @@ -324,6 +341,9 @@
1.42
1.43 void pvr2_check_palette_changed(void);
1.44
1.45 +int pvr2_render_save_scene( const gchar *filename );
1.46 +
1.47 +
1.48 /************************* Rendering support macros **************************/
1.49 #define POLY1_DEPTH_MODE(poly1) ( pvr2_poly_depthmode[(poly1)>>29] )
1.50 #define POLY1_DEPTH_ENABLE(poly1) (((poly1)&0x04000000) == 0 )
.