Module: Mesa
Branch: master
Commit: 5f0b49e7a956291842c7ad3a597570cf0db50cb6
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=5f0b49e7a956291842c7ad3a597570cf0db50cb6

Author: Michal Krol <[email protected]>
Date:   Thu Sep 17 16:04:35 2009 +0100

tgsi: Scan input interpolators, too.

---

 src/gallium/auxiliary/tgsi/tgsi_scan.c |    1 +
 src/gallium/auxiliary/tgsi/tgsi_scan.h |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c 
b/src/gallium/auxiliary/tgsi/tgsi_scan.c
index c535788..0db4481 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c
@@ -132,6 +132,7 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
                if (file == TGSI_FILE_INPUT) {
                   info->input_semantic_name[reg] = 
(ubyte)fulldecl->Semantic.SemanticName;
                   info->input_semantic_index[reg] = 
(ubyte)fulldecl->Semantic.SemanticIndex;
+                  info->input_interpolate[reg] = 
(ubyte)fulldecl->Declaration.Interpolate;
                   info->num_inputs++;
                }
                else if (file == TGSI_FILE_OUTPUT) {
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h 
b/src/gallium/auxiliary/tgsi/tgsi_scan.h
index 2c1a75b..8a7ee0c 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.h
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h
@@ -45,6 +45,7 @@ struct tgsi_shader_info
    ubyte num_outputs;
    ubyte input_semantic_name[PIPE_MAX_SHADER_INPUTS]; /**< TGSI_SEMANTIC_x */
    ubyte input_semantic_index[PIPE_MAX_SHADER_INPUTS];
+   ubyte input_interpolate[PIPE_MAX_SHADER_INPUTS];
    ubyte output_semantic_name[PIPE_MAX_SHADER_OUTPUTS]; /**< TGSI_SEMANTIC_x */
    ubyte output_semantic_index[PIPE_MAX_SHADER_OUTPUTS];
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to