diff --git a/.pick_status.json b/.pick_status.json index 76493ec6a51..57d4fa5f295 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -508,7 +508,7 @@ "description": "lavapipe: handle view mask layer count properly for begin rendering.", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "8a6160a35428264fa3b4722d8c72b9c8aa4b8256" }, diff --git a/src/gallium/frontends/lavapipe/lvp_execute.c b/src/gallium/frontends/lavapipe/lvp_execute.c index 5dda2b74814..c6cff2893bb 100644 --- a/src/gallium/frontends/lavapipe/lvp_execute.c +++ b/src/gallium/frontends/lavapipe/lvp_execute.c @@ -1976,7 +1976,7 @@ static void handle_begin_rendering(struct vk_cmd_queue_entry *cmd, info->renderArea.extent.width; state->framebuffer.height = info->renderArea.offset.y + info->renderArea.extent.height; - state->framebuffer.layers = info->layerCount; + state->framebuffer.layers = info->viewMask ? util_last_bit(info->viewMask) : info->layerCount; state->framebuffer.nr_cbufs = info->colorAttachmentCount; state->color_att_count = info->colorAttachmentCount;