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

Author: Ian Romanick <[email protected]>
Date:   Tue Aug  9 15:52:40 2022 -0700

intel/fs/xe2+: Pass correct dispatch_width to fs_generator for 
geometry-processing stages.

Instead of hard-coding a dispatch_width value which is no longer
correct on Xe2+.

Reviewed-by: Francisco Jerez <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26605>

---

 src/intel/compiler/brw_shader.cpp          | 2 +-
 src/intel/compiler/brw_vec4.cpp            | 2 +-
 src/intel/compiler/brw_vec4_gs_visitor.cpp | 2 +-
 src/intel/compiler/brw_vec4_tcs.cpp        | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/intel/compiler/brw_shader.cpp 
b/src/intel/compiler/brw_shader.cpp
index 556c5a4d867..5371e5fdcdd 100644
--- a/src/intel/compiler/brw_shader.cpp
+++ b/src/intel/compiler/brw_shader.cpp
@@ -1390,7 +1390,7 @@ brw_compile_tes(const struct brw_compiler *compiler,
                                         nir->info.name));
       }
 
-      g.generate_code(v.cfg, 8, v.shader_stats,
+      g.generate_code(v.cfg, dispatch_width, v.shader_stats,
                       v.performance_analysis.require(), params->base.stats);
 
       g.add_const_data(nir->constant_data, nir->constant_data_size);
diff --git a/src/intel/compiler/brw_vec4.cpp b/src/intel/compiler/brw_vec4.cpp
index 993b1fa9c43..9b505ab4970 100644
--- a/src/intel/compiler/brw_vec4.cpp
+++ b/src/intel/compiler/brw_vec4.cpp
@@ -2677,7 +2677,7 @@ brw_compile_vs(const struct brw_compiler *compiler,
 
          g.enable_debug(debug_name);
       }
-      g.generate_code(v.cfg, 8, v.shader_stats,
+      g.generate_code(v.cfg, dispatch_width, v.shader_stats,
                       v.performance_analysis.require(), params->base.stats);
       g.add_const_data(nir->constant_data, nir->constant_data_size);
       assembly = g.get_assembly();
diff --git a/src/intel/compiler/brw_vec4_gs_visitor.cpp 
b/src/intel/compiler/brw_vec4_gs_visitor.cpp
index 6190f72572a..fcabe0a0552 100644
--- a/src/intel/compiler/brw_vec4_gs_visitor.cpp
+++ b/src/intel/compiler/brw_vec4_gs_visitor.cpp
@@ -838,7 +838,7 @@ brw_compile_gs(const struct brw_compiler *compiler,
                                          label, nir->info.name);
             g.enable_debug(name);
          }
-         g.generate_code(v.cfg, 8, v.shader_stats,
+         g.generate_code(v.cfg, v.dispatch_width, v.shader_stats,
                          v.performance_analysis.require(), params->base.stats);
          g.add_const_data(nir->constant_data, nir->constant_data_size);
          return g.get_assembly();
diff --git a/src/intel/compiler/brw_vec4_tcs.cpp 
b/src/intel/compiler/brw_vec4_tcs.cpp
index c484177a8bc..26aa3224420 100644
--- a/src/intel/compiler/brw_vec4_tcs.cpp
+++ b/src/intel/compiler/brw_vec4_tcs.cpp
@@ -470,7 +470,7 @@ brw_compile_tcs(const struct brw_compiler *compiler,
                                         nir->info.name));
       }
 
-      g.generate_code(v.cfg, 8, v.shader_stats,
+      g.generate_code(v.cfg, dispatch_width, v.shader_stats,
                       v.performance_analysis.require(), params->base.stats);
 
       g.add_const_data(nir->constant_data, nir->constant_data_size);

Reply via email to