From: Rob Clark Date: Fri, 25 Oct 2019 20:57:49 +0000 (-0700) Subject: freedreno/a4xx: fix SP_FS_MRT_REG.HALF_PRECISION X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3980a8ef7843bb95fca2f7831fcb58fa6c97ee1;p=mesa.git freedreno/a4xx: fix SP_FS_MRT_REG.HALF_PRECISION Set flag based on actual output reg type. Signed-off-by: Rob Clark --- 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)); }