mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
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 commit810351ad03)
This commit is contained in:
parent
91c473e49a
commit
f3ee6ed43c
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue