From: Jason Ekstrand Date: Tue, 19 Aug 2014 23:11:36 +0000 (-0700) Subject: i965/fs: fix a comment in compact_virtual_grfs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0089d025aa7f7497b3097c5067b589410cd40fbc;p=mesa.git i965/fs: fix a comment in compact_virtual_grfs Signed-off-by: Jason Ekstrand Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 50de9f413b8..e25b9abc3e3 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -1776,10 +1776,10 @@ fs_visitor::compact_virtual_grfs() if (unlikely(INTEL_DEBUG & DEBUG_OPTIMIZER)) return; - /* Mark which virtual GRFs are used, and count how many. */ int remap_table[this->virtual_grf_count]; memset(remap_table, -1, sizeof(remap_table)); + /* Mark which virtual GRFs are used. */ foreach_block_and_inst(block, const fs_inst, inst, cfg) { if (inst->dst.file == GRF) remap_table[inst->dst.reg] = 0;