summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_eu_compact.c
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2014-06-07 21:15:59 -0700
committerKenneth Graunke <kenneth@whitecape.org>2014-06-26 11:44:22 -0700
commit05040d6f8fcfdc4fb070c7ff24d3990ffede77f1 (patch)
tree6494b715120bf22ee7f12223e2f11c66c4ef64ef /src/mesa/drivers/dri/i965/brw_eu_compact.c
parent890287b96bfa2cae9bc3b477ab1eac2062f663ba (diff)
downloadexternal_mesa3d-05040d6f8fcfdc4fb070c7ff24d3990ffede77f1.zip
external_mesa3d-05040d6f8fcfdc4fb070c7ff24d3990ffede77f1.tar.gz
external_mesa3d-05040d6f8fcfdc4fb070c7ff24d3990ffede77f1.tar.bz2
i965: Pass brw into next_offset().
The new brw_inst API is going to require a brw pointer in order to access fields (so it can do generation checks). Plumb it in now. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_eu_compact.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_eu_compact.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu_compact.c b/src/mesa/drivers/dri/i965/brw_eu_compact.c
index 0560367..0ae3f2d 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_compact.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_compact.c
@@ -808,7 +808,7 @@ brw_compact_instructions(struct brw_compile *p, int start_offset,
break;
}
- offset = next_offset(store, offset);
+ offset = next_offset(brw, store, offset);
}
/* p->nr_insn is counting the number of uncompacted instructions still, so
@@ -831,12 +831,12 @@ brw_compact_instructions(struct brw_compile *p, int start_offset,
while (start_offset + old_ip[offset / 8] * 8 != annotation[i].offset) {
assert(start_offset + old_ip[offset / 8] * 8 <
annotation[i].offset);
- offset = next_offset(store, offset);
+ offset = next_offset(brw, store, offset);
}
annotation[i].offset = start_offset + offset;
- offset = next_offset(store, offset);
+ offset = next_offset(brw, store, offset);
}
annotation[num_annotations].offset = p->next_insn_offset;