Skip to content

SwiftShader has no PCI bus, so there's nothing to fill in#34

Open
krishnadurai wants to merge 1 commit into
google:masterfrom
krishnadurai:patch-1
Open

SwiftShader has no PCI bus, so there's nothing to fill in#34
krishnadurai wants to merge 1 commit into
google:masterfrom
krishnadurai:patch-1

Conversation

@krishnadurai
Copy link
Copy Markdown

SwiftShader's vkGetPhysicalDeviceProperties2 aborts in debug builds when encountering VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT in the pNext chain. This occurs when the Vulkan loader's linux_read_sorted_physical_devices() queries PCI bus info on all physical devices, including SwiftShader. Per the Vulkan spec (section 3.6.2), drivers must skip over unrecognized pNext members without processing them. SwiftShader is a software renderer with no PCI bus, so the correct behavior is to silently skip this sType. Without this fix, loading SwiftShader alongside a hardware GPU driver (e.g., NVIDIA) crashes in debug builds because UNSUPPORTED() calls sw::abort().

SwiftShader's vkGetPhysicalDeviceProperties2 aborts in debug builds when encountering VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT in the pNext chain. This occurs when the Vulkan loader's linux_read_sorted_physical_devices() queries PCI bus info on all physical devices, including SwiftShader.
Per the Vulkan spec (section 3.6.2), drivers must skip over unrecognized pNext members without processing them. SwiftShader is a software renderer with no PCI bus, so the correct behavior is to silently skip this sType. Without this fix, loading SwiftShader alongside a hardware GPU driver (e.g.,
NVIDIA) crashes in debug builds because UNSUPPORTED() calls sw::abort().
@sugoi1
Copy link
Copy Markdown
Contributor

sugoi1 commented Mar 10, 2026

Hi, this repo is just a mirror of another repo.

To contribute to SwiftShader, look at the info here:
https://swiftshader.googlesource.com/SwiftShader#contributing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants