[Mesa-dev] [PATCH 2/3] anv: error out of anv_init_wsi() if build platform-less
Emil Velikov
emil.l.velikov at gmail.com
Sun May 29 16:40:49 UTC 2016
From: Emil Velikov <emil.velikov at collabora.com>
Strictly speaking one can build 'platform-less', thus we should error
out in that case.
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
Not 100% sure if this is the correct error. NO_PLATFORM or
NOT_SUPPORTED_PLATFORM seems like a better choice yet is seems to be
missing in the vulkan API.
---
src/intel/vulkan/anv_wsi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/intel/vulkan/anv_wsi.c b/src/intel/vulkan/anv_wsi.c
index 006944a..4ccafb2 100644
--- a/src/intel/vulkan/anv_wsi.c
+++ b/src/intel/vulkan/anv_wsi.c
@@ -26,7 +26,7 @@
VkResult
anv_init_wsi(struct anv_physical_device *physical_device)
{
- VkResult result;
+ VkResult result = VK_ERROR_INITIALIZATION_FAILED;
memset(physical_device->wsi, 0, sizeof(physical_device->wsi));
@@ -46,7 +46,7 @@ anv_init_wsi(struct anv_physical_device *physical_device)
}
#endif
- return VK_SUCCESS;
+ return result;
}
void
--
2.8.2
More information about the mesa-dev
mailing list