Skip to content
Snippets Groups Projects
Forked from Mesa / mesa
131959 commits behind, 225 commits ahead of the upstream repository.
Neil Roberts's avatar
Neil Roberts authored
When the edge flag element is enabled then the elements are slightly
reordered so that the edge flag is always the last one. This was
confusing the code to upload the 3DSTATE_VF_INSTANCING state because
that is uploaded with a separate loop which has an instruction for
each element. The indices used in these instructions weren't taking
into account the reordering so the state would be incorrect.

v2: Use nr_elements instead of brw->vb.nr_enabled so that it will cope
    when gl_VertexID is used.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91292


Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ben Widawsky's avatarBen Widawsky <ben@bwidawsk.net>
Signed-off-by: Ben Widawsky's avatarBen Widawsky <ben@bwidawsk.net>
Tested-by: default avatarMark Janes <mark.a.janes@intel.com>
(cherry picked from commit 3a1ab234)
b6dffbe9
History