aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-08-19 16:11:36 -0700
committerJason Ekstrand <[email protected]>2014-09-30 10:29:13 -0700
commit0089d025aa7f7497b3097c5067b589410cd40fbc (patch)
tree8300143cfa570b738d7206e1f997fbc54b76f712 /src/mesa
parent3dc3fccb7586e6198c50114d6245017fc9badde8 (diff)
i965/fs: fix a comment in compact_virtual_grfs
Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp2
1 files changed, 1 insertions, 1 deletions
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;