From: Ilia Mirkin Date: Sun, 13 Nov 2016 02:02:20 +0000 (-0500) Subject: swr: always enable adding start/base vertex to gl_VertexId X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b6b15ab3fbf8aea268296269843344d111a1340;p=mesa.git swr: always enable adding start/base vertex to gl_VertexId Fixes gl-3.2-basevertex-vertexid Signed-off-by: Ilia Mirkin Reviewed-by: Tim Rowley --- 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