From: Eric Anholt Date: Wed, 8 Jul 2020 02:14:34 +0000 (-0700) Subject: freedreno/computerator: Set SP_MODE_CONTROL to the same value as vulkan/GL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1938e2596f5110c81920a1ad5e5933ef3a007a99;p=mesa.git 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: --- 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 |