fix(vulkan): notify modules on device loss

This commit is contained in:
LunaDL committed 2026-11-27 20:53:13 -04:00
1 parent 34ac8e2e72
commit cae6c78403
1 file changed
+4
@@ -2201,6 +2201,10 @@ static void device_lost(const char *where) {
if (g_dev_state == -2) return;
g_dev_state = -2;
g_base_black = 0;
/* Notify modules before invalidating swapchain resources so they stop using
* device-owned objects and release any device-loss-specific bookkeeping. */
vkp_framegen_device_lost();
vkp_gpu_busy_device_lost();
droiddeck_log("error", "GPU device lost (VK_ERROR_DEVICE_LOST in %s): the compositor will try one in-process recovery",
where);
set_fault("the display GPU was lost (VK_ERROR_DEVICE_LOST in %s); recovery pending", where);