summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-02-28 21:25:54 +0900
committerJosé Fonseca <[email protected]>2008-02-28 21:25:54 +0900
commite280bd50cc46ddbf5ac7fbaafc934d1048d77ba2 (patch)
tree983655c59ea9b94d79d308d13f4ed2f494394a7d /src/gallium/auxiliary
parent626b8d177b5fdacfac70c09216c02b1c833b91ea (diff)
gallium: Fix MSVC warnings.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/tgsi/util/tgsi_scan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/tgsi/util/tgsi_scan.c b/src/gallium/auxiliary/tgsi/util/tgsi_scan.c
index cf6de1e82f3..ea4a72967d6 100644
--- a/src/gallium/auxiliary/tgsi/util/tgsi_scan.c
+++ b/src/gallium/auxiliary/tgsi/util/tgsi_scan.c
@@ -104,17 +104,17 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
if (file == TGSI_FILE_INPUT) {
info->input_semantic_name[info->num_inputs]
- = fulldecl->Semantic.SemanticName;
+ = (ubyte)fulldecl->Semantic.SemanticName;
info->input_semantic_index[info->num_inputs]
- = fulldecl->Semantic.SemanticIndex;
+ = (ubyte)fulldecl->Semantic.SemanticIndex;
info->num_inputs++;
}
if (file == TGSI_FILE_OUTPUT) {
info->output_semantic_name[info->num_outputs]
- = fulldecl->Semantic.SemanticName;
+ = (ubyte)fulldecl->Semantic.SemanticName;
info->output_semantic_index[info->num_outputs]
- = fulldecl->Semantic.SemanticIndex;
+ = (ubyte)fulldecl->Semantic.SemanticIndex;
info->num_outputs++;
}