summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-08-21 11:43:48 -0600
committerBrian Paul <[email protected]>2009-08-21 11:43:48 -0600
commitcf102b031e7ef33c8e3ffce2f9dcd064f44e8190 (patch)
tree9f5321501bf39b45d7505df99916fa85f6d3da6e /src
parent41483627f0fd3dc9df2cc55dfd5f3e5987fcfd22 (diff)
softpipe: remove redundant comparison, make test easier to understand
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/softpipe/sp_tex_sample.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c
index 9502b60479d..51118ae38bd 100644
--- a/src/gallium/drivers/softpipe/sp_tex_sample.c
+++ b/src/gallium/drivers/softpipe/sp_tex_sample.c
@@ -1614,10 +1614,9 @@ sp_create_sampler_varient( const struct pipe_sampler_state *sampler,
case PIPE_TEX_MIPFILTER_LINEAR:
if (key.bits.is_pot &&
sampler->min_img_filter == sampler->mag_img_filter &&
- sampler->wrap_s == sampler->wrap_t &&
sampler->normalized_coords &&
- sampler->wrap_s == sampler->wrap_t &&
sampler->wrap_s == PIPE_TEX_WRAP_REPEAT &&
+ sampler->wrap_t == PIPE_TEX_WRAP_REPEAT &&
sampler->min_img_filter == PIPE_TEX_FILTER_LINEAR)
{
samp->mip_filter = mip_filter_linear_2d_linear_repeat_POT;