diff options
author | Brian <[email protected]> | 2008-04-02 14:01:42 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2008-04-03 19:43:10 -0600 |
commit | 217d37940771dd02ff1aa365105eca2c7a09d623 (patch) | |
tree | 603c9c0c632c61e3409ef0925a7ec0b1aeb121a4 /src/gallium/drivers/cell/spu/spu_main.h | |
parent | 1307eebfa07e3440554eb2871e5dbd94e98ed7a8 (diff) |
cell: minor texture improvements
Precompute tiles_per_row. Use ushort multiplies in a few places. New comments.
Diffstat (limited to 'src/gallium/drivers/cell/spu/spu_main.h')
-rw-r--r-- | src/gallium/drivers/cell/spu/spu_main.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/cell/spu/spu_main.h b/src/gallium/drivers/cell/spu/spu_main.h index e9e39cbeab3..e962e1426c6 100644 --- a/src/gallium/drivers/cell/spu/spu_main.h +++ b/src/gallium/drivers/cell/spu/spu_main.h @@ -105,7 +105,8 @@ struct spu_framebuffer { struct spu_texture { void *start; - uint width, height; + ushort width, height; + ushort tiles_per_row; vector float tex_size; vector unsigned int tex_size_mask; /**< == int(size - 1) */ vector unsigned int tex_size_x_mask; /**< == int(size - 1) */ |