From 2dac0a19a438d27b03e901cc70ef0a9a27039154 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 29 Aug 2006 15:29:31 -0700 Subject: Add support for destination writemasks. This involved changing dest operands to have their own structure like src operands, as the destination writemask (which is align16-only) shares space with register numbers in align1 mode. --- assembler/gen4asm.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'assembler/gen4asm.h') diff --git a/assembler/gen4asm.h b/assembler/gen4asm.h index eb06e02f..2ac54b9c 100644 --- a/assembler/gen4asm.h +++ b/assembler/gen4asm.h @@ -38,6 +38,21 @@ typedef float GLfloat; void yyerror (char *msg); +/** + * 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_set; + int writemask; + + int horiz_stride; + int address_mode; /* 0 if direct, 1 if register-indirect */ + int indirect_offset; +}; + /** * This structure is the internal representation of source operands in the * parser. -- cgit v1.2.3