mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 07:40:38 +02:00
nak/ra: Move an assert
We're allocating one register file at a time and our invariants are per-file so we don't want to check the components assumption until we've checked that it uses the active file. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29591>
This commit is contained in:
parent
e0b051da39
commit
d3e9373a90
1 changed files with 1 additions and 1 deletions
|
|
@ -629,8 +629,8 @@ fn instr_alloc_scalar_dsts_file(
|
|||
) {
|
||||
for dst in instr.dsts_mut() {
|
||||
if let Dst::SSA(ssa) = dst {
|
||||
assert!(ssa.comps() == 1);
|
||||
if ssa.file() == ra.file() {
|
||||
assert!(ssa.comps() == 1);
|
||||
let reg = ra.alloc_scalar(ip, sum, ssa[0]);
|
||||
*dst = RegRef::new(ra.file(), reg, 1).into();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue