anv: resolve wayland-only build
Ensure that the final X11/XCB hunk is guarded by the correct macro. Otherwise we'll require the symbol even when building without said platform. Cc: Cedric Sodhi <manday@openmail.cc> Reported-by: Cedric Sodhi <manday@openmail.cc> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
5068d307f9
commit
93e65fdcac
|
@ -39,7 +39,9 @@ anv_init_wsi(struct anv_physical_device *physical_device)
|
||||||
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
||||||
result = anv_wl_init_wsi(physical_device);
|
result = anv_wl_init_wsi(physical_device);
|
||||||
if (result != VK_SUCCESS) {
|
if (result != VK_SUCCESS) {
|
||||||
|
#ifdef VK_USE_PLATFORM_XCB_KHR
|
||||||
anv_x11_finish_wsi(physical_device);
|
anv_x11_finish_wsi(physical_device);
|
||||||
|
#endif
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue