zed/crates/gpui_linux/src
Lukas Wirth dbd95ea742
gpui_linux: Force scene rebuild after GPU device recovery (#52389)
After GPU device recovery clears the atlas, the next frame could
re-present a stale scene via the needs_present path (which skips scene
rebuilding). The stale scene references texture IDs that no longer exist
in the cleared atlas, causing an index-out-of-bounds panic.

Fix this by setting a force_render_after_recovery flag when device
recovery completes. The platform refresh loop reads this flag and passes
force_render: true in RequestFrameOptions, ensuring GPUI rebuilds the
scene before presenting.

Fixes ZED-5QT

Release Notes:

- N/A or Added/Fixed/Improved ...
2026-03-25 11:32:57 +01:00
..
linux gpui_linux: Force scene rebuild after GPU device recovery (#52389) 2026-03-25 11:32:57 +01:00
gpui_linux.rs
linux.rs gpui_linux: Fix headless build (#49652) 2026-02-19 20:38:40 +00:00