Search
lxdream.org :: lxdream/src/pvr2/tacore.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/tacore.c
changeset 674:377d987db8f2
prev669:ab344e42bca9
next677:3ee62740ff8f
author nkeynes
date Mon May 26 10:42:18 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Fix save states for x86-64, and ensure compatibility between 32-bit and 64-bit versions
file annotate diff log raw
1.1 --- a/src/pvr2/tacore.c Mon May 12 10:00:13 2008 +0000
1.2 +++ b/src/pvr2/tacore.c Mon May 26 10:42:18 2008 +0000
1.3 @@ -127,39 +127,39 @@
1.4 };
1.5
1.6 struct tile_bounds {
1.7 - int x1, y1, x2, y2;
1.8 + int32_t x1, y1, x2, y2;
1.9 };
1.10
1.11 struct pvr2_ta_status {
1.12 - int state;
1.13 - int width, height; /* Tile resolution, ie 20x15 */
1.14 - int tilelist_dir; /* Growth direction of the tilelist, 0 = up, 1 = down */
1.15 + int32_t state;
1.16 + int32_t width, height; /* Tile resolution, ie 20x15 */
1.17 + int32_t tilelist_dir; /* Growth direction of the tilelist, 0 = up, 1 = down */
1.18 uint32_t tilelist_size; /* Size of the tilelist segments */
1.19 uint32_t tilelist_start; /* Initial address of the tilelist */
1.20 - int polybuf_start; /* Initial bank address of the polygon buffer (ie &0x00F00000) */
1.21 - int current_vertex_type;
1.22 - gboolean accept_vertexes;
1.23 - int vertex_count; /* index of last start-vertex seen, or -1 if no vertexes
1.24 + uint32_t polybuf_start; /* Initial bank address of the polygon buffer (ie &0x00F00000) */
1.25 + int32_t current_vertex_type;
1.26 + uint32_t accept_vertexes; /* 0 = NO, 1 = YES */
1.27 + int32_t vertex_count; /* index of last start-vertex seen, or -1 if no vertexes
1.28 * are present
1.29 */
1.30 - int max_vertex; /* Maximum number of vertexes in the current polygon (3/4/6/8) */
1.31 - int current_list_type;
1.32 + uint32_t max_vertex; /* Maximum number of vertexes in the current polygon (3/4/6/8) */
1.33 + uint32_t current_list_type;
1.34 uint32_t current_tile_matrix; /* Memory location of the first tile for the current list. */
1.35 uint32_t current_tile_size; /* Size of the tile matrix space in 32-bit words (0/8/16/32)*/
1.36 uint32_t intensity1, intensity2;
1.37 struct tile_bounds clip;
1.38 - int clip_mode;
1.39 + int32_t clip_mode;
1.40 /**
1.41 * Current working object
1.42 */
1.43 - int poly_context_size;
1.44 - int poly_vertex_size;
1.45 - int poly_parity;
1.46 + int32_t poly_context_size;
1.47 + int32_t poly_vertex_size;
1.48 + int32_t poly_parity;
1.49 uint32_t poly_context[5];
1.50 uint32_t poly_pointer;
1.51 struct tile_bounds last_triangle_bounds;
1.52 struct pvr2_ta_vertex poly_vertex[8];
1.53 - int debug_output;
1.54 + uint32_t debug_output;
1.55 };
1.56
1.57 static struct pvr2_ta_status ta_status;
.