Module: Mesa Branch: main Commit: 33484464221839c2210d7aeda319d408a926e748 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=33484464221839c2210d7aeda319d408a926e748
Author: Faith Ekstrand <[email protected]> Date: Fri Dec 1 11:42:14 2023 -0600 nak: Simplify Src::is_predicate() Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26463> --- src/nouveau/compiler/nak_ir.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/nouveau/compiler/nak_ir.rs b/src/nouveau/compiler/nak_ir.rs index c4a2951083f..e20f043fc61 100644 --- a/src/nouveau/compiler/nak_ir.rs +++ b/src/nouveau/compiler/nak_ir.rs @@ -1084,12 +1084,7 @@ impl Src { } pub fn is_predicate(&self) -> bool { - match self.src_ref { - SrcRef::Zero | SrcRef::Imm32(_) | SrcRef::CBuf(_) => false, - SrcRef::True | SrcRef::False => true, - SrcRef::SSA(ssa) => ssa.is_predicate(), - SrcRef::Reg(reg) => reg.is_predicate(), - } + self.src_ref.is_predicate() } pub fn is_zero(&self) -> bool {
