diff options
author | Jonathan Marek <[email protected]> | 2020-02-27 10:22:02 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-28 14:04:20 +0000 |
commit | 6420406f197cc4f1170c340e839701aeb253fdf0 (patch) | |
tree | ab7bf9afb971b43e4e5c21974f193189de96fcb7 /src/freedreno | |
parent | 8f9e1c6047e2542186ac87569934e306301c2996 (diff) |
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 <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3979>
Diffstat (limited to 'src/freedreno')
-rw-r--r-- | src/freedreno/vulkan/tu_cmd_buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/freedreno/vulkan/tu_cmd_buffer.c b/src/freedreno/vulkan/tu_cmd_buffer.c index 5de52bb4721..d24e869daf2 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( |