diff options
author | Brian Paul <[email protected]> | 2008-09-08 11:53:14 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-09-11 10:39:28 -0600 |
commit | 04ae4fba3c0a656cf2747fc994b99f99576d0e2b (patch) | |
tree | e2dd9e237775ab5e7282ea2b1ca0f4f1c2fec121 /src/gallium/drivers/cell/spu/spu_main.h | |
parent | cd9722dcddcb41af3196860280d23542dc673700 (diff) |
cell: minor change to Z float/int conversion code (avoid switch)
Diffstat (limited to 'src/gallium/drivers/cell/spu/spu_main.h')
-rw-r--r-- | src/gallium/drivers/cell/spu/spu_main.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/cell/spu/spu_main.h b/src/gallium/drivers/cell/spu/spu_main.h index 4879f8c9c8d..c2a53c9dcf6 100644 --- a/src/gallium/drivers/cell/spu/spu_main.h +++ b/src/gallium/drivers/cell/spu/spu_main.h @@ -41,6 +41,10 @@ #define MAX_HEIGHT 1024 +/** + * A tile is basically a TILE_SIZE x TILE_SIZE block of 4-byte pixels. + * The data may be addressed through several different types. + */ typedef union { ushort us[TILE_SIZE][TILE_SIZE]; uint ui[TILE_SIZE][TILE_SIZE]; @@ -99,6 +103,7 @@ struct spu_framebuffer { uint depth_clear_value; uint zsize; /**< 0, 2 or 4 bytes per Z */ + float zscale; /**< 65535.0, 2^24-1 or 2^32-1 */ } ALIGN16_ATTRIB; |