[Mesa-dev] [PATCH 04/12] i965/fs: fix a comment in compact_virtual_grfs

Jason Ekstrand jason at jlekstrand.net
Fri Sep 19 13:10:22 PDT 2014


Signed-off-by: Jason Ekstrand <jason.ekstrand at intel.com>
---
 src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 10a3a20..af8c087 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -1758,10 +1758,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_in_list(const fs_inst, inst, &instructions) {
       if (inst->dst.file == GRF)
          remap_table[inst->dst.reg] = 0;
-- 
2.1.0



More information about the mesa-dev mailing list