From 43d66c8c2d4d3d4dee1309856b6ce6c5393682e5 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 8 Apr 2018 13:13:08 -0400 Subject: mesa: include mtypes.h less - remove mtypes.h from most header files - add main/menums.h for often used definitions - remove main/core.h v2: fix radv build Reviewed-by: Brian Paul --- src/amd/vulkan/radv_pipeline.c | 1 + src/amd/vulkan/radv_private.h | 1 + src/amd/vulkan/radv_radeon_winsys.h | 1 + src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c | 2 ++ src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c | 2 ++ 5 files changed, 7 insertions(+) (limited to 'src/amd') diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index fce3201c198..88fccb2b2ea 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -48,6 +48,7 @@ #include "util/debug.h" #include "ac_exp_param.h" #include "ac_shader_util.h" +#include "main/menums.h" struct radv_blend_state { uint32_t blend_enable_4bit; diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index fb94c50cb00..df8fe891dcf 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -43,6 +43,7 @@ #define VG(x) #endif +#include "c11/threads.h" #include #include "compiler/shader_enums.h" #include "util/macros.h" diff --git a/src/amd/vulkan/radv_radeon_winsys.h b/src/amd/vulkan/radv_radeon_winsys.h index 270b3bceaba..ba16bf332ab 100644 --- a/src/amd/vulkan/radv_radeon_winsys.h +++ b/src/amd/vulkan/radv_radeon_winsys.h @@ -29,6 +29,7 @@ #ifndef RADV_RADEON_WINSYS_H #define RADV_RADEON_WINSYS_H +#include #include #include #include diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c index 9e83390568a..32f263adddc 100644 --- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c +++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c @@ -33,6 +33,8 @@ #include #include #include +#include +#include #include "util/u_atomic.h" diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c index cd7ab384e73..9921d38ab0f 100644 --- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c +++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c @@ -26,6 +26,8 @@ #include #include #include +#include +#include #include "ac_debug.h" #include "radv_radeon_winsys.h" -- cgit v1.2.3