swrast: Only avoid empty _TexEnvPrograms
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 11 Feb 2012 00:00:27 +0000 (16:00 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 15 Feb 2012 22:50:40 +0000 (14:50 -0800)
commit3e22d4e5fc32dafcb9669a9d6376323aa88e300c
treec24c3f91b1f38235cf8b6aed9fe763618de4d60c
parent8f3be339850ead96f9c6200db4e0db1f74e39d13
swrast: Only avoid empty _TexEnvPrograms

If the generated shader for _TexEnvProgram is empty, force the use of
the fixed-function code.  Otherwise, go ahead and use the shader.
This works around a mysterious issue on i915 where fixed-function
software fallbacks are not working correctly.

This isn't really the fix we want, but it works around the issue.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=45872
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=45876
src/mesa/swrast/s_fragprog.c