diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-01-30 17:09:17 +0000 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2013-03-04 15:54:41 +0000 |
commit | 9b78f74f23aee082fe6e2e5686b6325b1f942288 (patch) | |
tree | c0698f0a9555a266c9ce38eebbc0444eccd0fec7 /assembler/gen4asm.h | |
parent | f6e9052e8d62606c3a89c2e6f138a66a003854ae (diff) |
assembler: Move struct relocation out of relocatable instructions
Now that all instructions (relocatable or not) are struct
brw_program_instructions, this means we can move the relocation specific
information out the "relocatable instruction" structure. This will allow
us to share the relocation information between different types of
instructions.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'assembler/gen4asm.h')
-rw-r--r-- | assembler/gen4asm.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/assembler/gen4asm.h b/assembler/gen4asm.h index 0781eaf4..5673e2c9 100644 --- a/assembler/gen4asm.h +++ b/assembler/gen4asm.h @@ -126,8 +126,7 @@ struct label_instruction { char *name; }; -struct relocatable_instruction { - struct brw_instruction gen; +struct relocation { char *first_reloc_target, *second_reloc_target; // JIP and UIP respectively GLint first_reloc_offset, second_reloc_offset; // in number of instructions }; @@ -141,9 +140,9 @@ struct brw_program_instruction { unsigned inst_offset; union { struct brw_instruction gen; - struct relocatable_instruction reloc; struct label_instruction label; } insn; + struct relocation reloc; struct brw_program_instruction *next; }; |