From f3980a8ef7843bb95fca2f7831fcb58fa6c97ee1 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Fri, 25 Oct 2019 13:57:49 -0700 Subject: [PATCH] freedreno/a4xx: fix SP_FS_MRT_REG.HALF_PRECISION Set flag based on actual output reg type. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/a4xx/fd4_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_program.c b/src/gallium/drivers/freedreno/a4xx/fd4_program.c index b982d5d06e7..002de9f1923 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_program.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_program.c @@ -411,7 +411,7 @@ fd4_program_emit(struct fd_ringbuffer *ring, struct fd4_emit *emit, OUT_RING(ring, A4XX_SP_FS_MRT_REG_REGID(color_regid[i]) | A4XX_SP_FS_MRT_REG_MRTFORMAT(format) | COND(srgb, A4XX_SP_FS_MRT_REG_COLOR_SRGB) | - COND(emit->key.half_precision, + COND(color_regid[i] & HALF_REG_ID, A4XX_SP_FS_MRT_REG_HALF_PRECISION)); } -- 2.30.2