# HG changeset patch # User nkeynes # Date 1191919581 0 # Node ID 0b761ef2dbfda44dd14df4c5eb4c0c0afca127f5 # Parent 248dd77a9e44399e2c0704a6dd23e7e86b0ddae3 Fix compilation warnings Add #defines for sync status --- a/src/pvr2/pvr2.h Tue Oct 09 08:12:29 2007 +0000 +++ b/src/pvr2/pvr2.h Tue Oct 09 08:46:21 2007 +0000 @@ -1,5 +1,5 @@ /** - * $Id: pvr2.h,v 1.36 2007-10-08 11:52:13 nkeynes Exp $ + * $Id: pvr2.h,v 1.37 2007-10-09 08:46:21 nkeynes Exp $ * * PVR2 (video chip) functions and macros. * @@ -39,6 +39,13 @@ #define DISPCFG_BS 0x000000C0 /* Broadcast standard */ #define DISPCFG_VO 0x00000100 /* Video output enable */ +#define DISPSYNC_LINE_MASK 0x000003FF +#define DISPSYNC_EVEN_FIELD 0x00000000 +#define DISPSYNC_ODD_FIELD 0x00000400 +#define DISPSYNC_ACTIVE 0x00000800 +#define DISPSYNC_HSYNC 0x00001000 +#define DISPSYNC_VSYNC 0x00002000 + #define BS_NTSC 0x00000000 #define BS_PAL 0x00000040 #define BS_PALM 0x00000080 /* ? */ @@ -305,6 +312,16 @@ void texcache_shutdown( void ); /** + * Flush (ie free) all textures. + */ +void texcache_flush( void ); + +/** + * Flush all palette-based textures (if any) + */ +void texcache_invalidate_palette(void); + +/** * Evict all textures contained in the page identified by a texture address. */ void texcache_invalidate_page( uint32_t texture_addr ); @@ -324,6 +341,9 @@ void pvr2_check_palette_changed(void); +int pvr2_render_save_scene( const gchar *filename ); + + /************************* Rendering support macros **************************/ #define POLY1_DEPTH_MODE(poly1) ( pvr2_poly_depthmode[(poly1)>>29] ) #define POLY1_DEPTH_ENABLE(poly1) (((poly1)&0x04000000) == 0 )