diff options
author | Roland Scheidegger <sroland@vmware.com> | 2014-12-12 04:13:43 +0100 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2014-12-16 04:23:00 +0100 |
commit | ade8b26bf515fa4f0cbf43e9df4885368e984277 (patch) | |
tree | c536a0936c5a55a4b6679f39527b97ec1f9cbab4 /src/gallium/drivers/softpipe | |
parent | 3c8ef3a74b51d5c79bbbc3e73244085efd89206b (diff) | |
download | external_mesa3d-ade8b26bf515fa4f0cbf43e9df4885368e984277.zip external_mesa3d-ade8b26bf515fa4f0cbf43e9df4885368e984277.tar.gz external_mesa3d-ade8b26bf515fa4f0cbf43e9df4885368e984277.tar.bz2 |
gallium: add TGSI_SEMANTIC_VERTEXID_NOBASE and TGSI_SEMANTIC_BASEVERTEX
Plus a new PIPE_CAP_VERTEXID_NOBASE query. The idea is that drivers not
supporting vertex ids with base vertex offset applied (so, only support
d3d10-style vertex ids) will get such a d3d10-style vertex id instead -
with the caveat they'll also need to handle the basevertex system value
too (this follows what core mesa already does).
Additionally, this is also useful for other state trackers (for instance
llvmpipe / draw right now implement the d3d10 behavior on purpose, but
with different semantics it can just do both).
Doesn't do anything yet.
And fix up the docs wrt similar values.
v2: incorporate feedback from Brian and others, better names, better docs.
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/drivers/softpipe')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c index 57cd9b6..8efc88f 100644 --- a/src/gallium/drivers/softpipe/sp_screen.c +++ b/src/gallium/drivers/softpipe/sp_screen.c @@ -231,6 +231,8 @@ softpipe_get_param(struct pipe_screen *screen, enum pipe_cap param) return 1; case PIPE_CAP_CLIP_HALFZ: return 1; + case PIPE_CAP_VERTEXID_NOBASE: + return 0; } /* should only get here on unhandled cases */ debug_printf("Unexpected PIPE_CAP %d query\n", param); |