lavapipe: unset attachment remap state if pColorAttachmentLocations==NULL

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41407>
This commit is contained in:
Mike Blumenkrantz 2026-05-06 11:59:23 -04:00 committed by Marge Bot
parent 563259eaa9
commit abc6f351b1

View file

@ -2061,7 +2061,7 @@ static void
handle_rendering_attachment_locations(struct vk_cmd_queue_entry *cmd, struct rendering_state *state)
{
VkRenderingAttachmentLocationInfoKHR *set = cmd->u.set_rendering_attachment_locations.location_info;
state->fb_remapped = true;
state->fb_remapped = !!set->pColorAttachmentLocations;
memset(state->fb_map, PIPE_MAX_COLOR_BUFS, sizeof(state->fb_map));
assert(state->color_att_count == set->colorAttachmentCount);
if (set->pColorAttachmentLocations) {