From: Francisco Jerez Date: Tue, 26 Apr 2016 00:09:00 +0000 (-0700) Subject: i965/fs: Estimate number of registers written correctly in opt_register_renaming. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8476233ae22c77ca26d8109f0f0d6c74457969f8;p=mesa.git 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 --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 842af0172df..b64ce4a0c17 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -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; }