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>
This commit is contained in:
Damien Lespiau
2013-01-30 17:09:17 +00:00
parent f6e9052e8d
commit 9b78f74f23
3 changed files with 43 additions and 42 deletions
+2 -2
View File
@@ -437,8 +437,8 @@ int main(int argc, char **argv)
}
for (entry = compiled_program.first; entry; entry = entry->next) {
struct relocatable_instruction *reloc = &entry->insn.reloc;
struct brw_instruction *inst = &reloc->gen;
struct relocation *reloc = &entry->reloc;
struct brw_instruction *inst = &entry->insn.gen;
if (!is_relocatable(entry))
continue;