panfrost: fix condition in bi_nir_is_replicated

The original implementation of this returned false when the src was
replicated, and true when it was not.

Signed-off-by: Benjamin Lee <benjamin.lee@collabora.com>
Fixes: 21bdee7bcc ("pan/bi: Switch to lower_bool_to_bitsize")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Rebecca Mckeever <rebecca.mckeever@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33637>
This commit is contained in:
Benjamin Lee
2025-02-21 12:15:33 -08:00
committed by Marge Bot
parent fb9583cd53
commit 810351ad03
+1 -1
View File
@@ -2549,7 +2549,7 @@ static bool
bi_nir_is_replicated(nir_alu_src *src)
{
for (unsigned i = 1; i < nir_src_num_components(src->src); ++i) {
if (src->swizzle[0] == src->swizzle[i])
if (src->swizzle[0] != src->swizzle[i])
return false;
}