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:
Erik Faye-Lund 2026-03-18 15:48:19 +01:00 committed by Marge Bot
parent 322aaa88c6
commit b0c32fcc66

View file

@ -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;