i965: Add the new 3DSTATE_PS_BLEND state packet.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 30 Nov 2012 02:43:59 +0000 (18:43 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 1 Feb 2014 01:50:06 +0000 (17:50 -0800)
commitc96686a6cc0f53965b99a55046d1c55a867f93b3
tree80c6e3742b0c4caf845a6a8411593a44a6eb7b56
parent17768bb7b428f367e351bf9bfa480bd0d4e57442
i965: Add the new 3DSTATE_PS_BLEND state packet.

v2: Only set GEN8_PS_BLEND_HAS_WRITEABLE_RT if color buffer writes are
    enabled (caught by Eric Anholt).

v3: Set non-blending flags (writeable RT, alpha test, alpha to coverage)
    for integer formats too.  +14 Piglits.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net> [v2]
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/i965/gen8_blend_state.c [new file with mode: 0644]