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>
This commit is contained in:
Felix DeGrood 2025-04-07 17:45:37 +00:00 committed by Marge Bot
parent 5c11b4a039
commit b895c0ec05

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;