Mesa (master): i965: Make BLORP disable the NP Z PMA stall fix.
Kenneth Graunke
kwg at kemper.freedesktop.org
Mon Jan 16 18:25:30 UTC 2017
Module: Mesa
Branch: master
Commit: 7a2b65a1d749fd6dcc31d47205445dabace0d265
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7a2b65a1d749fd6dcc31d47205445dabace0d265
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Sat Jan 14 16:23:10 2017 -0800
i965: Make BLORP disable the NP Z PMA stall fix.
This may fix GPU hangs on Gen8. I don't know if it does though.
Cc: mesa-stable at lists.freedesktop.org
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
src/mesa/drivers/dri/i965/genX_blorp_exec.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/genX_blorp_exec.c b/src/mesa/drivers/dri/i965/genX_blorp_exec.c
index 40a2499..bb1dfa9 100644
--- a/src/mesa/drivers/dri/i965/genX_blorp_exec.c
+++ b/src/mesa/drivers/dri/i965/genX_blorp_exec.c
@@ -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;
More information about the mesa-commit
mailing list