Mesa (main): intel/compiler: vectorize task payload loads/stores

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 20 18:37:07 UTC 2022


Module: Mesa
Branch: main
Commit: 008163f3820eba5519cc80c31d660fa3de336f6d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=008163f3820eba5519cc80c31d660fa3de336f6d

Author: Marcin Ślusarz <marcin.slusarz at intel.com>
Date:   Mon Jun 13 14:44:30 2022 +0200

intel/compiler: vectorize task payload loads/stores

Reviewed-by: Timur Kristóf <timur.kristof at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17000>

---

 src/intel/compiler/brw_nir.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c
index 471409993d5..87fff7c9b85 100644
--- a/src/intel/compiler/brw_nir.c
+++ b/src/intel/compiler/brw_nir.c
@@ -1081,7 +1081,8 @@ brw_vectorize_lower_mem_access(nir_shader *nir,
    if (is_scalar) {
       nir_load_store_vectorize_options options = {
          .modes = nir_var_mem_ubo | nir_var_mem_ssbo |
-                  nir_var_mem_global | nir_var_mem_shared,
+                  nir_var_mem_global | nir_var_mem_shared |
+                  nir_var_mem_task_payload,
          .callback = brw_nir_should_vectorize_mem,
          .robust_modes = (nir_variable_mode)0,
       };



More information about the mesa-commit mailing list