Bug 11184

Summary: Better Vulkan support
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: graphicsAssignee: Maxin B. John <maxin.john>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium+ CC: california.l.sullivan, meta.mr.watcher, meta.watcher, randy.macleod, richard.purdie, robin.l.jordan
Version: 2.3   
Target Milestone: 4.99   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Ross Burton 2017-03-17 18:19:50 UTC
2.3 has the start of Vulkan support but it's not enabled by default (this also needs work in meta-intel) or tested (is there a Piglit for Vulkan?).
Comment 1 Jussi Kukkonen 2017-03-23 16:07:16 UTC
There's a conformance test suite in VK-GL-CTS which is based on the dEQP android testing system. It's unclear how useful it would be or how hard it would be to get running -- at least spirv-tools and glslang would be needed as dependencies. 

https://github.com/KhronosGroup/VK-GL-CTS
Comment 2 Jussi Kukkonen 2017-06-08 11:29:39 UTC
This is not going to happen (by me) in M1.

I'm also not totally sure what we should do: the test suite would be nice but it doesn't look trivial ...
Comment 3 Jussi Kukkonen 2017-06-22 07:11:52 UTC
I'm setting the milestone to M2... but it's possible that the only thing that happens is adding a demo/test application which we didn't do in 2.3: The test suite feels quite tricky to get packaged and I haven't found anything else that would do the job of verifying a vulkan setup.
Comment 4 Jussi Kukkonen 2017-07-05 13:03:34 UTC
Sent a patchset that
a) adds vulkan-demos (Sascha Willems collection)
b) defines vulkan DISTRO_FEATURE

Ross what exactly do you mean with "enabled by default"?
Comment 5 California Sullivan 2017-07-11 17:56:33 UTC
It looks like the lack of UPSTREAM_CHECK variables is causing sanity test failures: https://autobuilder.yocto.io/builders/nightly-oe-selftest/builds/373/steps/Running%20oe-selftest/logs/stdio
Comment 6 Ross Burton 2017-07-11 21:34:54 UTC
Yes, that was in mut and a v3 has been sent already.
Comment 7 Jussi Kukkonen 2017-07-18 07:48:07 UTC
vulkan patches are in oe-core. The patch to enable the distro feature in poky by default has been sent.
Comment 8 Jussi Kukkonen 2017-08-17 13:59:01 UTC
Status: Vulkan now builds for all architectures (although currently we only have drivers for intel), there's lots of test binaries for manual testing in vulkan-demos, and yocto/poky has enabled vulkan by default (with the xf86-video-intel caveat below) in poky commit 6016ec177af.


So this is pretty much resolved... but I'll still have to take a closer look at xf86-video-intel: maintainer has explicitly disabled dri3 (unless runtime configuration is used to override that). I'm a little worried about just adding that config since I don't know if anyone tests it.
Comment 9 Ross Burton 2017-08-31 15:36:37 UTC
Where is DRI3 disabled and how does one turn it back on?
Comment 10 Ross Burton 2017-09-05 16:35:43 UTC
So thanks to Jussi we're in a pretty good state for 2.4.

We're now frozen though so future steps for 2.5:
1) Enable DRI3 in xf86-video-intel (configure is trivial, verify its actually enabled at runtime)
or
2) Drop xf86-video-intel from meta-intel and use -modesettings instead (see bug 12019)

Most major distros have already done (2).
Comment 11 Ross Burton 2018-02-05 14:37:40 UTC
Moving to Maxin.  Please coordinate the meta-intel parts with Cal (on CC).
Comment 12 Maxin B. John 2018-08-02 10:25:25 UTC
Cal fixed https://bugzilla.yoctoproject.org/show_bug.cgi?id=12019

So, We can close this one.