i965: Make BLORP disable the NP Z PMA stall fix.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 15 Jan 2017 00:23:10 +0000 (16:23 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 16 Jan 2017 18:15:06 +0000 (10:15 -0800)
This may fix GPU hangs on Gen8.  I don't know if it does though.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/genX_blorp_exec.c

index 40a2499e08f158233c43a4044e0a55a7af51a1d7..bb1dfa98063bc0e58c6acedab4631fb8592582e9 100644 (file)
@@ -206,6 +206,10 @@ retry:
 
    brw_emit_depth_stall_flushes(brw);
 
+#if GEN_GEN == 8
+   gen8_write_pma_stall_bits(brw, 0);
+#endif
+
    blorp_emit(batch, GENX(3DSTATE_DRAWING_RECTANGLE), rect) {
       rect.ClippedDrawingRectangleXMax = MAX2(params->x1, params->x0) - 1;
       rect.ClippedDrawingRectangleYMax = MAX2(params->y1, params->y0) - 1;