aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-04-02 20:05:50 +0200
committerBrian Paul <[email protected]>2012-04-06 14:10:50 -0600
commit0adc5d9cfdd94bc5cbc3d45b9ada3d13ac4adb7c (patch)
treee5d2e21673333b26c75f6c9df5b0f002361b6d0a /src
parent0cd68001f8844a8bb78d4071da3562c1b3ee7653 (diff)
svga: handle TGSI_SEMANTIC_CLIPDIST/VERTEX semantics
We can't support these vertex attributes, but don't die in an assertion. Issue a warning instead. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=48142
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/svga/svga_tgsi_decl_sm30.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c b/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c
index a4e80b5571d..e9adf3a0cbb 100644
--- a/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c
+++ b/src/gallium/drivers/svga/svga_tgsi_decl_sm30.c
@@ -72,6 +72,13 @@ translate_vs_ps_semantic(struct svga_shader_emitter *emit,
*idx = semantic.Index;
*usage = SVGA3D_DECLUSAGE_NORMAL;
break;
+ case TGSI_SEMANTIC_CLIPDIST:
+ case TGSI_SEMANTIC_CLIPVERTEX:
+ /* XXX at this time we don't support clip distance or clip vertices */
+ debug_warn_once("unsupported clip distance/vertex attribute\n");
+ *usage = SVGA3D_DECLUSAGE_TEXCOORD;
+ *idx = 0;
+ return TRUE;
default:
assert(0);
*usage = SVGA3D_DECLUSAGE_TEXCOORD;