summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom_sampler.c
diff options
context:
space:
mode:
authorBrian <brian@poulsbo.localnet.net>2008-03-12 14:20:54 -0600
committerBrian <brian@poulsbo.localnet.net>2008-03-12 14:20:54 -0600
commit0dd79011b9c407191e40c2697c68946f35bc557a (patch)
tree2bf464781f5b8dbe2c6e852857ebfb0e1b4dabe0 /src/mesa/state_tracker/st_atom_sampler.c
parent51809bc1bc719c8d988cd6e06b6c96af43d12026 (diff)
downloadexternal_mesa3d-0dd79011b9c407191e40c2697c68946f35bc557a.zip
external_mesa3d-0dd79011b9c407191e40c2697c68946f35bc557a.tar.gz
external_mesa3d-0dd79011b9c407191e40c2697c68946f35bc557a.tar.bz2
gallium: pass NULL to cso_single_sampler() when the sampler isn't used.
This fixes an AA line crash/regression. The aaline stage needs to find a free/unused sampler to do its thing.
Diffstat (limited to 'src/mesa/state_tracker/st_atom_sampler.c')
-rw-r--r--src/mesa/state_tracker/st_atom_sampler.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_atom_sampler.c b/src/mesa/state_tracker/st_atom_sampler.c
index d376480..5787a74 100644
--- a/src/mesa/state_tracker/st_atom_sampler.c
+++ b/src/mesa/state_tracker/st_atom_sampler.c
@@ -176,9 +176,12 @@ update_samplers(struct st_context *st)
st->state.num_samplers = su + 1;
/* XXX more sampler state here */
- }
- cso_single_sampler(st->cso_context, su, sampler);
+ cso_single_sampler(st->cso_context, su, sampler);
+ }
+ else {
+ cso_single_sampler(st->cso_context, su, NULL);
+ }
}
cso_single_sampler_done(st->cso_context);