mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
intel/fs: disable split_array_vars on opencl kernels
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16970>
This commit is contained in:
parent
57593c5395
commit
8fc7a98e31
1 changed files with 8 additions and 1 deletions
|
|
@ -641,7 +641,14 @@ brw_nir_optimize(nir_shader *nir, const struct brw_compiler *compiler,
|
|||
|
||||
do {
|
||||
progress = false;
|
||||
OPT(nir_split_array_vars, nir_var_function_temp);
|
||||
/* This pass is causing problems with types used by OpenCL :
|
||||
* https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13955
|
||||
*
|
||||
* Running with it disabled made no difference in the resulting assembly
|
||||
* code.
|
||||
*/
|
||||
if (nir->info.stage != MESA_SHADER_KERNEL)
|
||||
OPT(nir_split_array_vars, nir_var_function_temp);
|
||||
OPT(nir_shrink_vec_array_vars, nir_var_function_temp);
|
||||
OPT(nir_opt_deref);
|
||||
if (OPT(nir_opt_memcpy))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue