diff options
author | Roland Scheidegger <[email protected]> | 2014-12-10 03:09:17 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2014-12-10 22:11:16 +0100 |
commit | ff9653775962ab661c4891721b1b93d077d1f2db (patch) | |
tree | 2ad8d6ab04575be540493bea8ecc6851583ed57e /src/mesa | |
parent | db3dfcfe90a3d27e6020e0d3642f8ab0330e57be (diff) |
draw: simplify prim id insertion in prim assembler
Because all topologies are reduced to basic primitives (i.e. no strips, fans)
and the vertices involved are all copied, there's no need for any elaborate
decisions where to insert the prim id. The logic employed was correct for
first provoking vertex, but didn't account at all for the last provoking
vertex case. And since we now will get the right constant value even if the
primitive type is later changed (for unfilled etc.) this is no longer
required to pass certain tests (which were checking for prim_id == some
const interpolated value so passing because both were wrong in the end).
This is a bit overkill (3x4 values assigned in total even though it's really
one scalar per prim...) but the code is now much easier and I don't need to
add more cases for last provoking vertex.
This fixes piglit primitive-id-no-gs-strip test.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mesa')
0 files changed, 0 insertions, 0 deletions