From 8acaf862dfeac62550514b0e46f5aa6212b08992 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Fri, 15 Mar 2013 22:11:31 +0100 Subject: gallium: add TGSI_SEMANTIC_TEXCOORD,PCOORD v3 This makes it possible to identify gl_TexCoord and gl_PointCoord for drivers where sprite coordinate replacement is restricted. The new PIPE_CAP_TGSI_TEXCOORD decides whether these varyings should be hidden behind the GENERIC semantic or not. With this patch only nvc0 and nv30 will request that they be used. v2: introduce a CAP so other drivers don't have to bother with the new semantic v3: adapt to introduction gl_varying_slot enum --- src/gallium/auxiliary/tgsi/tgsi_strings.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gallium/auxiliary/tgsi/tgsi_strings.c') diff --git a/src/gallium/auxiliary/tgsi/tgsi_strings.c b/src/gallium/auxiliary/tgsi/tgsi_strings.c index 5c92e9a1001..95a5aded819 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_strings.c +++ b/src/gallium/auxiliary/tgsi/tgsi_strings.c @@ -76,7 +76,9 @@ const char *tgsi_semantic_names[TGSI_SEMANTIC_COUNT] = "GRID_SIZE", "BLOCK_ID", "BLOCK_SIZE", - "THREAD_ID" + "THREAD_ID", + "TEXCOORD", + "PCOORD" }; const char *tgsi_texture_names[TGSI_TEXTURE_COUNT] = -- cgit v1.2.3