mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-02 13:28:27 +02:00
nak: Allow SSA value 0 again
We no longer need the index to be non-zero because we add 17. Reviewed-by: Mel Henning <mhenning@darkrefraction.com> Acked-by: Karol Herbst <kherbst@redhat.com>
This commit is contained in:
parent
23ea5bb09b
commit
2904777ccd
1 changed files with 2 additions and 1 deletions
|
|
@ -306,8 +306,9 @@ impl SSAValueAllocator {
|
||||||
|
|
||||||
/// Allocates an SSA value.
|
/// Allocates an SSA value.
|
||||||
pub fn alloc(&mut self, file: RegFile) -> SSAValue {
|
pub fn alloc(&mut self, file: RegFile) -> SSAValue {
|
||||||
|
let idx = self.count;
|
||||||
self.count += 1;
|
self.count += 1;
|
||||||
SSAValue::new(file, self.count)
|
SSAValue::new(file, idx)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Allocates multiple SSA values and returns them as an SSA reference.
|
/// Allocates multiple SSA values and returns them as an SSA reference.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue