i965/fs: fix a comment in compact_virtual_grfs

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Jason Ekstrand 2014-08-19 16:11:36 -07:00
parent 3dc3fccb75
commit 0089d025aa

View file

@ -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;