diff options
-rw-r--r-- | src/mesa/main/glspirv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/glspirv.c b/src/mesa/main/glspirv.c index 8571aa583c..e33832433c 100644 --- a/src/mesa/main/glspirv.c +++ b/src/mesa/main/glspirv.c @@ -181,11 +181,11 @@ _mesa_SpecializeShaderARB(GLuint shader, /* TODO: Perform some common optimizations already here, to avoid re-doing * them each time the shader is linked. * - * TODO: How to control which ones to run? + * TODO: How to control which ones to run? --> driver should do most of this! */ NIR_PASS_V(nir, nir_lower_returns); - NIR_PASS_V(nir, nir_inline_functions); - NIR_PASS_V(nir, nir_lower_global_vars_to_local); + NIR_PASS_V(nir, nir_inline_functions); /* need this */ + NIR_PASS_V(nir, nir_lower_global_vars_to_local); /* need this */ NIR_PASS_V(nir, nir_lower_vars_to_ssa); NIR_PASS_V(nir, nir_lower_var_copies); |