nak/opt_copy_prop: Fix IAdd3 overflow check

Cc: mesa-stable
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Faith Ekstrand <None>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33420>
(cherry picked from commit a5b267980a)
This commit is contained in:
Mel Henning 2025-02-05 18:19:02 -05:00 committed by Eric Engestrom
parent 6378d22e68
commit 2583fde8bc
2 changed files with 2 additions and 2 deletions

View file

@ -194,7 +194,7 @@
"description": "nak/opt_copy_prop: Fix IAdd3 overflow check",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -659,7 +659,7 @@ impl CopyPropPass {
use SrcType::{ALU, I32};
let [src0, src1, src2] = &mut add.srcs;
if add.overflow[0].is_none()
&& add.overflow[0].is_none()
&& add.overflow[1].is_none()
{
self.prop_to_src(I32, &cbuf_rule, src0);
self.prop_to_src(I32, &cbuf_rule, src1);