i965/skl: Emit depth stall workaround for gen9 as well
authorDamien Lespiau <damien.lespiau@intel.com>
Wed, 27 Feb 2013 15:05:24 +0000 (15:05 +0000)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 9 Dec 2014 00:33:59 +0000 (16:33 -0800)
The docs say that we shouldn't need this workaround for gen8+, but just
removing it, causes gpu hangs.  We'll revisit this, but for now, just
extend the workaround to gen9.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/intel_batchbuffer.c

index cd45af6fbe2c942800b35e9344a01e34e1d6eaa3..2bd11d7a63e27207ea6985ea7650c9fdc136e1b4 100644 (file)
@@ -535,7 +535,7 @@ brw_emit_pipe_control_write(struct brw_context *brw, uint32_t flags,
 void
 intel_emit_depth_stall_flushes(struct brw_context *brw)
 {
-   assert(brw->gen >= 6 && brw->gen <= 8);
+   assert(brw->gen >= 6 && brw->gen <= 9);
 
    brw_emit_pipe_control_flush(brw, PIPE_CONTROL_DEPTH_STALL);
    brw_emit_pipe_control_flush(brw, PIPE_CONTROL_DEPTH_CACHE_FLUSH);