diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-02-26 10:12:17 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-02-26 10:12:17 -0700 |
commit | 1410b7bb509ef37c41043b173bc1047257483af0 (patch) | |
tree | a18077188d7d9d4d7421f7863df5d0d7c8c119eb /src/gallium/auxiliary/tgsi/util/tgsi_scan.h | |
parent | ecd50ef58b034e604ff6b2fedbb0815953e510ea (diff) |
gallium: collect more shader info in tgsi_scan_shader()
Now getting input/output semantic info so we can eventually remove those
fields from pipe_shader_state.
Diffstat (limited to 'src/gallium/auxiliary/tgsi/util/tgsi_scan.h')
-rw-r--r-- | src/gallium/auxiliary/tgsi/util/tgsi_scan.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/util/tgsi_scan.h b/src/gallium/auxiliary/tgsi/util/tgsi_scan.h index 757446437c..dc6dfd6d0b 100644 --- a/src/gallium/auxiliary/tgsi/util/tgsi_scan.h +++ b/src/gallium/auxiliary/tgsi/util/tgsi_scan.h @@ -30,6 +30,7 @@ #include "pipe/p_util.h" +#include "pipe/p_state.h" #include "pipe/p_shader_tokens.h" @@ -38,6 +39,16 @@ */ struct tgsi_shader_info { + uint num_tokens; + + /* XXX eventually remove the corresponding fields from pipe_shader_state: */ + ubyte num_inputs; + ubyte num_outputs; + ubyte input_semantic_name[PIPE_MAX_SHADER_INPUTS]; /**< TGSI_SEMANTIC_x */ + ubyte input_semantic_index[PIPE_MAX_SHADER_INPUTS]; + ubyte output_semantic_name[PIPE_MAX_SHADER_OUTPUTS]; /**< TGSI_SEMANTIC_x */ + ubyte output_semantic_index[PIPE_MAX_SHADER_OUTPUTS]; + uint file_mask[TGSI_FILE_COUNT]; /**< bitmask of declared registers */ uint file_count[TGSI_FILE_COUNT]; /**< number of declared registers */ |