ac: remove amdgpu.h dependency
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 29 May 2017 13:50:47 +0000 (14:50 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 16 Jun 2017 11:41:44 +0000 (12:41 +0100)
commit81945ded0dc3d25d55eaf682dce220fa4c2de9fe
treee6b9d6d5ae8114d0f08c7980c6a2596565844744
parentd96a210842bf643716ebceb5aba5c92a564aab14
ac: remove amdgpu.h dependency

Add a couple of forward declarations and drop the amdgpu.h requirement.

With this we can build the r300 and r600 drivers without the need for
amdgpu.

v2:
 - Add amdgpu.h include in the C file (Marek)
 - Add a comment about pre C11 typedef redeclaration warning (Eric)

Cc: Nicolai Hähnle <nicolai.haehnle@amd.com>
Cc: Marek Olšák <marek.olsak@amd.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101189
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/amd/common/ac_gpu_info.c
src/amd/common/ac_gpu_info.h