aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/gen8_generator.cpp
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-05-08 17:27:31 -0700
committerMatt Turner <[email protected]>2014-05-15 15:45:40 -0700
commit8a6f7dfc1943f41db36bb28fb753a40eeefaf8d9 (patch)
tree9df0c7f0a6ee4bed9360555ea0cf50a58b2fc415 /src/mesa/drivers/dri/i965/gen8_generator.cpp
parent1ef52d6ab3f298af14088354682ee861573e5284 (diff)
i965/gen8: Make disassembly function match brw's signature.
gen8_dump_compile will be called indirectly by code common used by generations before and after the gen8 instruction format change. Acked-by: Eric Anholt <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen8_generator.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/gen8_generator.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/gen8_generator.cpp b/src/mesa/drivers/dri/i965/gen8_generator.cpp
index faca9c08835..774df183ff5 100644
--- a/src/mesa/drivers/dri/i965/gen8_generator.cpp
+++ b/src/mesa/drivers/dri/i965/gen8_generator.cpp
@@ -620,13 +620,14 @@ gen8_generator::HALT()
return inst;
}
-void
-gen8_generator::disassemble(FILE *out, int start, int end)
+extern "C" void
+gen8_dump_compile(struct brw_context *brw, void *assembly,
+ int start,int end, FILE *out)
{
bool dump_hex = false;
for (int offset = start; offset < end; offset += 16) {
- gen8_instruction *inst = &store[offset / 16];
+ gen8_instruction *inst = &((gen8_instruction *)assembly)[offset / 16];
fprintf(stderr, "0x%08x: ", offset);
if (dump_hex) {