diff options
author | Timothy Arceri <[email protected]> | 2018-05-09 13:25:46 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-05-12 14:48:21 +1000 |
commit | 0b3e9564bdda575c3956f338454f4f632041e151 (patch) | |
tree | 8559f3d36c887713e3bd80b2952f3c815c8681b9 | |
parent | 0907d3ab9c61ee1fc841aaf22fb4a5ab38633a0c (diff) |
st/nir: make st_nir_opts() available externally
The following patch will make use of this for asm style programs.
Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_nir.cpp | 2 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_nir.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp index 3b261cf1b2c..de906e60c39 100644 --- a/src/mesa/state_tracker/st_glsl_to_nir.cpp +++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp @@ -314,7 +314,7 @@ st_nir_assign_uniform_locations(struct gl_context *ctx, *size = max; } -static void +void st_nir_opts(nir_shader *nir) { bool progress; diff --git a/src/mesa/state_tracker/st_nir.h b/src/mesa/state_tracker/st_nir.h index 1c2e32a5e6f..15f1ce93e5a 100644 --- a/src/mesa/state_tracker/st_nir.h +++ b/src/mesa/state_tracker/st_nir.h @@ -42,6 +42,8 @@ void st_finalize_nir(struct st_context *st, struct gl_program *prog, struct gl_shader_program *shader_program, struct nir_shader *nir); +void st_nir_opts(struct nir_shader *nir); + bool st_link_nir(struct gl_context *ctx, struct gl_shader_program *shader_program); |