aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-05-19 10:17:51 -0700
committerMatt Turner <[email protected]>2014-05-24 23:03:23 -0700
commita35b9cb625495e51a42b56cd1d8d2cb019abe243 (patch)
tree314312b0f120e5faa09c5c5058b5bea1d6aec34d /src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
parent59f4e80d5330299b390c8d92a7df7fe4494704cd (diff)
i965: Add annotation data structure and support code.
Will be used to print disassembly after jump targets are set and instructions are compacted, while still retaining higher-level IR annotations and basic block information. An array of 'struct annotation' will live along side the generated assembly. The generators will populate the array with their IR annotations, and basic block pointers if the instructions began or ended a basic block pointer. We'll then update the instruction offset when we compact instructions and then using the annotations print the disassembly. Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4_generator.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_generator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp b/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
index e4bc6823ec9..a91bfe7948f 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
@@ -1363,7 +1363,7 @@ vec4_generator::generate_assembly(exec_list *instructions,
{
brw_set_access_mode(p, BRW_ALIGN_16);
generate_code(instructions);
- brw_compact_instructions(p, 0);
+ brw_compact_instructions(p, 0, 0, NULL);
return brw_get_program(p, assembly_size);
}