lavapipe: unset attachment remap state if pColorAttachmentLocations==NULL

cc: mesa-stable

(cherry picked from commit abc6f351b1)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41540>
This commit is contained in:
Mike Blumenkrantz 2026-05-06 11:59:23 -04:00 committed by Eric Engestrom
parent 72b5aad56d
commit fa31e5e295
2 changed files with 2 additions and 2 deletions

View file

@ -2954,7 +2954,7 @@
"description": "lavapipe: unset attachment remap state if pColorAttachmentLocations==NULL",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -1891,7 +1891,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) {