diff options
author | Rhys Perry <pendingchaos02@gmail.com> | 2021-06-10 11:23:56 +0100 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-06-14 16:48:38 +0000 |
commit | ecc0353af7a96441b34e6233cd3760f09b38d881 (patch) | |
tree | 5025eb1f43c7e9e396f3e90da693385044cedc1c /src/amd/compiler | |
parent | 16d5939ff5e97bf17547164f6e44a36d14aa14eb (diff) |
aco/lower_phis: fix undef_operands initialization with >32 predecessors
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11300>
Diffstat (limited to 'src/amd/compiler')
-rw-r--r-- | src/amd/compiler/aco_lower_phis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/compiler/aco_lower_phis.cpp b/src/amd/compiler/aco_lower_phis.cpp index 376ad85263a..313770fd29c 100644 --- a/src/amd/compiler/aco_lower_phis.cpp +++ b/src/amd/compiler/aco_lower_phis.cpp @@ -185,7 +185,7 @@ void lower_divergent_bool_phi(Program *program, ssa_state *state, Block *block, uint64_t undef_operands = 0; for (unsigned i = 0; i < phi->operands.size(); i++) - undef_operands |= phi->operands[i].isUndefined() << i; + undef_operands |= (uint64_t)phi->operands[i].isUndefined() << i; if (state->needs_init || undef_operands != state->cur_undef_operands || block->logical_preds.size() > 64) { |