Mesa (master): tgsi: fix Semantic.Name assignment in tgsi_transform_input_decl()
Brian Paul
brianp at kemper.freedesktop.org
Tue Sep 30 18:10:24 UTC 2014
Module: Mesa
Branch: master
Commit: b12899d752ef04ab6ac55a5bee10532b5a4ad6ce
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b12899d752ef04ab6ac55a5bee10532b5a4ad6ce
Author: Brian Paul <brianp at vmware.com>
Date: Tue Sep 30 10:28:34 2014 -0600
tgsi: fix Semantic.Name assignment in tgsi_transform_input_decl()
Assign the sem_name parameter, not TGSI_SEMANTIC_GENERIC.
Fixes polygon stipple regression.
Reviewed-by: Charmaine Lee <charmainel at vmware.com>
---
src/gallium/auxiliary/tgsi/tgsi_transform.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/tgsi/tgsi_transform.h b/src/gallium/auxiliary/tgsi/tgsi_transform.h
index bfcdd56..921aa90 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_transform.h
+++ b/src/gallium/auxiliary/tgsi/tgsi_transform.h
@@ -120,7 +120,7 @@ tgsi_transform_input_decl(struct tgsi_transform_context *ctx,
decl.Declaration.File = TGSI_FILE_INPUT;
decl.Declaration.Interpolate = 1;
decl.Declaration.Semantic = 1;
- decl.Semantic.Name = TGSI_SEMANTIC_GENERIC;
+ decl.Semantic.Name = sem_name;
decl.Semantic.Index = sem_index;
decl.Range.First =
decl.Range.Last = index;
More information about the mesa-commit
mailing list