nak/sm50: legalize: display instruction on panic
This makes it faster to know what is broken from logs Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26723>
This commit is contained in:
committed by
Marge Bot
parent
c1614913d9
commit
84a7e94f31
@@ -374,10 +374,16 @@ fn legalize_sm50_instr(
|
||||
| SrcType::F64
|
||||
| SrcType::I32
|
||||
| SrcType::B32 => {
|
||||
panic!("ALU srcs must be legalized explicitly");
|
||||
panic!(
|
||||
"({}): ALU srcs must be legalized explicitly",
|
||||
&mut instr.op
|
||||
);
|
||||
}
|
||||
SrcType::Pred => {
|
||||
panic!("Predicates must be legalized explicitly");
|
||||
panic!(
|
||||
"({}): Predicates must be legalized explicitly",
|
||||
&mut instr.op
|
||||
);
|
||||
}
|
||||
SrcType::Bar => panic!("Barrier regs are Volta+"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user