diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-04-01 11:35:53 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-04-01 11:35:53 -0600 |
commit | e7b23d36df1ab3ac5b54ef8e4e56c4fd46db8257 (patch) | |
tree | 09ad402fb532af6f6af945db3b26294704074459 /src/gallium/drivers/cell/spu/spu_texture.c | |
parent | c14da8f52407529f20f819e31a01356535de0117 (diff) |
cell: checkpoint: more multi-texture work
Diffstat (limited to 'src/gallium/drivers/cell/spu/spu_texture.c')
-rw-r--r-- | src/gallium/drivers/cell/spu/spu_texture.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/cell/spu/spu_texture.c b/src/gallium/drivers/cell/spu/spu_texture.c index 4612501eb3..58a426cc40 100644 --- a/src/gallium/drivers/cell/spu/spu_texture.c +++ b/src/gallium/drivers/cell/spu/spu_texture.c @@ -104,9 +104,8 @@ get_four_texels(vec_uint4 x, vec_uint4 y, vec_uint4 *texels) * XXX this is extremely primitive for now. */ vector float -sample_texture_nearest(vector float texcoord) +sample_texture_nearest(uint unit, vector float texcoord) { - const uint unit = 0; vector float tc = spu_mul(texcoord, spu.texture[unit].tex_size); vector unsigned int itc = spu_convtu(tc, 0); /* convert to int */ itc = spu_and(itc, spu.texture[unit].tex_size_mask); /* mask (GL_REPEAT) */ @@ -116,9 +115,8 @@ sample_texture_nearest(vector float texcoord) vector float -sample_texture_bilinear(vector float texcoord) +sample_texture_bilinear(uint unit, vector float texcoord) { - const uint unit = 0; static const vec_uint4 offset_x = {0, 0, 1, 1}; static const vec_uint4 offset_y = {0, 1, 0, 1}; |