<div dir="ltr"><div>ac_gpu_info.c should include amdgpu.h.<br><br></div>Marek<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 26, 2017 at 5:32 PM, Emil Velikov <span dir="ltr"><<a href="mailto:emil.l.velikov@gmail.com" target="_blank">emil.l.velikov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
<br>
Add a couple of forward declarations and drop the amdgpu.h requirement.<br>
<br>
With this we can build the r300 and r600 drivers without the need for<br>
amdgpu.<br>
<br>
Cc: Nicolai Hähnle <<a href="mailto:nicolai.haehnle@amd.com">nicolai.haehnle@amd.com</a>><br>
Cc: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>><br>
Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=101189" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/<wbr>show_bug.cgi?id=101189</a><br>
Signed-off-by: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
---<br>
Note that I have not extensively tested the series. Will do so in ~two hours.<br>
<br>
 src/amd/common/ac_gpu_info.h | 5 +++--<br>
 1 file changed, 3 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/amd/common/ac_gpu_info.h b/src/amd/common/ac_gpu_info.h<br>
index 3f7ade1a0bb..dabd3b003e1 100644<br>
--- a/src/amd/common/ac_gpu_info.h<br>
+++ b/src/amd/common/ac_gpu_info.h<br>
@@ -28,12 +28,13 @@<br>
<br>
 #include "amd_family.h"<br>
<br>
-#include <amdgpu.h><br>
-<br>
 #ifdef __cplusplus<br>
 extern "C" {<br>
 #endif<br>
<br>
+typedef void * amdgpu_device_handle;<br>
+struct amdgpu_gpu_info;<br>
+<br>
 struct radeon_info {<br>
        /* PCI info: domain:bus:dev:func */<br>
        uint32_t                    pci_domain;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.12.2<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>