<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Apr 3, 2017 at 12:56 PM, Keith Packard <span dir="ltr"><<a href="mailto:keithp@keithp.com" target="_blank">keithp@keithp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Chad Versace <<a href="mailto:chadversary@chromium.org">chadversary@chromium.org</a>> writes:<br>
<br>
> The real path forward should be implemented on top of<br>
> VK_KHX_external_memory. If you want to start experimenting now with<br>
> Vulkan+KMS, you may want to look at<br>
> VK_EXTERNAL_MEMORY_HANDLE_<wbr>OPAQUE_FD_KHX.<br>
<br>
</span>It seems like the Vulkan spec for WSI with devices has a bunch of what I<br>
would need to implement in a standard fashion; I guess I'm unclear<br>
whether I should go down the route of wrapping all of DRM/KMS in a WSI<br>
layer, or use some of this lower-level stuff directly from the<br>
application instead?<span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><br></div><div class="gmail_extra">Interesting question.  To my knowledge, no one has actually implemented the Vulkan WSI direct-to-display extensions.  (I tried to prevent them from getting released with 1.0 but failed.)  I believe the correct answer is to use the external memory dma-buf stuff that chad and I have been using and talk directly to KMS.  I see no good reason to have a large abstraction in the middle.  dma-buf + KMS should give you Intel and radeon (with radv) so that's most of it.  In particular, it will give you 100% of people who actually care about DRM leases. :-)<br></div></div>