From 16caeff2a5cc1237d30de9487b48b1cd775d9ae1 Mon Sep 17 00:00:00 2001 From: Christian König Date: Wed, 13 Mar 2013 14:58:15 +0100 Subject: tgsi: add ArrayID to declarations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remember which declarations are declared as "arrays" and so can be indirectly addressed. ArrayIDs start at 1, cause for compatibility reasons zero is treaded as no array present. Signed-off-by: Christian König --- src/gallium/include/pipe/p_shader_tokens.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gallium/include') diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h index 81e4a6b52ce..eac75e69e5d 100644 --- a/src/gallium/include/pipe/p_shader_tokens.h +++ b/src/gallium/include/pipe/p_shader_tokens.h @@ -119,7 +119,8 @@ struct tgsi_declaration unsigned Interpolate : 1; /**< any interpolation info? */ unsigned Invariant : 1; /**< invariant optimization? */ unsigned Local : 1; /**< optimize as subroutine local variable? */ - unsigned Padding : 7; + unsigned Array : 1; /**< extra array info? */ + unsigned Padding : 6; }; struct tgsi_declaration_range @@ -185,6 +186,11 @@ struct tgsi_declaration_sampler_view { unsigned ReturnTypeW : 6; /**< one of enum pipe_type */ }; +struct tgsi_declaration_array { + unsigned ArrayID : 10; + unsigned Padding : 22; +}; + /* * Special resources that don't need to be declared. They map to the * GLOBAL/LOCAL/PRIVATE/INPUT compute memory spaces. -- cgit v1.2.3