ac: change ac_query_gpu_info() signature
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 21 Jun 2019 16:26:44 +0000 (17:26 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 28 Jun 2019 16:49:32 +0000 (17:49 +0100)
commit4ec32413f3545e771e9f4fee809f3b71fff75a1c
tree6884ae46a48cea2587af5572917b328be0fa5cab
parent7c745f6148d92bcbf2d27598f00c586cf106ed01
ac: change ac_query_gpu_info() signature

Currently libdrm_amdgpu provides a typedef of the various handles. While
the goal was to make those opaque, it effectively became part of the API

To the best of my knowledge there are two ways to have opaque handles:
 - "typedef void *foo;" - rather messy IMHO
 - "stuct foo;" and use "struct foo *" through the API

In our case amdgpu_device_handle is used only internally, plus
respective code is not used or applicable for r300 and r600. Hence we
copied the typedef.

Seemingly this will be a problem since libdrm_amdgpu wants to change the
API, while not updating the code(?).

Either way, we can safely s/amdgpU_device_handle/void */ and carry on.

Cc: Michel Dänzer <michel@daenzer.net>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
src/amd/common/ac_gpu_info.c
src/amd/common/ac_gpu_info.h