diff options
author | Chia-I Wu <[email protected]> | 2019-02-08 13:45:53 -0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2019-03-11 10:02:13 -0700 |
commit | 24af64baa531f9ac490bc5de433b2b2b52a3ccee (patch) | |
tree | 5748e4433953a5b67f192e8039b50b483312ea08 /src/freedreno/vulkan/tu_device.c | |
parent | ae82b5df88b9b307c2b7ce6f0f9b59332c83e362 (diff) |
turnip: preliminary support for Wayland WSI
Diffstat (limited to 'src/freedreno/vulkan/tu_device.c')
-rw-r--r-- | src/freedreno/vulkan/tu_device.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c index 3abaf0ff729..c7f4d0b26eb 100644 --- a/src/freedreno/vulkan/tu_device.c +++ b/src/freedreno/vulkan/tu_device.c @@ -293,6 +293,12 @@ tu_physical_device_init(struct tu_physical_device *device, goto fail; } + result = tu_wsi_init(device); + if (result != VK_SUCCESS) { + vk_error(instance, result); + goto fail; + } + return VK_SUCCESS; fail: @@ -305,6 +311,8 @@ fail: static void tu_physical_device_finish(struct tu_physical_device *device) { + tu_wsi_finish(device); + disk_cache_destroy(device->disk_cache); close(device->local_fd); if (device->master_fd != -1) |