[Mesa-dev] [PATCH 15/24] i965/fs: Estimate number of registers written correctly in opt_register_renaming.
Francisco Jerez
currojerez at riseup.net
Fri May 27 03:46:20 UTC 2016
The current estimate is incorrect for non-32b types.
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 844b4f0..31ebbe3 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2728,12 +2728,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;
}
--
2.7.3
More information about the mesa-dev
mailing list