Bug 106311 - vkEnumeratePhysicalDevices reports duplicates
Summary: vkEnumeratePhysicalDevices reports duplicates
Status: RESOLVED NOTOURBUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Vulkan/intel (show other bugs)
Version: 17.3
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel 3D Bugs Mailing List
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-29 16:12 UTC by Martin Blanchard
Modified: 2018-04-30 14:47 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
vulkaninfo output on Linux (210.84 KB, text/plain)
2018-04-29 16:12 UTC, Martin Blanchard
Details
vulkaninfo output on Windows (134.66 KB, text/plain)
2018-04-29 16:13 UTC, Martin Blanchard
Details
vulkaninfo output on Linux + debug (stderr) (165.00 KB, text/plain)
2018-04-30 07:34 UTC, Martin Blanchard
Details

Description Martin Blanchard 2018-04-29 16:12:05 UTC
Created attachment 139217 [details]
vulkaninfo output on Linux

On my system the vkEnumeratePhysicalDevices reports two (identical) physical devices while, obviously, my machine, a laptop with an Intel HD Graphic 502 integrated graphics processor, running Fedora 27 and Mesa 17.3.6, only has one. lspci gives:
Attached is the vulkaninfo output.
Comment 1 Martin Blanchard 2018-04-29 16:13:46 UTC
Created attachment 139218 [details]
vulkaninfo output on Windows

Attached is the vulkaninfo output from Windows, same machine.
Comment 2 Jason Ekstrand 2018-04-29 22:41:33 UTC
This is very weird.  I just ran vulkaninfo locally and it's working fine.  Can you do "ls -l /dev/dri" and paste the output?
Comment 3 Martin Blanchard 2018-04-29 22:53:42 UTC
Sure, here is the output:

$ ls -l /dev/dri
total 0
drwxr-xr-x. 2 root root        80 29 avril 16:45 by-path
crw-rw----+ 1 root video 226,   0 29 avril 16:45 card0
crw-rw----+ 1 root video 226, 128 29 avril 16:45 renderD128
Comment 4 Jason Ekstrand 2018-04-29 23:51:49 UTC
Please re-run vulkaninfo with VK_LOADER_DEBUG=all and attach the standard error that gets dumped out.
Comment 5 Martin Blanchard 2018-04-30 07:34:15 UTC
Created attachment 139225 [details]
vulkaninfo output on Linux + debug (stderr)

$ VK_LOADER_DEBUG=all vulkaninfo 2>vulkaninfo.linux.debug.stderr

Looks like /usr/share/vulkan/icd.d/ and /usr/share//vulkan/icd.d/intel_icd/ are searched three times. May that be a problem, and should that be a loader problem instead of a driver one?
Comment 6 Jason Ekstrand 2018-04-30 14:47:08 UTC
The problem is that the loader is finding /usr/share/vulkan/icd.d/intel_icd.x86_64.json and /usr/share//vulkan/icd.d/intel_icd.x86_64.json and thinks they are separate icd files.  This is either a loader bug or a loader packaging bug.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.