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>
(cherry picked from commit 810351ad03)
This commit is contained in:
Benjamin Lee 2025-02-21 12:15:33 -08:00 committed by Eric Engestrom
parent 91c473e49a
commit f3ee6ed43c
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@
"description": "panfrost: fix condition in bi_nir_is_replicated",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "21bdee7bccd2b9b4b4f3b8b2eefce0466fc4b621",
"notes": null

View file

@ -2475,7 +2475,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;
}