mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 03:48:06 +02:00
zink: use VK_EXT_pci_bus_info for PCI address
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39894>
This commit is contained in:
parent
0c17a59ab5
commit
5ab41818c4
2 changed files with 11 additions and 4 deletions
|
|
@ -142,6 +142,9 @@ EXTENSIONS = [
|
|||
Extension("VK_KHR_driver_properties",
|
||||
alias="driver",
|
||||
properties=True),
|
||||
Extension("VK_EXT_pci_bus_info",
|
||||
alias="pci",
|
||||
properties=True),
|
||||
Extension("VK_EXT_memory_budget"),
|
||||
Extension("VK_EXT_memory_priority", alias="memprio", features=True),
|
||||
Extension("VK_EXT_pageable_device_local_memory", alias="mempage", features=True),
|
||||
|
|
|
|||
|
|
@ -1058,10 +1058,14 @@ zink_init_screen_caps(struct zink_screen *screen)
|
|||
caps->shader_buffer_offset_alignment =
|
||||
screen->info.props.limits.minStorageBufferOffsetAlignment;
|
||||
|
||||
caps->pci_group =
|
||||
caps->pci_bus =
|
||||
caps->pci_device =
|
||||
caps->pci_function = 0; /* TODO: figure these out */
|
||||
if (screen->info.have_EXT_pci_bus_info) {
|
||||
caps->pci_group = screen->info.pci_props.pciDomain;
|
||||
caps->pci_bus = screen->info.pci_props.pciBus;
|
||||
caps->pci_device = screen->info.pci_props.pciDevice;
|
||||
caps->pci_function = screen->info.pci_props.pciFunction;
|
||||
} else {
|
||||
caps->pci_group = caps->pci_bus = caps->pci_device = caps->pci_function = 0;
|
||||
}
|
||||
|
||||
caps->cull_distance = screen->info.feats.features.shaderCullDistance;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue