i915: Update and translate the fragment program along with state updates.
authorEric Anholt <eric@anholt.net>
Thu, 30 Jul 2009 06:37:04 +0000 (23:37 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 1 Oct 2009 21:31:03 +0000 (14:31 -0700)
commit61b512c47c9888f3ff117faf3aceccfb52d59c3a
treed9e56d7c4e02e868864b4178da10bc719deaca35
parentd6fbf87575a59e24c5d47b8b6b8700ee4583709b
i915: Update and translate the fragment program along with state updates.

Previously, we were doing it in the midst of the pipeline run, which gave
an opportunity to enable/disable fallbacks, which is certainly the wrong
time to be doing so.  This manifested itself in a NULL dereference for PutRow
after transitioning out of a fallback during a run_pipeline in glean glsl1.
src/mesa/drivers/dri/i915/i915_context.c
src/mesa/drivers/dri/i915/i915_fragprog.c
src/mesa/drivers/dri/i915/i915_program.c
src/mesa/drivers/dri/i915/i915_program.h