mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 13:23:02 +00:00
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:
+2
-3
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user