aco: Only include nir.h in instruction selection.

Don't recompile entire ACO when something changes in NIR.
Instead, only use some headers which are actually needed,
include these in ACO files instead of relying on nir.h to
include them.

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>
This commit is contained in:
Timur Kristóf
2023-03-31 21:59:33 +02:00
committed by Marge Bot
parent 8e9d269da6
commit 2ff1267959
9 changed files with 18 additions and 5 deletions
+1 -2
View File
@@ -25,8 +25,6 @@
#ifndef ACO_INTERFACE_H
#define ACO_INTERFACE_H
#include "nir.h"
#include "amd_family.h"
#include "aco_shader_info.h"
@@ -34,6 +32,7 @@
extern "C" {
#endif
typedef struct nir_shader nir_shader;
struct ac_shader_config;
struct aco_shader_info;
struct aco_vs_prolog_info;