On Wed, 25 Jan 2012 19:38:10 -0800, Chad Versace <chad.vers...@linux.intel.com> 
wrote:
> On i965, _mesa_ir_link_shader is never called. As a consequence,
> ctx->FragmentProgram->_Current exists but contains no instructions. This
> greatly confuses swrast.

I don't think this is valid.  You're replacing checks for "is there a
fragment shader" with "is there a fragment shader with Mesa IR?".  I
think the replacement should be the logic that was in
shade_texture_span(): "is there a fragment shader that isn't the fixed
function fragment shader?":

> -   const bool use_fragment_program =
> -      ctx->FragmentProgram._Current
> -      && ctx->FragmentProgram._Current != 
> ctx->FragmentProgram._TexEnvProgram;

Attachment: pgphUcrBwYLaL.pgp
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to