freedreno/a6xx: Use A6XX_SP_2D_SRC_FORMAT_MASK macro
authorKristian H. Kristensen <hoegsberg@google.com>
Thu, 21 Nov 2019 19:40:20 +0000 (11:40 -0800)
committerKristian H. Kristensen <hoegsberg@google.com>
Thu, 19 Dec 2019 17:56:05 +0000 (09:56 -0800)
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848>

src/gallium/drivers/freedreno/a6xx/fd6_blitter.c

index 122a63323b4aaec410dad43afb5076f96ecffe8b..eb67f02f70364bcdaefedb8bb08316360ccbe31e 100644 (file)
@@ -588,7 +588,7 @@ emit_blit_or_clear_texture(struct fd_context *ctx, struct fd_ringbuffer *ring,
 // TODO sometimes blob uses UINT+NORM but dEQP seems unhappy about that
 //                                             A6XX_SP_2D_SRC_FORMAT_UINT |
                                                A6XX_SP_2D_SRC_FORMAT_NORM) |
-                               0xf000);
+                               A6XX_SP_2D_SRC_FORMAT_MASK(0xf));
 
                OUT_PKT4(ring, REG_A6XX_RB_UNKNOWN_8E04, 1);
                OUT_RING(ring, fd6_context(ctx)->magic.RB_UNKNOWN_8E04_blit);