diff options
author | Roland Scheidegger <[email protected]> | 2015-04-23 18:13:32 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2015-04-23 18:14:22 +0200 |
commit | f2a7fd9943fcb7d3de3bc2b21907e0a157b88e96 (patch) | |
tree | c78b68e99367f1c96b89edee88840cef25c3d9d6 /src/gallium/auxiliary/draw/draw_prim_assembler.h | |
parent | ecc7f2ed910345c4dd0d02ac9c72d69f10ac5572 (diff) |
draw: fix prim ids when there's no gs
We were resetting the prim id count for each run of the prim assembler,
hence this only worked when the draw calls were very small (the exact limit
depending on the vertex size), since larger draw calls get split up.
So, do the same as we do already if there's a gs, reset it to zero explicitly
for every new instance (this possibly could use the same variable but that
isn't doable without some heavy refactoring and I'm not sure it makes sense).
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90130.
Reviewed-by: Jose Fonseca <[email protected]>
CC: <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_prim_assembler.h')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_prim_assembler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_prim_assembler.h b/src/gallium/auxiliary/draw/draw_prim_assembler.h index 5ba715b8135..5ee731750f7 100644 --- a/src/gallium/auxiliary/draw/draw_prim_assembler.h +++ b/src/gallium/auxiliary/draw/draw_prim_assembler.h @@ -70,5 +70,8 @@ draw_prim_assembler_run(struct draw_context *draw, void draw_prim_assembler_prepare_outputs(struct draw_assembler *ia); +void +draw_prim_assembler_new_instance(struct draw_assembler *ia); + #endif |