Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenXR: Fix updating swapchain for foveation #92137

Merged

Conversation

BastiaanOlij
Copy link
Contributor

With our recent changes around updating the swapchain when resized, we broke the OpenXR foveation logic as we delayed creating swapchains until rendering. This is thus a regression introduced in 4.3 dev6 (compared to dev5).

Also with the added multithreading changes, this code was not thread safe.

This PR fixes both the regression and the safety issue.

@BastiaanOlij BastiaanOlij added this to the 4.3 milestone May 20, 2024
@BastiaanOlij BastiaanOlij requested a review from dsnopek May 20, 2024 01:20
@BastiaanOlij BastiaanOlij self-assigned this May 20, 2024
@BastiaanOlij BastiaanOlij force-pushed the fix_fb_swapchain_foveation branch from cca6d74 to 6582be0 Compare May 20, 2024 02:24
@akien-mga akien-mga added the bug label May 20, 2024
Copy link
Contributor

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm able to reproduce the issue (the OpenXR: Unable to update the swapchain [ XR_ERROR_HANDLE_INVALID ] error appearing) and using this PR fixes it!

The code changes look good to me.

@akien-mga akien-mga merged commit aa20f54 into godotengine:master May 21, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@BastiaanOlij BastiaanOlij deleted the fix_fb_swapchain_foveation branch July 2, 2024 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenXR: Unable to update the swapchain [ XR_ERROR_HANDLE_INVALID ]
3 participants