diff options
author | Eric Anholt <[email protected]> | 2014-10-17 09:40:12 +0100 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-10-17 13:09:28 +0100 |
commit | 000976ed9926266b52827108c666d4c05e4f4a35 (patch) | |
tree | 7d0bf92c2816c822e73cfc3d2a99de2fa63b3393 /src/gallium/drivers/vc4/vc4_context.c | |
parent | 135287db175de9496b76f8edce04871ca6444d72 (diff) |
vc4: Add some comments about state management.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_context.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_context.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_context.c b/src/gallium/drivers/vc4/vc4_context.c index bcbb0049fb9..205f81d5c89 100644 --- a/src/gallium/drivers/vc4/vc4_context.c +++ b/src/gallium/drivers/vc4/vc4_context.c @@ -319,6 +319,12 @@ vc4_flush(struct pipe_context *pctx) vc4->needs_flush = false; vc4->draw_call_queued = false; + + /* We have no hardware context saved between our draw calls, so we + * need to flag the next draw as needing all state emitted. Emitting + * all state at the start of our draws is also what ensures that we + * return to the state we need after a previous tile has finished. + */ vc4->dirty = ~0; vc4->resolve = 0; vc4->cleared = 0; |