mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 08:10:09 +01:00
nir/opt_vectorize: fix srcs_equal() with two different non-const
To match hash_alu_src(), this should return false if both are different non-const ssa defs. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8391>
This commit is contained in:
parent
bdf316ae7b
commit
b634d7f3e2
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ srcs_equal(const nir_src *src1, const nir_src *src2)
|
|||
assert(src2->is_ssa);
|
||||
|
||||
return src1->ssa == src2->ssa ||
|
||||
nir_src_is_const(*src1) == nir_src_is_const(*src2);
|
||||
(nir_src_is_const(*src1) && nir_src_is_const(*src2));
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue