[Mesa-dev] [PATCH v2 4/6] panfrost/midgard: Enable NIR vectorization pass
Alyssa Rosenzweig
alyssa at rosenzweig.io
Mon May 13 03:45:58 UTC 2019
This cleans up the blend shader code considerably, owing to a
substantial improvement in these shaders. It's not clear how this
affects overall driver performance; i965 had mixed results with this.
Time will tell.
Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
---
src/gallium/drivers/panfrost/midgard/midgard_compile.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c
index 2ea93403f8d..210e54781ea 100644
--- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c
+++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c
@@ -842,8 +842,7 @@ optimise_nir(nir_shader *nir)
nir_var_shader_out |
nir_var_function_temp);
- /* TODO: Enable vectorize when merged upstream */
- // NIR_PASS(progress, nir, nir_opt_vectorize);
+ NIR_PASS(progress, nir, nir_opt_vectorize);
} while (progress);
/* Must be run at the end to prevent creation of fsin/fcos ops */
--
2.20.1
More information about the mesa-dev
mailing list