vk/overlay-layer: fix regression in non-control pathway

Fixes regression introduced by prior commit. Prior commit fixed
the control pathway to starting overlay-layer but broke non-
control pathway. Now both pathways should be working.

Fixes: 06423b1792 ("defer log creation to swapchain creation")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12884
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34413>
(cherry picked from commit b895c0ec05)
This commit is contained in:
Felix DeGrood 2025-04-07 17:45:37 +00:00 committed by Eric Engestrom
parent 939859348d
commit 0a9cb4e833
2 changed files with 2 additions and 2 deletions

View file

@ -854,7 +854,7 @@
"description": "vk/overlay-layer: fix regression in non-control pathway",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "06423b1792b5c734108e6e11146b861a213e64f6",
"notes": null

View file

@ -2662,7 +2662,7 @@ static VkResult overlay_CreateInstance(
* capturing fps data right away.
*/
instance_data->capture_enabled =
instance_data->output_file_fd && instance_data->params.control == NULL;
instance_data->params.output_file && instance_data->params.control == NULL;
instance_data->capture_started = instance_data->capture_enabled;
for (int i = OVERLAY_PARAM_ENABLED_vertices;