summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2016-02-22 22:58:18 +0100
committerMarek Olšák <marek.olsak@amd.com>2016-03-09 15:02:28 +0100
commit737b6ed13e8f813987b5566004f0f45e9c55f1e8 (patch)
tree8489334b0632a5a6455c4b8a3a4f285be1a30404 /src/gallium/drivers
parentec74deeb2466689a0eca52f290d5f9e44af6a97b (diff)
downloadexternal_mesa3d-737b6ed13e8f813987b5566004f0f45e9c55f1e8.zip
external_mesa3d-737b6ed13e8f813987b5566004f0f45e9c55f1e8.tar.gz
external_mesa3d-737b6ed13e8f813987b5566004f0f45e9c55f1e8.tar.bz2
winsys/amdgpu: get PCI info
This will be queried by the OpenCL stack using an interop call. I have tested that the values match lspci. Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/radeon/radeon_winsys.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_winsys.h b/src/gallium/drivers/radeon/radeon_winsys.h
index 5ca2414..b8a0659 100644
--- a/src/gallium/drivers/radeon/radeon_winsys.h
+++ b/src/gallium/drivers/radeon/radeon_winsys.h
@@ -231,6 +231,12 @@ struct radeon_winsys_cs {
};
struct radeon_info {
+ /* PCI info: domain:bus:dev:func */
+ uint32_t pci_domain;
+ uint32_t pci_bus;
+ uint32_t pci_dev;
+ uint32_t pci_func;
+
/* Device info. */
uint32_t pci_id;
enum radeon_family family;