<p dir="ltr">No, if we have no platforms, it should succeed at setting up all zero of them.</p>
<div class="gmail_quote">On May 29, 2016 9:41 AM, "Emil Velikov" <<a href="mailto:emil.l.velikov@gmail.com">emil.l.velikov@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
<br>
Strictly speaking one can build 'platform-less', thus we should error<br>
out in that case.<br>
<br>
Signed-off-by: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
---<br>
Not 100% sure if this is the correct error. NO_PLATFORM or<br>
NOT_SUPPORTED_PLATFORM seems like a better choice yet is seems to be<br>
missing in the vulkan API.<br>
---<br>
src/intel/vulkan/anv_wsi.c | 4 ++--<br>
1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/intel/vulkan/anv_wsi.c b/src/intel/vulkan/anv_wsi.c<br>
index 006944a..4ccafb2 100644<br>
--- a/src/intel/vulkan/anv_wsi.c<br>
+++ b/src/intel/vulkan/anv_wsi.c<br>
@@ -26,7 +26,7 @@<br>
VkResult<br>
anv_init_wsi(struct anv_physical_device *physical_device)<br>
{<br>
- VkResult result;<br>
+ VkResult result = VK_ERROR_INITIALIZATION_FAILED;<br>
<br>
memset(physical_device->wsi, 0, sizeof(physical_device->wsi));<br>
<br>
@@ -46,7 +46,7 @@ anv_init_wsi(struct anv_physical_device *physical_device)<br>
}<br>
#endif<br>
<br>
- return VK_SUCCESS;<br>
+ return result;<br>
}<br>
<br>
void<br>
--<br>
2.8.2<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>