i965: Don't use brw->fragment_program in the old brw_wm_pass2.c.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 1 Sep 2012 05:50:26 +0000 (22:50 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 5 Sep 2012 13:50:10 +0000 (06:50 -0700)
commit456c7355e06c352e1ca9e79f6ef9cdaed66ddf9c
tree415e8a53be05c7ebb65d21075ae0be79939be76f
parent446d19c12a576e36c3da34ada01b708fcbc196c5
i965: Don't use brw->fragment_program in the old brw_wm_pass2.c.

According to Eric, this shouldn't matter since we don't do precompiles
using the old backend.  In other words, brw->fragment_program (the
currently active program) should equal c->fp (the program currently
being compiled).

However, it's just not a good idea to access brw->fragment_program
directly in compiler code.  It's totally illegal in the new backend, so
let's just not do it here either.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reported-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_wm_pass2.c