diff options
author | Roland Scheidegger <[email protected]> | 2014-12-01 23:40:31 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2014-12-06 18:03:05 +0100 |
commit | fe86415beb8edfe3a6a4300ca537fae1bbad64a7 (patch) | |
tree | 0bd4e19efb3c6e9293e43bc29b4bce3740bab5a3 /src/glsl/opt_function_inlining.cpp | |
parent | 3fdbad1142224f4cae9f97b75b94afba353ab392 (diff) |
draw: use correct output prim for non-adjacent topologies in prim assembler.
The decomposition done in the prim assembler will turn tri fans into tris,
but this wasn't reflected in the output prim type. Meaning with a tri fan
with 6 verts input, the output was a tri fan with 12 vertices instead of a
tri list with 12 vertices (not as bad as it sounds, since the additional tris
created would all be degenerate since they'd all have two times vertex zero
but still bogus).
This is because the prim assembler is used if either the input topology is
something with adjacency, or if prim id needs to be injected, and for the
latter case topologies without adjacency can be converted to basic ones.
Unfortunately decomposition here for inserting prim ids is necessary, at
least for the indexed case where we can't just insert the prim id at the
right place depending on provoking vertex.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/glsl/opt_function_inlining.cpp')
0 files changed, 0 insertions, 0 deletions