radv: Don't include nir.h in radv_shader.h
authorTimur Kristóf <timur.kristof@gmail.com>
Fri, 31 Mar 2023 20:01:33 +0000 (22:01 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 10 Apr 2023 20:01:28 +0000 (20:01 +0000)
Avoid recompiling some RADV files when something changes in NIR.
Also clean up a few other includes.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22241>

src/amd/vulkan/radv_shader.h

index 431708c..251e1d2 100644 (file)
 #ifndef RADV_SHADER_H
 #define RADV_SHADER_H
 
+#include "util/u_math.h"
+#include "vulkan/vulkan.h"
 #include "ac_binary.h"
 #include "ac_shader_util.h"
-
 #include "amd_family.h"
 #include "radv_constants.h"
 
-#include "nir/nir.h"
-#include "vulkan/runtime/vk_object.h"
-#include "vulkan/runtime/vk_shader_module.h"
-#include "vulkan/vulkan.h"
-
 #include "aco_shader_info.h"
 
 #define RADV_VERT_ATTRIB_MAX MAX2(VERT_ATTRIB_MAX, VERT_ATTRIB_GENERIC0 + MAX_VERTEX_ATTRIBS)