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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user