summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/prog_to_nir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/program/prog_to_nir.c')
-rw-r--r--src/mesa/program/prog_to_nir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c
index b298d076e5d..c738f5073b8 100644
--- a/src/mesa/program/prog_to_nir.c
+++ b/src/mesa/program/prog_to_nir.c
@@ -43,7 +43,7 @@
*/
struct ptn_compile {
- struct gl_program *prog;
+ const struct gl_program *prog;
nir_builder build;
bool error;
@@ -1052,7 +1052,7 @@ setup_registers_and_variables(struct ptn_compile *c)
}
struct nir_shader *
-prog_to_nir(struct gl_program *prog, const nir_shader_compiler_options *options)
+prog_to_nir(const struct gl_program *prog, const nir_shader_compiler_options *options)
{
struct ptn_compile *c;
struct nir_shader *s;