diff options
author | José Fonseca <[email protected]> | 2010-03-13 19:11:08 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-03-13 19:11:33 +0000 |
commit | 392d37609d85f42bf5fbcecbc285857e8ed265e5 (patch) | |
tree | 311f27db25215c7ab284cb4a22bcd9ed012630a7 /src | |
parent | 3996e493693d5aa048fed1c2fd6db4027cb47df4 (diff) |
llvmpipe: Switch to PIPE_TEX_MIPFILTER_NONE when texture has no mipmaps.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_sample.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.c b/src/gallium/auxiliary/gallivm/lp_bld_sample.c index 543fd5fea3f..2f74aa5e00a 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_sample.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_sample.c @@ -84,8 +84,12 @@ lp_sampler_static_state(struct lp_sampler_static_state *state, state->wrap_t = sampler->wrap_t; state->wrap_r = sampler->wrap_r; state->min_img_filter = sampler->min_img_filter; - state->min_mip_filter = sampler->min_mip_filter; state->mag_img_filter = sampler->mag_img_filter; + if (texture->last_level) { + state->min_mip_filter = sampler->min_mip_filter; + } else { + state->min_mip_filter = PIPE_TEX_MIPFILTER_NONE; + } state->compare_mode = sampler->compare_mode; if (sampler->compare_mode != PIPE_TEX_COMPARE_NONE) { |