From: Rob Clark Date: Tue, 17 Dec 2019 17:09:16 +0000 (-0800) Subject: freedreno/ir3: shuffle a few ir3_register fields X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f0b792ea0602dd344b8a2dce4ab582b167f6fd35;p=mesa.git freedreno/ir3: shuffle a few ir3_register fields It makes life easier for postsched to always be able to rely on wrmask. Signed-off-by: Rob Clark Part-of: --- diff --git a/src/freedreno/ir3/ir3.h b/src/freedreno/ir3/ir3.h index 461ff633205..a8ce9ea12a6 100644 --- a/src/freedreno/ir3/ir3.h +++ b/src/freedreno/ir3/ir3.h @@ -102,6 +102,22 @@ struct ir3_register { } flags; + /* used for cat5 instructions, but also for internal/IR level + * tracking of what registers are read/written by an instruction. + * wrmask may be a bad name since it is used to represent both + * src and dst that touch multiple adjacent registers. + */ + unsigned wrmask : 16; /* up to vec16 */ + + /* for relative addressing, 32bits for array size is too small, + * but otoh we don't need to deal with disjoint sets, so instead + * use a simple size field (number of scalar components). + * + * Note the size field isn't important for relative const (since + * we don't have to do register allocation for constants). + */ + unsigned size : 15; + bool merged : 1; /* half-regs conflict with full regs (ie >= a6xx) */ /* normal registers: @@ -129,20 +145,6 @@ struct ir3_register { * back to a previous instruction that we depend on). */ struct ir3_instruction *instr; - - union { - /* used for cat5 instructions, but also for internal/IR level - * tracking of what registers are read/written by an instruction. - * wrmask may be a bad name since it is used to represent both - * src and dst that touch multiple adjacent registers. - */ - unsigned wrmask; - /* for relative addressing, 32bits for array size is too small, - * but otoh we don't need to deal with disjoint sets, so instead - * use a simple size field (number of scalar components). - */ - unsigned size; - }; }; /*