summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index bf95b57f91a..3aee82226e0 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -1749,6 +1749,20 @@ fs_visitor::compact_virtual_grfs()
inst->src[i].reg = remap_table[inst->src[i].reg];
}
}
+
+ /* Patch all the references to delta_x/delta_y, since they're used in
+ * register allocation.
+ */
+ for (unsigned i = 0; i < ARRAY_SIZE(delta_x); i++) {
+ if (delta_x[i].file == GRF && remap_table[delta_x[i].reg] != -1) {
+ delta_x[i].reg = remap_table[delta_x[i].reg];
+ }
+ }
+ for (unsigned i = 0; i < ARRAY_SIZE(delta_y); i++) {
+ if (delta_y[i].file == GRF && remap_table[delta_y[i].reg] != -1) {
+ delta_y[i].reg = remap_table[delta_y[i].reg];
+ }
+ }
}
/*