Skip to content

linux: Implement GPU device loss recovery for wgpu - #49154

Closed
Vanuan wants to merge 2 commits into
zed-industries:mainfrom
Vanuan:device_loss_recovery
Closed

linux: Implement GPU device loss recovery for wgpu#49154
Vanuan wants to merge 2 commits into
zed-industries:mainfrom
Vanuan:device_loss_recovery

Conversation

@Vanuan

@Vanuan Vanuan commented Feb 14, 2026

Copy link
Copy Markdown
Contributor

This is reimplementation of #43070 for wgpu

  • Monitor wgpu::Device::lost() in a background thread for proactive detection.
  • Handle surface errors in WgpuRenderer::draw to trigger recovery.
  • Add recover_gpu orchestration in X11 client.
  • Update WgpuAtlas to support context replacement.

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Feb 14, 2026
@zed-community-bot zed-community-bot Bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Feb 14, 2026
@Vanuan

Vanuan commented Feb 14, 2026

Copy link
Copy Markdown
Contributor Author

@larstalian Feel free to re-purpose this draft, this probably doesn't even compile.

- Monitor wgpu::Device::lost() in a background thread for proactive detection.
- Handle surface errors in WgpuRenderer::draw to trigger recovery.
- Add recover_gpu orchestration in X11 client.
- Update WgpuAtlas to support context replacement.
@Vanuan
Vanuan force-pushed the device_loss_recovery branch from 0efcc23 to f7e95c2 Compare February 20, 2026 12:03
@Vanuan

Vanuan commented Feb 20, 2026

Copy link
Copy Markdown
Contributor Author

Rebased after #49277

@reflectronic

Copy link
Copy Markdown
Member

I believe #50898 supersedes this PR, so I'll close this one out. Thank you for the contribution and sorry for the lack of responsiveness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants