assembler: Use subreg_nr to store the address register subreg

Another step towards using struct brw_reg for source and destination
operands.

Instead of having a separate field to store the sub register number of
the address register in indirect access mode, we can reuse the subreg_nr
field that was only used for direct access so far.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
Damien Lespiau
2013-01-21 14:04:59 +00:00
parent 02019d4d55
commit 8322802acb
2 changed files with 11 additions and 13 deletions
-2
View File
@@ -97,7 +97,6 @@ struct dst_operand {
int address_mode; /* 0 if direct, 1 if register-indirect */
/* Indirect addressing */
int address_subreg_nr;
int indirect_offset;
};
@@ -114,7 +113,6 @@ struct src_operand {
int default_region;
int address_mode; /* 0 if direct, 1 if register-indirect */
int address_subreg_nr;
int indirect_offset; /* XXX */
int swizzle_set;