From 0375073f0529f894d89d3de2f67799ce9312fc16 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Wed, 23 Jan 2013 20:33:00 +0000 Subject: 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 --- assembler/gen4asm.h | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'assembler/gen4asm.h') diff --git a/assembler/gen4asm.h b/assembler/gen4asm.h index 8a3e95be..fe09d527 100644 --- a/assembler/gen4asm.h +++ b/assembler/gen4asm.h @@ -81,22 +81,6 @@ struct regtype { int is_default; }; -/** - * 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. -- cgit v1.2.3