mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-28 02:10:37 +02:00
swr: always enable adding start/base vertex to gl_VertexId
Fixes gl-3.2-basevertex-vertexid Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
This commit is contained in:
parent
6364491a0b
commit
2b6b15ab3f
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue