st/nir: make st_nir_opts() available externally

The following patch will make use of this for asm style programs.

Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Timothy Arceri 2018-05-09 13:25:46 +10:00
parent 0907d3ab9c
commit 0b3e9564bd
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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);