summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_context.c
diff options
context:
space:
mode:
authorHyunjun Ko <[email protected]>2018-10-17 21:57:27 +0900
committerRob Clark <[email protected]>2018-10-17 12:44:48 -0400
commit2385d7b06683e00984f05d32cd2b9e940fefd5af (patch)
tree1694859d095aecbb8ea564dcb5f6ab5a06571308 /src/gallium/drivers/freedreno/freedreno_context.c
parent9e6019bd46902987c677bb19142e7cc89e43d2b9 (diff)
freedreno: adds nondraw param to fd_bc_alloc_batch
Needs to specify nondraw when creating a batch through fd_bc_alloc_batch since it'd better create a batch through it rather than fd_batch_create. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_context.c b/src/gallium/drivers/freedreno/freedreno_context.c
index 55e978073ab..c540d6d143c 100644
--- a/src/gallium/drivers/freedreno/freedreno_context.c
+++ b/src/gallium/drivers/freedreno/freedreno_context.c
@@ -316,7 +316,7 @@ fd_context_init(struct fd_context *ctx, struct pipe_screen *pscreen,
pctx->const_uploader = pctx->stream_uploader;
if (!ctx->screen->reorder)
- ctx->batch = fd_bc_alloc_batch(&screen->batch_cache, ctx);
+ ctx->batch = fd_bc_alloc_batch(&screen->batch_cache, ctx, false);
slab_create_child(&ctx->transfer_pool, &screen->transfer_pool);