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

Fix x11 hang when resizing on vulkan #4184

Merged
merged 2 commits into from
Oct 3, 2023

Conversation

Azorlogh
Copy link
Contributor

Checklist

  • Run cargo clippy.
  • Run cargo clippy --target wasm32-unknown-unknown if applicable.
  • Add change to CHANGELOG.md. See simple instructions inside file.

Connections
Fixes #4180

Description
From @cwfitzgerald : The problem is that we actually don't have access to wait until presentation is finished. I suspect what is happening is that without the device.wait_idle() call whatever presentation things are happening are still in progress and calling device.wait_idle() is the only way to actually do that

Testing
Reproduced the steps in #4180, and everything resizes smoothly again

@Azorlogh Azorlogh requested a review from a team as a code owner September 28, 2023 17:26
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Adding a comment

wgpu-hal/src/vulkan/instance.rs Show resolved Hide resolved
@cwfitzgerald cwfitzgerald enabled auto-merge (squash) October 3, 2023 20:14
@cwfitzgerald cwfitzgerald merged commit a4d733b into gfx-rs:trunk Oct 3, 2023
20 checks passed
cwfitzgerald added a commit that referenced this pull request Oct 3, 2023
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
wez added a commit to wez/wezterm that referenced this pull request Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Examples crash when resizing on x11+vulkan (known commit)
2 participants