Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685820 - media-libs/vulkan-loader Registering a single GPU as two
Summary: media-libs/vulkan-loader Registering a single GPU as two
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-13 11:45 UTC by Thomas
Modified: 2019-06-17 17:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas 2019-05-13 11:45:31 UTC
If you have a look at https://bugs.freedesktop.org/attachment.cgi?id=144232 you'll notice that the same GPU is registered two times:

> Devices 	count = 2

> GPU id       : 0 (AMD RADV POLARIS10 (LLVM 9.0.0))

> GPU id       : 1 (AMD RADV POLARIS10 (LLVM 9.0.0))

> Groups :
> ========
> 	Device Group Properties (Group 0) :
> 		physicalDeviceCount = 1
> 
> 			AMD RADV POLARIS10 (LLVM 9.0.0) (ID: 0)
> 
> 		subsetAllocation = 0
> 
> 
> 	Device Group Properties (Group 1) :
> 		physicalDeviceCount = 1
> 
> 			AMD RADV POLARIS10 (LLVM 9.0.0) (ID: 0)
> 
> 		subsetAllocation = 0

But there's just one GPU in the system:

> # lspci | grep VGA
> 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X] (rev e7)

A workaround to this is setting the env variable VK_ICD_FILENAMES to /usr/share/vulkan/icd.d/radeon_icd.x86_64.json but that stops 32 bit apps from accessing the driver.

This has been tested with media-libs/vulkan-loader-1.1.92.1 and media-libs/vulkan-loader-1.1.106

As the files inside of /usr/share/vulkan/icd.d are from media-libs/mesa I'm not sure which of the two packages is rensponsible for this.
Comment 1 Thomas 2019-05-13 11:52:12 UTC
Another workaround is this:

VK_ICD_FILENAMES="/usr/share/vulkan/icd.d/radeon_icd.x86_64.json:/usr/share/vulkan/icd.d/radeon_icd.i686.json"

which is weird as this should be the same as VK_ICD_FILENAMES unset, right?

> $ ls /usr/share/vulkan/icd.d/
> radeon_icd.i686.json  radeon_icd.x86_64.json
Comment 2 Matt Turner gentoo-dev 2019-05-13 16:59:01 UTC
(In reply to Thomas from comment #0)
> If you have a look at https://bugs.freedesktop.org/attachment.cgi?id=144232
> you'll notice that the same GPU is registered two times:

Why is that a problem? Is that somehow a Gentoo packaging problem?