From 3158b8ba0ab6162180dc18de4ba6d2ac5aa04a84 Mon Sep 17 00:00:00 2001 From: "Kristian H. Kristensen" Date: Fri, 3 Jul 2020 15:18:32 -0700 Subject: [PATCH] freedreno/a6xx: Program RB_UNKNOWN_8C01 in setup helper Part-of: --- src/gallium/drivers/freedreno/a6xx/fd6_blitter.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c b/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c index 4aa6b946d42..c4917c33505 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c @@ -282,6 +282,9 @@ emit_blit_setup(struct fd_ringbuffer *ring, A6XX_SP_2D_SRC_FORMAT_NORM) | COND(is_srgb, A6XX_SP_2D_SRC_FORMAT_SRGB) | A6XX_SP_2D_SRC_FORMAT_MASK(0xf)); + + OUT_PKT4(ring, REG_A6XX_RB_UNKNOWN_8C01, 1); + OUT_RING(ring, 0); } /* buffers need to be handled specially since x/width can exceed the bounds @@ -406,9 +409,6 @@ emit_blit_buffer(struct fd_context *ctx, struct fd_ringbuffer *ring, OUT_RING(ring, 0x3f); OUT_WFI5(ring); - OUT_PKT4(ring, REG_A6XX_RB_UNKNOWN_8C01, 1); - OUT_RING(ring, 0); - OUT_PKT4(ring, REG_A6XX_RB_UNKNOWN_8E04, 1); OUT_RING(ring, fd6_context(ctx)->magic.RB_UNKNOWN_8E04_blit); @@ -630,9 +630,6 @@ emit_blit_or_clear_texture(struct fd_context *ctx, struct fd_ringbuffer *ring, OUT_RING(ring, 0x3f); OUT_WFI5(ring); - OUT_PKT4(ring, REG_A6XX_RB_UNKNOWN_8C01, 1); - OUT_RING(ring, 0); - OUT_PKT4(ring, REG_A6XX_RB_UNKNOWN_8E04, 1); OUT_RING(ring, fd6_context(ctx)->magic.RB_UNKNOWN_8E04_blit); -- 2.30.2