mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 17:00:09 +01:00
glsl: Don't include full nir.h where not necessary.
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com> Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33439>
This commit is contained in:
parent
f0966f7ac8
commit
480c7100d8
6 changed files with 8 additions and 3 deletions
|
|
@ -26,6 +26,7 @@
|
|||
#include "program/symbol_table.h"
|
||||
#include "util/hash_table.h"
|
||||
#include "main/shader_types.h"
|
||||
#include "nir.h"
|
||||
|
||||
struct function_sig {
|
||||
nir_function *func;
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
#include "program/prog_parameter.h"
|
||||
#include "util/bitset.h"
|
||||
|
||||
#include "nir.h"
|
||||
#include "nir_defines.h"
|
||||
|
||||
struct gl_shader_program;
|
||||
struct gl_shader_stage;
|
||||
|
|
|
|||
|
|
@ -26,8 +26,9 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "nir.h"
|
||||
#include "nir_defines.h"
|
||||
#include "util/glheader.h"
|
||||
#include "util/set.h"
|
||||
#include "main/menums.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@
|
|||
#include "util/u_atomic.h" /* for p_atomic_cmpxchg */
|
||||
#include "util/ralloc.h"
|
||||
#include "util/disk_cache.h"
|
||||
#include "util/log.h"
|
||||
#include "util/mesa-blake3.h"
|
||||
#include "ast.h"
|
||||
#include "glsl_parser_extras.h"
|
||||
|
|
|
|||
|
|
@ -28,7 +28,8 @@
|
|||
#ifndef GLSL_TO_NIR_H
|
||||
#define GLSL_TO_NIR_H
|
||||
|
||||
#include "compiler/nir/nir.h"
|
||||
#include "compiler/nir/nir_defines.h"
|
||||
#include "compiler/nir/nir_shader_compiler_options.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@
|
|||
#include "linker_util.h"
|
||||
#include "main/mtypes.h"
|
||||
#include "program/program.h"
|
||||
#include "nir_shader_compiler_options.h"
|
||||
|
||||
static const struct standalone_options *options;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue