summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/prog_to_nir.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2015-04-07 15:07:33 -0700
committerKenneth Graunke <[email protected]>2015-04-10 02:15:58 -0700
commitd0f39a2fcd82da9b1e293ddfd2f5ea6e78d28df8 (patch)
tree346c3f0302996fd5e2fd1ac0cad7d91e9a3b988f /src/mesa/program/prog_to_nir.h
parent50e9fa2ed69cb5f76f66231976ea789c0091a64d (diff)
nir: Constify prog_to_nir's gl_program pointer.
prog_to_nir should not modify the incoming Mesa IR program - just translate it. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/program/prog_to_nir.h')
-rw-r--r--src/mesa/program/prog_to_nir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/prog_to_nir.h b/src/mesa/program/prog_to_nir.h
index 3c9b66401d4..34e4cd10461 100644
--- a/src/mesa/program/prog_to_nir.h
+++ b/src/mesa/program/prog_to_nir.h
@@ -28,7 +28,7 @@
extern "C" {
#endif
-struct nir_shader *prog_to_nir(struct gl_program *prog,
+struct nir_shader *prog_to_nir(const struct gl_program *prog,
const nir_shader_compiler_options *options);
#ifdef __cplusplus