mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
pan/lib: set srgb-flag for afrc render-targets
Without this, sRGB rendering to AFRC is broken.
Fixes: 7a763bb0a3 ("pan/genxml: Rework the RT/ZS emission logic")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40489>
This commit is contained in:
parent
322aaa88c6
commit
b0c32fcc66
1 changed files with 1 additions and 0 deletions
|
|
@ -897,6 +897,7 @@ GENX(pan_emit_afrc_color_attachment)(const struct pan_attachment_info *att,
|
|||
cfg.afrc_format = pan_afrc_format(finfo, image->props.modifier, 0);
|
||||
get_rt_formats(iview->format, &cfg.writeback_format, &cfg.internal_format,
|
||||
&cfg.swizzle);
|
||||
cfg.srgb = util_format_is_srgb(iview->format);
|
||||
cfg.writeback_buffer.base = base;
|
||||
cfg.writeback_buffer.row_stride = row_stride;
|
||||
cfg.writeback_buffer.surface_stride = surf_stride;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue