From 531728d6cbf0eb7d87698b9f03d0083ca0e2a7c0 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Sat, 25 Apr 2020 20:03:15 +0200 Subject: drm-uapi,radv,radeonsi: Add amdgpu_drm.h header. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use it instead of the libdrm provided amdgpu_drm.h header. I used the kernel revision from the README to get the header so the header versions should be consistent. Tested by removing /usr/include/libdrm/amdgpu_drm.h from my dev-machine. Reviewed-by: Marek Olšák Reviewed-by: Samuel Pitoiset Part-of: --- src/gallium/winsys/amdgpu/drm/amdgpu_bo.c | 2 +- src/gallium/winsys/amdgpu/drm/amdgpu_cs.h | 2 +- src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gallium/winsys') diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c index e5a9278ce23..bdb03ee033f 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c @@ -31,7 +31,7 @@ #include "util/os_time.h" #include "util/u_hash_table.h" #include "state_tracker/drm_driver.h" -#include +#include "drm-uapi/amdgpu_drm.h" #include #include #include diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.h b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.h index 507859c2d59..26c14d8ec69 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.h +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.h @@ -30,7 +30,7 @@ #include "amdgpu_bo.h" #include "util/u_memory.h" -#include +#include "drm-uapi/amdgpu_drm.h" struct amdgpu_ctx { struct amdgpu_winsys *ws; diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c index 3dff8e46ada..a195dc8a136 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c @@ -36,7 +36,7 @@ #include "util/u_hash_table.h" #include "util/hash_table.h" #include "util/xmlconfig.h" -#include +#include "drm-uapi/amdgpu_drm.h" #include #include #include -- cgit v1.2.3