r600g: fix lockup when hyperz & alpha test are enabled together. v3
authorJerome Glisse <jglisse@redhat.com>
Fri, 8 Feb 2013 21:02:32 +0000 (16:02 -0500)
committerJerome Glisse <jglisse@redhat.com>
Tue, 12 Feb 2013 22:03:56 +0000 (17:03 -0500)
commit974b482acaf62ced1e8981761a8bda252bd51fe1
treea264943597a145f582934fbad15b7e776aa12553
parent496928a442cec980b534bc5da2523b3632b21b61
r600g: fix lockup when hyperz & alpha test are enabled together. v3

Seems that alpha test being enabled confuse the GPU on the order in
which it should perform the Z testing. So force the order programmed
throught db shader control.

v2: Only force z order when alpha test is enabled
v3: Update db shader when binding new dsa + spelling fix

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_state_common.c