i965: Listen to BRW_NEW_FRAGMENT_PROGRAM for 3DSTATE_PS_BLEND.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 20 May 2014 21:52:40 +0000 (14:52 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 23 May 2014 07:42:06 +0000 (00:42 -0700)
commit746921cbb474f2df85232a8f0c10cde8df3349e9
treea0153d91bdb872c8e5dea25ae56615b259c213c9
parent7d3985ca6cdd5f2f7ff68b269798d69394164dec
i965: Listen to BRW_NEW_FRAGMENT_PROGRAM for 3DSTATE_PS_BLEND.

brw_color_buffer_write_enabled depends on brw->fragment_program, which
means we have to listen to BRW_NEW_FRAGMENT_PROGRAM.

On most generations, this was only called from a function that already
subscribed.  However, on Broadwell, we failed to listen to the necessary
event in the atom that emits 3DSTATE_PS_BLEND.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/brw_wm_state.c
src/mesa/drivers/dri/i965/gen8_blend_state.c