From 6420406f197cc4f1170c340e839701aeb253fdf0 Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Thu, 27 Feb 2020 10:22:02 -0500 Subject: [PATCH] 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: --- src/freedreno/vulkan/tu_cmd_buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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( -- 2.7.4