i965: Add Gen7 depth stall flushes before disabling depth in BLORP.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 13 Aug 2013 18:37:32 +0000 (11:37 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 16 Aug 2013 22:03:55 +0000 (15:03 -0700)
We emit these before configuring depth in the normal path, or actually
using the depth buffer in BLORP - we just failed to emit them when
disabling depth altogether.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/gen7_blorp.cpp

index 518d7f5b52624e007a3abf8a2f2622cade6677e7..44e75788db4f317f26517966f5920c0a88b3810e 100644 (file)
@@ -756,6 +756,8 @@ static void
 gen7_blorp_emit_depth_disable(struct brw_context *brw,
                               const brw_blorp_params *params)
 {
+   intel_emit_depth_stall_flushes(brw);
+
    BEGIN_BATCH(7);
    OUT_BATCH(GEN7_3DSTATE_DEPTH_BUFFER << 16 | (7 - 2));
    OUT_BATCH(BRW_DEPTHFORMAT_D32_FLOAT << 18 | (BRW_SURFACE_NULL << 29));