diff options
author | Zack Rusin <[email protected]> | 2013-08-09 10:11:31 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2013-08-14 18:23:35 -0400 |
commit | a3ae5dc7dd5c2f8893f86a920247e690e550ebd4 (patch) | |
tree | 0c8ab07edf93210be4d0f20e95886b206c927e52 /src/gallium/auxiliary/draw/draw_pipe_unfilled.c | |
parent | 98d2498404ba69a3efc1c765b1a1885d151181ed (diff) |
draw: make sure that the stages setup outputs
Calling the prepare outputs cleans up the slot assignments
for outputs, unfortunately aapoint and aaline didn't have
code to reset their slots after the initial setup, this
was messing up our slot assignments. The unfilled stage
was just missing the initial assignment of the face slot.
This fixes all of the reported piglit failures.
Signed-off-by: Zack Rusin <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pipe_unfilled.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pipe_unfilled.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_unfilled.c b/src/gallium/auxiliary/draw/draw_pipe_unfilled.c index 68bab72265e..7a88ce0f6d7 100644 --- a/src/gallium/auxiliary/draw/draw_pipe_unfilled.c +++ b/src/gallium/auxiliary/draw/draw_pipe_unfilled.c @@ -268,6 +268,8 @@ struct draw_stage *draw_unfilled_stage( struct draw_context *draw ) unfilled->stage.reset_stipple_counter = unfilled_reset_stipple_counter; unfilled->stage.destroy = unfilled_destroy; + unfilled->face_slot = -1; + if (!draw_alloc_temp_verts( &unfilled->stage, 0 )) goto fail; |