assembler: Use brw_reg in the source operand

Last refactoring step in transition to struct brw_reg.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
Damien Lespiau
2013-01-23 22:29:23 +00:00
parent c13613ea2d
commit 9d5a87a096
2 changed files with 269 additions and 277 deletions
+2 -12
View File
@@ -86,19 +86,9 @@ struct regtype {
* parser.
*/
struct src_operand {
int reg_file, reg_nr, subreg_nr, reg_type;
int abs, negate;
int horiz_stride, width, vert_stride;
struct brw_reg reg;
int default_region;
int address_mode; /* 0 if direct, 1 if register-indirect */
int indirect_offset; /* XXX */
unsigned swizzle: 8;
uint32_t imm32; /* set if reg_file == BRW_IMMEDIATE_VALUE or it is expressing a branch offset */
uint32_t imm32; /* set if reg.file == BRW_IMMEDIATE_VALUE or it is expressing a branch offset */
char *reloc_target; /* bspec: branching instructions JIP and UIP are source operands */
} src_operand;