mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-24 22:20:38 +02:00
nir/opt_uniform_subgroup: don't try to optimize non trivial clustered reduce
Fixes: 535caaf3e0 ("nir: Optimize uniform iadd, fadd, and ixor reduction operations")
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38867>
This commit is contained in:
parent
a265cdaa18
commit
e11d7f06d0
1 changed files with 2 additions and 1 deletions
|
|
@ -47,7 +47,8 @@ opt_uniform_subgroup_filter(const nir_instr *instr, const void *_state)
|
|||
case nir_op_iadd:
|
||||
case nir_op_fadd:
|
||||
case nir_op_ixor:
|
||||
return true;
|
||||
return !nir_intrinsic_has_cluster_size(intrin) ||
|
||||
nir_intrinsic_cluster_size(intrin) == 0;
|
||||
|
||||
case nir_op_imin:
|
||||
case nir_op_umin:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue