revision 432:0b761ef2dbfd
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 432:0b761ef2dbfd |
parent | 431:248dd77a9e44 |
child | 433:a4f61551d79d |
author | nkeynes |
date | Tue Oct 09 08:46:21 2007 +0000 (13 years ago) |
Fix compilation warnings
Add #defines for sync status
Add #defines for sync status
![]() | src/pvr2/pvr2.h | view | annotate | diff | log |
1.1 --- a/src/pvr2/pvr2.h Tue Oct 09 08:12:29 2007 +00001.2 +++ b/src/pvr2/pvr2.h Tue Oct 09 08:46:21 2007 +00001.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.14 +#define DISPSYNC_LINE_MASK 0x000003FF1.15 +#define DISPSYNC_EVEN_FIELD 0x000000001.16 +#define DISPSYNC_ODD_FIELD 0x000004001.17 +#define DISPSYNC_ACTIVE 0x000008001.18 +#define DISPSYNC_HSYNC 0x000010001.19 +#define DISPSYNC_VSYNC 0x000020001.20 +1.21 #define BS_NTSC 0x000000001.22 #define BS_PAL 0x000000401.23 #define BS_PALM 0x00000080 /* ? */1.24 @@ -305,6 +312,16 @@1.25 void texcache_shutdown( void );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.43 void pvr2_check_palette_changed(void);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 )
.