From: Jonathan Marek Date: Thu, 27 Feb 2020 15:22:02 +0000 (-0500) Subject: turnip: fix srgb MRT X-Git-Tag: upstream/20.1.8~3039 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6420406f197cc4f1170c340e839701aeb253fdf0;p=platform%2Fupstream%2Fmesa.git turnip: fix srgb MRT Register packing macros makes this only set the first bit. Set to whole dword to fix srgb for color attachments >0. Fixes: 59f29fc8 ("turnip: Convert the rest of tu_cmd_buffer.c over to the new pack macros.") Signed-off-by: Jonathan Marek Reviewed-by: Eric Anholt Part-of: --- diff --git a/src/freedreno/vulkan/tu_cmd_buffer.c b/src/freedreno/vulkan/tu_cmd_buffer.c index 5de52bb..d24e869 100644 --- a/src/freedreno/vulkan/tu_cmd_buffer.c +++ b/src/freedreno/vulkan/tu_cmd_buffer.c @@ -522,10 +522,10 @@ tu6_emit_mrt(struct tu_cmd_buffer *cmd, } tu_cs_emit_regs(cs, - A6XX_RB_SRGB_CNTL(srgb_cntl)); + A6XX_RB_SRGB_CNTL(.dword = srgb_cntl)); tu_cs_emit_regs(cs, - A6XX_SP_SRGB_CNTL(srgb_cntl)); + A6XX_SP_SRGB_CNTL(.dword = srgb_cntl)); tu_cs_emit_regs(cs, A6XX_RB_RENDER_COMPONENTS(