Revert "ac: don't call ac_query_pci_bus_info from ac_query_gpu_info"
authorMarek Olšák <marek.olsak@amd.com>
Sun, 13 Aug 2023 21:33:47 +0000 (17:33 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sat, 19 Aug 2023 19:36:55 +0000 (19:36 +0000)
commit5d19a0a19ba2ffe50a7d05fcf0ff17e0078c2d8e
tree0576b3cf74426a62c3cce7501d8c0dc1ba99582e
parentb02b43eef16ab83447ef1a645681c7b2007f0672
Revert "ac: don't call ac_query_pci_bus_info from ac_query_gpu_info"

This reverts commit a48642400be86a17d460ce2786988ec67f423f01.

Instead, add a new parameter require_pci_bus_info to control the behavior.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24759>
src/amd/common/ac_gpu_info.c
src/amd/common/ac_gpu_info.h
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c
src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c