Module: Mesa Branch: master Commit: 2b6b15ab3fbf8aea268296269843344d111a1340 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2b6b15ab3fbf8aea268296269843344d111a1340
Author: Ilia Mirkin <imir...@alum.mit.edu> Date: Sat Nov 12 21:02:20 2016 -0500 swr: always enable adding start/base vertex to gl_VertexId Fixes gl-3.2-basevertex-vertexid Signed-off-by: Ilia Mirkin <imir...@alum.mit.edu> Reviewed-by: Tim Rowley <timothy.o.row...@intel.com> --- src/gallium/drivers/swr/swr_state.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp index c1beeeb..d64211e 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 _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit