summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2016-11-12 21:02:20 -0500
committerIlia Mirkin <[email protected]>2016-11-15 20:26:29 -0500
commit2b6b15ab3fbf8aea268296269843344d111a1340 (patch)
treed5924ac89fd980fa98cbf8e197ebc06d6d20f8e6 /src
parent6364491a0ba4d97270ddfee223b4c2f79cc691f1 (diff)
swr: always enable adding start/base vertex to gl_VertexId
Fixes gl-3.2-basevertex-vertexid Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Tim Rowley <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/swr/swr_state.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp
index c1beeebeda1..d64211e0f94 100644
--- a/src/gallium/drivers/swr/swr_state.cpp
+++ b/src/gallium/drivers/swr/swr_state.cpp
@@ -455,6 +455,7 @@ swr_create_vertex_elements_state(struct pipe_context *pipe,
assert(num_elements <= PIPE_MAX_ATTRIBS);
velems = CALLOC_STRUCT(swr_vertex_element_state);
if (velems) {
+ velems->fsState.bVertexIDOffsetEnable = true;
velems->fsState.numAttribs = num_elements;
for (unsigned i = 0; i < num_elements; i++) {
// XXX: we should do this keyed on the VS usage info