diff options
author | Rob Clark <[email protected]> | 2018-07-17 10:02:51 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-07-17 11:00:00 -0400 |
commit | f129971e71ccc8c711ccfc01d5adad7e30687549 (patch) | |
tree | d3a11d22daceb339db4e921480ef18a5892832e2 /src/gallium/drivers/freedreno/freedreno_context.c | |
parent | 20f677f6bccdabafbffd0d8e948514dda0acb3f4 (diff) |
freedreno: flush immediately when reading a pending batch
Instead of the reading batch setting a dependency on the writing batch,
simply flush the writing batch immediately. This avoids situations
where we have to flush the context's current batch later.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_context.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_context.c b/src/gallium/drivers/freedreno/freedreno_context.c index 9c6a21ca5b8..e1324e8c0af 100644 --- a/src/gallium/drivers/freedreno/freedreno_context.c +++ b/src/gallium/drivers/freedreno/freedreno_context.c @@ -101,6 +101,8 @@ fd_emit_string_marker(struct pipe_context *pctx, const char *string, int len) if (!ctx->batch) return; + ctx->batch->needs_flush = true; + ring = ctx->batch->draw; /* max packet size is 0x3fff dwords: */ |