i965/fs: fix a comment in compact_virtual_grfs
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 19 Aug 2014 23:11:36 +0000 (16:11 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Sep 2014 17:29:13 +0000 (10:29 -0700)
Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp

index 50de9f413b8c9d15b4eefb1a7ac503bf6b8a7957..e25b9abc3e3a8ca8f8bb6c4052628c478d233c60 100644 (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;