[Mesa-dev] [PATCH 4/5] ac: remove amdgpu.h dependency

Marek Olšák maraeo at gmail.com
Fri May 26 15:59:39 UTC 2017


ac_gpu_info.c should include amdgpu.h.

Marek

On Fri, May 26, 2017 at 5:32 PM, Emil Velikov <emil.l.velikov at gmail.com>
wrote:

> From: Emil Velikov <emil.velikov at collabora.com>
>
> 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.
>
> Cc: Nicolai Hähnle <nicolai.haehnle at amd.com>
> Cc: Marek Olšák <marek.olsak at amd.com>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101189
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
> Note that I have not extensively tested the series. Will do so in ~two
> hours.
>
>  src/amd/common/ac_gpu_info.h | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/src/amd/common/ac_gpu_info.h b/src/amd/common/ac_gpu_info.h
> index 3f7ade1a0bb..dabd3b003e1 100644
> --- a/src/amd/common/ac_gpu_info.h
> +++ b/src/amd/common/ac_gpu_info.h
> @@ -28,12 +28,13 @@
>
>  #include "amd_family.h"
>
> -#include <amdgpu.h>
> -
>  #ifdef __cplusplus
>  extern "C" {
>  #endif
>
> +typedef void * amdgpu_device_handle;
> +struct amdgpu_gpu_info;
> +
>  struct radeon_info {
>         /* PCI info: domain:bus:dev:func */
>         uint32_t                    pci_domain;
> --
> 2.12.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170526/6b08ebd7/attachment-0001.html>


More information about the mesa-dev mailing list