pan/lib: do not try to use stencil-aspect of color attachment

We can't use the stencil-aspect of a color-attachment. That's going to
fail, so let's use the color-aspect instead. We already have it around
anyway.

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 14:56:12 +01:00 committed by Marge Bot
parent 15e0ac0731
commit 322aaa88c6

View file

@ -885,7 +885,7 @@ GENX(pan_emit_afrc_color_attachment)(const struct pan_attachment_info *att,
pan_afrc_get_format_info(image->props.format);
uint64_t base, row_stride, surf_stride;
get_tiled_or_linear_att_mem_props(pan_image_view_get_s_plane(iview),
get_tiled_or_linear_att_mem_props(pref,
iview->first_level, att->layer_or_z_slice,
&base, &row_stride, &surf_stride);