[Mesa-dev] [PATCH] tgsi: fix Semantic.Name assignment in tgsi_transform_input_decl()

Charmaine Lee charmainel at vmware.com
Tue Sep 30 10:51:06 PDT 2014


Reviewed-by: Charmaine Lee <charmainel at vmware.com>
________________________________________
From: mesa-dev <mesa-dev-bounces at lists.freedesktop.org> on behalf of Brian Paul <brianp at vmware.com>
Sent: Tuesday, September 30, 2014 9:31 AM
To: mesa-dev at lists.freedesktop.org
Subject: [Mesa-dev] [PATCH] tgsi: fix Semantic.Name assignment in       tgsi_transform_input_decl()

Assign the sem_name parameter, not TGSI_SEMANTIC_GENERIC.
Fixes polygon stipple regression.
---
 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;
--
1.7.10.4

_______________________________________________
mesa-dev mailing list
mesa-dev at lists.freedesktop.org
https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/mesa-dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=iVNYIcCaC9TDvyNBQU%2F5q5NVsC01tSgJb3oX27T14ck%3D%0A&m=kdSMDzhhfBB7r7%2BtTT8ZJLsLWFgmZ6ruSleqmdygkOs%3D%0A&s=b935ac45947463251948f10239ee0f3612e74bc5601c500e5141ffdec63d0f32


More information about the mesa-dev mailing list