28 Nov
2023
28 Nov
'23
1:14 p.m.
On Mon Nov 27 15:46:31 2023 +0000, Rémi Bernon wrote:
I think you could make this simpler and return VK_ERROR_OUT_OF_DATE_KHR in both cases. This is what the Nvidia driver on Windows does afaics. So, in the Nvidia approach, presentation will return out_of_date and when the app tries to recreate the swapchain it will get the real surface_lost error.
I guess that's fine, but it feels a shame to not return the real (and spec-compliant) error code here since we have detected it, and allow apps to handle it directly. Are there any compatibility considerations at play? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4522#note_54084