summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/cell/spu/spu_main.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-02-04 13:23:07 -0700
committerBen Skeggs <skeggsb@gmail.com>2008-02-15 13:50:29 +1100
commit4080fef4732078e8861eb0d26d1f6e43aa27dd9e (patch)
tree452b76e99786a0e12b264fc8323d2d698537a827 /src/mesa/pipe/cell/spu/spu_main.c
parent1bd182889b3dbb2f4c75d18184e7c76a5bfca248 (diff)
Cell: choose bilinear vs. nearest filtering according to sampler state
Diffstat (limited to 'src/mesa/pipe/cell/spu/spu_main.c')
-rw-r--r--src/mesa/pipe/cell/spu/spu_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/pipe/cell/spu/spu_main.c b/src/mesa/pipe/cell/spu/spu_main.c
index 412661061a..48e016fc8b 100644
--- a/src/mesa/pipe/cell/spu/spu_main.c
+++ b/src/mesa/pipe/cell/spu/spu_main.c
@@ -252,6 +252,10 @@ cmd_state_sampler(const struct pipe_sampler_state *state)
spu.init.id);
memcpy(&spu.sampler[0], state, sizeof(*state));
+ if (spu.sampler[0].min_img_filter == PIPE_TEX_FILTER_LINEAR)
+ spu.sample_texture = sample_texture_bilinear;
+ else
+ spu.sample_texture = sample_texture_nearest;
}