diff options
author | Zou Nan hai <[email protected]> | 2008-03-26 14:40:30 +0800 |
---|---|---|
committer | Zou Nan hai <[email protected]> | 2008-03-26 14:40:30 +0800 |
commit | d24a5254c2d4062017cad173eca15398cf4115bf (patch) | |
tree | 46052c0d999f5bb73d0b304b455ff01092f93187 | |
parent | d3ebaa41f548d0123106e35b5fab0f62ea6c286c (diff) |
[i915] don't use 4x4 filter for 1D shadowmap
-rw-r--r-- | src/mesa/drivers/dri/i915/i915_texstate.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_texstate.c b/src/mesa/drivers/dri/i915/i915_texstate.c index 133514d57dc..e489d25ae82 100644 --- a/src/mesa/drivers/dri/i915/i915_texstate.c +++ b/src/mesa/drivers/dri/i915/i915_texstate.c @@ -249,8 +249,13 @@ i915_update_tex_unit(struct intel_context *intel, GLuint unit, GLuint ss3) (SS2_SHADOW_ENABLE | intel_translate_shadow_compare_func(tObj->CompareFunc)); - minFilt = FILTER_4X4_FLAT; - magFilt = FILTER_4X4_FLAT; + if (tObj->Target == GL_TEXTURE_1D) { + minFilt = FILTER_NEAREST; + magFilt = FILTER_NEAREST; + } else { + minFilt = FILTER_4X4_FLAT; + magFilt = FILTER_4X4_FLAT; + } } state[I915_TEXREG_SS2] |= ((minFilt << SS2_MIN_FILTER_SHIFT) | |