mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
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 <jonathan@marek.ca> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3979> (cherry picked from commit6420406f19)
This commit is contained in:
parent
a14b7adabd
commit
8334c60cba
2 changed files with 3 additions and 3 deletions
|
|
@ -193,7 +193,7 @@
|
|||
"description": "turnip: fix srgb MRT",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "59f29fc845ce6425959e8db9b707363b1e273445"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -459,10 +459,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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue