diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-10-10 16:36:40 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-10-10 16:40:03 -0600 |
commit | 01e312a73b68dc5ddffca0d1b1472fc5dcb6f59e (patch) | |
tree | d6047a94b00deb998afbdc4488e9bfd3797df8cb /src/gallium/drivers/cell/spu | |
parent | 33ff407874d6fed998b1f01dab68a2b4f1df988a (diff) |
cell: pass texture unit (sampler number) to txp() function
The glsl/multitex demo runs now.
Diffstat (limited to 'src/gallium/drivers/cell/spu')
-rw-r--r-- | src/gallium/drivers/cell/spu/spu_funcs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/cell/spu/spu_funcs.c b/src/gallium/drivers/cell/spu/spu_funcs.c index c7bcb3de9d..7dd7fcd253 100644 --- a/src/gallium/drivers/cell/spu/spu_funcs.c +++ b/src/gallium/drivers/cell/spu/spu_funcs.c @@ -101,9 +101,10 @@ spu_log2(vector float x) } static struct vec_4x4 -spu_txp(vector float s, vector float t, vector float r, vector float q) +spu_txp(vector float s, vector float t, vector float r, vector float q, + unsigned unit) { - const uint unit = 0; + //const uint unit = 0; struct vec_4x4 colors; vector float coords[4]; |