diff options
author | Timothy Arceri <[email protected]> | 2018-12-11 11:49:00 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2019-01-02 12:19:17 +1100 |
commit | 50de3f80a807c657b317173c437f217bc7bd74da (patch) | |
tree | ed252597e13f75dbd14f36f7baa7393b4f84280d /src/mesa/state_tracker | |
parent | 0a4378ce562dbf68b7b58165f2dcfc94f831559f (diff) |
nir: rename nir_link_constant_varyings() nir_link_opt_varyings()
The following patches will add support for an additional
optimisation so this function will no longer just optimise varying
constants.
Tested-by: Dieter Nützel <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_nir.cpp | 2 |
1 files changed, 1 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 dce96ab58b6..af83a341e90 100644 --- a/src/mesa/state_tracker/st_glsl_to_nir.cpp +++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp @@ -588,7 +588,7 @@ st_nir_link_shaders(nir_shader **producer, nir_shader **consumer, bool scalar) { nir_lower_io_arrays_to_elements(*producer, *consumer); - if (nir_link_constant_varyings(*producer, *consumer)) + if (nir_link_opt_varyings(*producer, *consumer)) st_nir_opts(*consumer, scalar); NIR_PASS_V(*producer, nir_remove_dead_variables, nir_var_shader_out); |