glsl: move _mesa_glsl_compile_shader() declaration

The function is in glsl_parser_extras.cpp so move the declaration to
glsl_parser_extras.h

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32402>
This commit is contained in:
Timothy Arceri 2024-11-29 12:51:18 +11:00
parent 323b59a5b5
commit 8142797721
5 changed files with 10 additions and 19 deletions

View file

@ -1084,6 +1084,14 @@ extern "C" {
struct glcpp_parser;
struct _mesa_glsl_parse_state;
struct gl_context;
struct gl_shader;
extern void
_mesa_glsl_compile_shader(struct gl_context *ctx, struct gl_shader *shader,
FILE *dump_ir_file, bool dump_ast, bool dump_hir,
bool force_recompile);
typedef void (*glcpp_extension_iterator)(
struct _mesa_glsl_parse_state *state,
void (*add_builtin_define)(struct glcpp_parser *, const char *, int),

View file

@ -26,12 +26,12 @@
*/
#include "float64_glsl.h"
#include "glsl_parser_extras.h"
#include "glsl_to_nir.h"
#include "ir_visitor.h"
#include "ir_hierarchical_visitor.h"
#include "ir.h"
#include "ir_optimization.h"
#include "program.h"
#include "compiler/nir/nir_control_flow.h"
#include "compiler/nir/nir_builder.h"
#include "compiler/nir/nir_builtin_builder.h"

View file

@ -25,23 +25,6 @@
#ifndef GLSL_PROGRAM_H
#define GLSL_PROGRAM_H
#ifdef __cplusplus
extern "C" {
#endif
struct gl_context;
struct gl_shader;
struct gl_shader_program;
extern void
_mesa_glsl_compile_shader(struct gl_context *ctx, struct gl_shader *shader,
FILE *dump_ir_file, bool dump_ast, bool dump_hir,
bool force_recompile);
#ifdef __cplusplus
} /* extern "C" */
#endif
extern void
link_shaders(struct gl_context *ctx, struct gl_shader_program *prog);

View file

@ -33,6 +33,7 @@
#include "nir.h"
#include "gl_nir.h"
#include "gl_nir_linker.h"
#include "glsl_parser_extras.h"
#include "glsl_to_nir.h"
#include "linker_util.h"
#include "nir_builder.h"

View file

@ -53,7 +53,6 @@
#include "compiler/glsl/builtin_functions.h"
#include "compiler/glsl/glsl_parser_extras.h"
#include "compiler/glsl/ir.h"
#include "compiler/glsl/program.h"
#include "program/program.h"
#include "program/prog_print.h"
#include "program/prog_parameter.h"