diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2013-01-23 20:33:00 +0000 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2013-03-04 15:54:38 +0000 |
commit | 0375073f0529f894d89d3de2f67799ce9312fc16 (patch) | |
tree | eb3fca3cf8726f95bcb8e1f33747bc6523249d54 /assembler/gen4asm.h | |
parent | 801b4eb1b3ea52f81587a30f3cdcff8affe9ab72 (diff) |
assembler: Replace struct dst_operand by struct brw_reg
One more step on the road to replacing all register-like structures by
struct brw_reg.
Two things in this commit are worth noting:
* As we are using more and more brw_reg, a lot of the field-by-field
assignments can be replaced by 1 assignment which results is a
reduction of code
* As the destination horizontal stride is now stored on 2 bits in
brw_reg, it's not possible to defer the handling of DEFAULT_DSTREGION
(aka (int)-1) when setting the destination operand. It has to be done
when parsing the region and resolve_dst_region() is a helper for that
task.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'assembler/gen4asm.h')
-rw-r--r-- | assembler/gen4asm.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/assembler/gen4asm.h b/assembler/gen4asm.h index 8a3e95be..fe09d527 100644 --- a/assembler/gen4asm.h +++ b/assembler/gen4asm.h @@ -82,22 +82,6 @@ struct regtype { }; /** - * This structure is the internal representation of destination operands in the - * parser. - */ -struct dst_operand { - int reg_file, reg_nr, subreg_nr, reg_type; - - int writemask; - - int horiz_stride; - int address_mode; /* 0 if direct, 1 if register-indirect */ - - /* Indirect addressing */ - int indirect_offset; -}; - -/** * This structure is the internal representation of source operands in the * parser. */ |