ac/gpu_info: simplify HW IP querying
authorMarek Olšák <marek.olsak@amd.com>
Thu, 5 May 2022 18:26:05 +0000 (14:26 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 10 May 2022 06:59:56 +0000 (06:59 +0000)
commit68441ae771f189d032e8008834b10ca02515000d
tree73558aecc03ad999dde8e6bdf366cbff581f7073
parent85aa067d0fbb49c234d33cdde03e4a107a85c798
ac/gpu_info: simplify HW IP querying

Use a loop, don't check the DRM versions, and handle failures as
unsupported.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16360>
src/amd/common/ac_gpu_info.c