mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 11:10:10 +01:00
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
This commit is contained in:
parent
0cd68001f8
commit
0adc5d9cfd
1 changed files with 7 additions and 0 deletions
|
|
@ -72,6 +72,13 @@ translate_vs_ps_semantic(struct svga_shader_emitter *emit,
|
||||||
*idx = semantic.Index;
|
*idx = semantic.Index;
|
||||||
*usage = SVGA3D_DECLUSAGE_NORMAL;
|
*usage = SVGA3D_DECLUSAGE_NORMAL;
|
||||||
break;
|
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:
|
default:
|
||||||
assert(0);
|
assert(0);
|
||||||
*usage = SVGA3D_DECLUSAGE_TEXCOORD;
|
*usage = SVGA3D_DECLUSAGE_TEXCOORD;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue