From 1938e2596f5110c81920a1ad5e5933ef3a007a99 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 7 Jul 2020 19:14:34 -0700 Subject: [PATCH] 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 Part-of: --- 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 | -- 2.30.2