[Mesa-dev] [PATCH 09/11] freedreno: a2xx: set PA_SC_VIZ_QUERY register
Jonathan Marek
jonathan at marek.ca
Mon Oct 8 04:06:09 UTC 2018
on a20x the GPU will hang if this register is zero
Signed-off-by: Jonathan Marek <jonathan at marek.ca>
---
src/gallium/drivers/freedreno/a2xx/fd2_emit.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/gallium/drivers/freedreno/a2xx/fd2_emit.c b/src/gallium/drivers/freedreno/a2xx/fd2_emit.c
index 90da6a2192..10a8ad586c 100644
--- a/src/gallium/drivers/freedreno/a2xx/fd2_emit.c
+++ b/src/gallium/drivers/freedreno/a2xx/fd2_emit.c
@@ -359,6 +359,10 @@ fd2_emit_restore(struct fd_context *ctx, struct fd_ringbuffer *ring)
A2XX_RB_BC_CONTROL_MEM_EXPORT_TIMEOUT_SELECT(3));
}
+ OUT_PKT3(ring, CP_SET_CONSTANT, 2);
+ OUT_RING(ring, CP_REG(REG_A2XX_PA_SC_VIZ_QUERY));
+ OUT_RING(ring, A2XX_PA_SC_VIZ_QUERY_VIZ_QUERY_ID(16));
+
OUT_PKT0(ring, REG_A2XX_TP0_CHICKEN, 1);
OUT_RING(ring, 0x00000002);
--
2.17.1
More information about the mesa-dev
mailing list