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>
This commit is contained in:
@@ -176,7 +176,9 @@ struct tgsi_declaration_interp
|
||||
#define TGSI_SEMANTIC_SAMPLEPOS 25
|
||||
#define TGSI_SEMANTIC_SAMPLEMASK 26
|
||||
#define TGSI_SEMANTIC_INVOCATIONID 27
|
||||
#define TGSI_SEMANTIC_COUNT 28 /**< number of semantic values */
|
||||
#define TGSI_SEMANTIC_VERTEXID_NOBASE 28
|
||||
#define TGSI_SEMANTIC_BASEVERTEX 29
|
||||
#define TGSI_SEMANTIC_COUNT 30 /**< number of semantic values */
|
||||
|
||||
struct tgsi_declaration_semantic
|
||||
{
|
||||
|
Reference in New Issue
Block a user