i965: Also emit HIER_DEPTH and STENCIL packets when disabling depth.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 13 Aug 2013 20:54:37 +0000 (13:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 28 Oct 2013 18:29:33 +0000 (11:29 -0700)
commit29e5d5db5149f721e6c15a9aee6f8135a98ba5c8
tree98e34113613ba220905af6b11eb941d914c370c0
parent65b1f642ac2dff58498622bf6e0b7be8d9d3e20d
i965: Also emit HIER_DEPTH and STENCIL packets when disabling depth.

From the documentation:
"[DevIVB] 3DSTATE_DEPTH_BUFFER must always be programmed along with the
 other Depth/Stencil state commands(i.e. 3DSTATE_CLEAR_PARAMS,
 3DSTATE_STENCIL_BUFFER, or 3DSTATE_HIER_DEPTH_BUFFER)."

We normally do this, but BLORP was failing to do so in the case where it
disables depth.

Not observed to fix anything yet.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Xinkai Chen <yeled.nova@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Cc: "9.2" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/gen7_blorp.cpp