Skip to content
Snippets Groups Projects
Commit fb02b4ec authored by Neil Roberts's avatar Neil Roberts Committed by Ben Widawsky
Browse files

i965: Swap the order of the vertex ID and edge flag attributes

The edge flag data on Gen6+ is passed through the fixed function hardware as
an extra attribute. According to the PRM it must be the last valid
VERTEX_ELEMENT structure. However if the vertex ID is also used then another
extra element is added to source the VID. This made it so the vertex ID is in
the wrong register in the vertex shader and the edge attribute is no longer in
the last element.

v2: Also implement for BDW+

v3 [by Ben]: Remove 10.5 tag. Too late.

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


Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: default avatarKristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Ben Widawsky's avatarBen Widawsky <ben@bwidawsk.net>
Tested-by: Ben Widawsky's avatarBen Widawsky <ben@bwidawsk.net>
Tested-by: default avatarMark Janes <mark.a.janes@intel.com>
parent 50932268
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment