freedreno/a6xx: don't pre-dispatch texture fetch on accident
authorRob Clark <robdclark@chromium.org>
Thu, 6 Jun 2019 16:53:15 +0000 (09:53 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 7 Jun 2019 19:07:29 +0000 (12:07 -0700)
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/gallium/drivers/freedreno/a6xx/fd6_program.c

index 619cd86c67a3fe4574961d42a011c050413f82af..dedd7ffb2f7547ffdd429b8de0a6f7b61fc9c40d 100644 (file)
@@ -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);