mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
i965/fs: Estimate number of registers written correctly in opt_register_renaming.
The current estimate is incorrect for non-32b types. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
437e65f9d9
commit
8476233ae2
1 changed files with 2 additions and 2 deletions
|
|
@ -2710,12 +2710,12 @@ fs_visitor::opt_register_renaming()
|
|||
|
||||
if (depth == 0 &&
|
||||
inst->dst.file == VGRF &&
|
||||
alloc.sizes[inst->dst.nr] == inst->exec_size / 8 &&
|
||||
alloc.sizes[inst->dst.nr] == inst->regs_written &&
|
||||
!inst->is_partial_write()) {
|
||||
if (remap[dst] == -1) {
|
||||
remap[dst] = dst;
|
||||
} else {
|
||||
remap[dst] = alloc.allocate(inst->exec_size / 8);
|
||||
remap[dst] = alloc.allocate(inst->regs_written);
|
||||
inst->dst.nr = remap[dst];
|
||||
progress = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue