diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-02-04 09:54:21 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-02-04 09:54:21 -0700 |
commit | 18105195a86b8294b578462febf47692832e8705 (patch) | |
tree | e77fe0348d57100b01547a46cf0c3f79a777bd12 /src/mesa/pipe/cell/spu/spu_main.c | |
parent | e967a5c746f340a76b27181b4ead1035101cece3 (diff) |
Cell: checkpoint: start to SIMD-ize texture sampling
Diffstat (limited to 'src/mesa/pipe/cell/spu/spu_main.c')
-rw-r--r-- | src/mesa/pipe/cell/spu/spu_main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/pipe/cell/spu/spu_main.c b/src/mesa/pipe/cell/spu/spu_main.c index ba4d180cc0..412661061a 100644 --- a/src/mesa/pipe/cell/spu/spu_main.c +++ b/src/mesa/pipe/cell/spu/spu_main.c @@ -263,6 +263,16 @@ cmd_state_texture(const struct cell_command_texture *texture) spu.init.id, texture->start, texture->width, texture->height); memcpy(&spu.texture, texture, sizeof(*texture)); + spu.tex_size = VEC_LITERAL(vector float, + spu.texture.width, + spu.texture.height, + 0.0, + 0.0); + spu.tex_size_mask = VEC_LITERAL(vector unsigned int, + spu.texture.width - 1, + spu.texture.height - 1, + 0, + 0); } |