vulkan/wsi_common_display: Return SURFACE_LOST for fatal DRM errors
authorKeith Packard <keithp@keithp.com>
Tue, 26 Jun 2018 23:01:45 +0000 (16:01 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 27 Jun 2018 17:02:18 +0000 (10:02 -0700)
commit60e6b6fa9651dcf94cf3f1405048f9ddbbd5dd48
tree2e333883deb8f2985a2236fd4491f9c207ddcb5a
parent6bb046cd2952c7d862becf9960bfc48e4b8db0a4
vulkan/wsi_common_display: Return SURFACE_LOST for fatal DRM errors

Instead of encouraging the client to re-create the swapchain and keep
going with an OUT_OF_DATE error, tell the client that further use of
the current surface will not succeed as the associated kernel objects
are no longer valid.

In particular, when a DRM lease is revoked, then the client needs to
get another lease and create a new surface for that.

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/vulkan/wsi/wsi_common_display.c