Skip to content
Snippets Groups Projects
Commit 67f2be0f authored by Erik Faye-Lund's avatar Erik Faye-Lund Committed by Juan A. Suárez
Browse files

draw: flush when setting stream-out targets


We need to re-prepare the middle-end state to pick up changes to this
state to react correctly to pausing/resuming stream-out. So let's add a
flush here.

Signed-off-by: default avatarErik Faye-Lund <erik.faye-lund@collabora.com>
Fixes: ec8cbd79 "draw/softpipe: EXT_transform_feedback support (v2)"
Reviewed-by: default avatarRoland Scheidegger <sroland@vmware.com>
(cherry picked from commit d84b85bc)
parent 05faf6eb
No related branches found
No related tags found
No related merge requests found
......@@ -950,6 +950,8 @@ draw_set_mapped_so_targets(struct draw_context *draw,
{
int i;
draw_do_flush( draw, DRAW_FLUSH_STATE_CHANGE );
for (i = 0; i < num_targets; i++)
draw->so.targets[i] = targets[i];
for (i = num_targets; i < PIPE_MAX_SO_BUFFERS; i++)
......
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