<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 27, 2016 at 11:39 AM, Jacek Konieczny <span dir="ltr"><<a href="mailto:jajcus@jajcus.net" target="_blank">jajcus@jajcus.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2016-02-27 19:58, Jason Ekstrand wrote:<br>
><br>
><br>
> On Sat, Feb 27, 2016 at 5:47 AM, Jacek Konieczny <<a href="mailto:jajcus@jajcus.net">jajcus@jajcus.net</a><br>
</span><span class="">> <mailto:<a href="mailto:jajcus@jajcus.net">jajcus@jajcus.net</a>>> wrote:<br>
><br>
>     The same handle returned by all vkCreateSemaphore() calls confuses<br>
>     validation layers:<br>
><br>
><br>
> From the Vulkan 1.0 spec, Glossary:<br>
><br>
> Non-Dispatchable Handle<br>
>     A handle of an integer handle type. Handle values may not be unique,<br>
>     even for two objects of the same type.<br>
><br>
> Semaphores are non-dispatchable handles so there is no guarantee that<br>
> they are unique.<br>
<br>
</span>I have missed that.<br>
<span class=""><br>
> The validation layer is broken.  Please file a bug there.<br>
<br>
</span>Done:<br>
<a href="https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/49" rel="noreferrer" target="_blank">https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/49</a><br>
<br>
Though, I still think this check (as in validation layers), with unique<br>
values resturned from the driver, is a useful tool for testing Vulkan<br>
applications.<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>Agreed.  The check is certainly useful.  But it's the job of the validation layer to wrap the result of vkCreateSemaphore with a unique handle and pass that to the client application.  Then, as far as the client and validator are concerned, they can be treated as unique even if they aren't unique to the driver.<br></div><div>--Jason <br></div></div><br></div></div>