From 8a02ca807de419d79dbe2555ec11104436dbbe01 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Thu, 6 Jun 2019 09:53:15 -0700 Subject: [PATCH] freedreno/a6xx: don't pre-dispatch texture fetch on accident Signed-off-by: Rob Clark Reviewed-by: Kristian H. Kristensen --- src/gallium/drivers/freedreno/a6xx/fd6_program.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_program.c b/src/gallium/drivers/freedreno/a6xx/fd6_program.c index 619cd86c67a..dedd7ffb2f7 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_program.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_program.c @@ -296,8 +296,11 @@ setup_stateobj(struct fd_ringbuffer *ring, struct fd6_program_state *state, OUT_RING(ring, 0); /* SP_GS_CONFIG */ OUT_RING(ring, 0); /* SP_GS_INSTRLEN */ + /* I believe this is related to pre-dispatch texture fetch.. we probably + * should't turn it on by accident: + */ OUT_PKT4(ring, REG_A6XX_SP_UNKNOWN_A99E, 1); - OUT_RING(ring, 0x7fc0); + OUT_RING(ring, 0x0); OUT_PKT4(ring, REG_A6XX_SP_UNKNOWN_A9A8, 1); OUT_RING(ring, 0); -- 2.30.2