mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
i915: fall back to software rendering when shadow comparison is
enabled for 1D texture. fix #12176
This commit is contained in:
parent
2f1b5ffcda
commit
75e4db1804
1 changed files with 4 additions and 7 deletions
|
|
@ -257,18 +257,15 @@ i915_update_tex_unit(struct intel_context *intel, GLuint unit, GLuint ss3)
|
|||
*/
|
||||
if (tObj->CompareMode == GL_COMPARE_R_TO_TEXTURE_ARB &&
|
||||
tObj->Target != GL_TEXTURE_3D) {
|
||||
if (tObj->Target == GL_TEXTURE_1D)
|
||||
return GL_FALSE;
|
||||
|
||||
state[I915_TEXREG_SS2] |=
|
||||
(SS2_SHADOW_ENABLE |
|
||||
intel_translate_shadow_compare_func(tObj->CompareFunc));
|
||||
|
||||
if (tObj->Target == GL_TEXTURE_1D) {
|
||||
minFilt = FILTER_NEAREST;
|
||||
magFilt = FILTER_NEAREST;
|
||||
} else {
|
||||
minFilt = FILTER_4X4_FLAT;
|
||||
magFilt = FILTER_4X4_FLAT;
|
||||
}
|
||||
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