From 21190fbd56ec2f12dc5a1bf1d9fc32d507e8f0a3 Mon Sep 17 00:00:00 2001 From: Christian König Date: Thu, 7 Mar 2013 15:02:31 +0100 Subject: tgsi: use separate structure for indirect address v2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To further improve the optimization of source and destination indirect addressing we need the ability to store a reference to the declaration of the addressed operands. Since most of the fields in tgsi_src_register doesn't apply for an indirect addressing operand replace it with a separate tgsi_ind_register structure and so make room for extra information. v2: rename Declaration to ArrayID, put the ArrayID into () instead of [] Signed-off-by: Christian König --- src/gallium/auxiliary/tgsi/tgsi_parse.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gallium/auxiliary/tgsi/tgsi_parse.h') diff --git a/src/gallium/auxiliary/tgsi/tgsi_parse.h b/src/gallium/auxiliary/tgsi/tgsi_parse.h index ae40f13affc..808f31bc387 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_parse.h +++ b/src/gallium/auxiliary/tgsi/tgsi_parse.h @@ -44,17 +44,17 @@ struct tgsi_full_header struct tgsi_full_dst_register { struct tgsi_dst_register Register; - struct tgsi_src_register Indirect; + struct tgsi_ind_register Indirect; struct tgsi_dimension Dimension; - struct tgsi_src_register DimIndirect; + struct tgsi_ind_register DimIndirect; }; struct tgsi_full_src_register { struct tgsi_src_register Register; - struct tgsi_src_register Indirect; + struct tgsi_ind_register Indirect; struct tgsi_dimension Dimension; - struct tgsi_src_register DimIndirect; + struct tgsi_ind_register DimIndirect; }; struct tgsi_full_declaration -- cgit v1.2.3