mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
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:
parent
c1614913d9
commit
84a7e94f31
1 changed files with 8 additions and 2 deletions
|
|
@ -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+"),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue