mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 03:38:06 +02:00
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: Erik Faye-Lund <erik.faye-lund@collabora.com> Fixes:ec8cbd79ac"draw/softpipe: EXT_transform_feedback support (v2)" Reviewed-by: Roland Scheidegger <sroland@vmware.com> (cherry picked from commitd84b85bc28)
This commit is contained in:
parent
05faf6eb56
commit
67f2be0fbf
1 changed files with 2 additions and 0 deletions
|
|
@ -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++)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue