mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
[i915] don't use 4x4 filter for 1D shadowmap
This commit is contained in:
parent
d3ebaa41f5
commit
d24a5254c2
1 changed files with 7 additions and 2 deletions
|
|
@ -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) |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue