summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_tex_sample.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-08-21 12:11:44 -0600
committerBrian Paul <brianp@vmware.com>2009-08-21 12:44:04 -0600
commita29447c33d44b3427e0c40a761067c0cc6e71c39 (patch)
treed9ffe18d8d6797787aa39d444b54dc9e6af60ad7 /src/gallium/drivers/softpipe/sp_tex_sample.h
parent87ec83afd58536c31bf02c307f1d5488abc84861 (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.h')
-rw-r--r--src/gallium/drivers/softpipe/sp_tex_sample.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.h b/src/gallium/drivers/softpipe/sp_tex_sample.h
index 26f80eb88a..f6cd57ec0a 100644
--- a/src/gallium/drivers/softpipe/sp_tex_sample.h
+++ b/src/gallium/drivers/softpipe/sp_tex_sample.h
@@ -62,7 +62,8 @@ union sp_sampler_key {
unsigned target:3;
unsigned is_pot:1;
unsigned processor:2;
- unsigned pad:26;
+ unsigned unit:4;
+ unsigned pad:22;
} bits;
unsigned value;
};