diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-06-24 17:48:01 +0200 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-07-13 13:27:43 +0200 |
commit | 556f779180cf47a58fd514e4c0775a1441124b2e (patch) | |
tree | 5e8c46f54f06022d6aa9bf5a0b2bbf3f01f42d4c | |
parent | 9fef8af8aa2c60c59069b1c3faf723b4b9526410 (diff) |
mesa/glspirv: fixup NIR passes during specialization
-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); |