mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
radv: fix RB+ for SRGB formats
This should be set for linear colorspace only.
Ported from RadeonSI.
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20982>
(cherry picked from commit c8a575eb30)
This commit is contained in:
parent
9db2229a3e
commit
f7aba11a52
2 changed files with 4 additions and 2 deletions
|
|
@ -4189,7 +4189,7 @@
|
|||
"description": "radv: fix RB+ for SRGB formats",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1341,7 +1341,9 @@ radv_emit_rbplus_state(struct radv_cmd_buffer *cmd_buffer)
|
|||
spi_format == V_028714_SPI_SHADER_UINT16_ABGR ||
|
||||
spi_format == V_028714_SPI_SHADER_SINT16_ABGR) {
|
||||
sx_ps_downconvert |= V_028754_SX_RT_EXPORT_8_8_8_8 << (i * 4);
|
||||
sx_blend_opt_epsilon |= V_028758_8BIT_FORMAT << (i * 4);
|
||||
|
||||
if (G_028C70_NUMBER_TYPE(cb->cb_color_info) != V_028C70_NUMBER_SRGB)
|
||||
sx_blend_opt_epsilon |= V_028758_8BIT_FORMAT << (i * 4);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue