diff options
author | Brian Paul <[email protected]> | 2009-08-21 12:11:44 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-08-21 12:44:04 -0600 |
commit | a29447c33d44b3427e0c40a761067c0cc6e71c39 (patch) | |
tree | d9ffe18d8d6797787aa39d444b54dc9e6af60ad7 /src/gallium/drivers/softpipe/sp_tex_sample.c | |
parent | 87ec83afd58536c31bf02c307f1d5488abc84861 (diff) |
softpipe: per-unit sampler varients
Can't share sampler varients across multiple tex units because the texture
pointer is in the sampler varient. That prevents different textures per unit.
Fixes progs/demos/multiarb, progs/glsl/samplers, etc.
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_tex_sample.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_tex_sample.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c index f3710037082..8f3dc12d0fa 100644 --- a/src/gallium/drivers/softpipe/sp_tex_sample.c +++ b/src/gallium/drivers/softpipe/sp_tex_sample.c @@ -1545,6 +1545,9 @@ static filter_func get_img_filter( const union sp_sampler_key key, } +/** + * Bind the given texture object and texture cache to the sampler varient. + */ void sp_sampler_varient_bind_texture( struct sp_sampler_varient *samp, struct softpipe_tile_cache *tex_cache, |