summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/cell/spu/spu_main.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-04-02 14:01:42 -0600
committerBrian <brian.paul@tungstengraphics.com>2008-04-03 19:43:10 -0600
commit217d37940771dd02ff1aa365105eca2c7a09d623 (patch)
tree603c9c0c632c61e3409ef0925a7ec0b1aeb121a4 /src/gallium/drivers/cell/spu/spu_main.h
parent1307eebfa07e3440554eb2871e5dbd94e98ed7a8 (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.h3
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 e9e39cbeab..e962e1426c 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) */