Mesa (master): freedreno/computerator: Set SP_MODE_CONTROL to the same value as vulkan/GL

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Aug 5 05:03:29 UTC 2020


Module: Mesa
Branch: master
Commit: 1938e2596f5110c81920a1ad5e5933ef3a007a99
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1938e2596f5110c81920a1ad5e5933ef3a007a99

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Jul  7 19:14:34 2020 -0700

freedreno/computerator: Set SP_MODE_CONTROL to the same value as vulkan/GL

This gets us consistent hcN access with our drivers, for experimenting.
We don't know what the other bit does yet, but let's not have to debug
that later.

Reviewed-by: Rob Clark <robdclark at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6179>

---

 src/freedreno/computerator/a6xx.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/freedreno/computerator/a6xx.c b/src/freedreno/computerator/a6xx.c
index 4d8dce2b6aa..4cd8e5784f6 100644
--- a/src/freedreno/computerator/a6xx.c
+++ b/src/freedreno/computerator/a6xx.c
@@ -117,6 +117,9 @@ cs_program_emit(struct fd_ringbuffer *ring, struct kernel *kernel)
 	const struct ir3_info *i = &v->info;
 	enum a3xx_threadsize thrsz = FOUR_QUADS;
 
+	OUT_PKT4(ring, REG_A6XX_SP_MODE_CONTROL, 1);
+	OUT_RING(ring, A6XX_SP_MODE_CONTROL_CONSTANT_DEMOTION_ENABLE | 4);
+
 	OUT_PKT4(ring, REG_A6XX_HLSQ_INVALIDATE_CMD, 1);
 	OUT_RING(ring, A6XX_HLSQ_INVALIDATE_CMD_VS_STATE |
                    A6XX_HLSQ_INVALIDATE_CMD_HS_STATE |



More information about the mesa-commit mailing list