diff options
author | Rob Clark <[email protected]> | 2017-08-24 09:34:48 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-10-24 12:56:51 -0400 |
commit | eed9685dd6619ec7598e8c3fd81117d36010510d (patch) | |
tree | 32b4b7948357bca78ac988c076070ea258f1521c /src/gallium/drivers/freedreno/freedreno_query_acc.c | |
parent | 9c32333a58e2792a062bd82374ea88222d718959 (diff) |
freedreno: per-context fd_pipe
To enable per-context priorities, we need to have per-context pipe's.
Unfortunately we still need to keep the global screen pipe, mostly just
for screen->get_timestamp().
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_query_acc.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_query_acc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_query_acc.c b/src/gallium/drivers/freedreno/freedreno_query_acc.c index 96cee1aee84..724ef69dc24 100644 --- a/src/gallium/drivers/freedreno/freedreno_query_acc.c +++ b/src/gallium/drivers/freedreno/freedreno_query_acc.c @@ -66,7 +66,7 @@ realloc_query_bo(struct fd_context *ctx, struct fd_acc_query *aq) /* don't assume the buffer is zero-initialized: */ rsc = fd_resource(aq->prsc); - fd_bo_cpu_prep(rsc->bo, ctx->screen->pipe, DRM_FREEDRENO_PREP_WRITE); + fd_bo_cpu_prep(rsc->bo, ctx->pipe, DRM_FREEDRENO_PREP_WRITE); map = fd_bo_map(rsc->bo); memset(map, 0, aq->provider->size); @@ -142,7 +142,7 @@ fd_acc_get_query_result(struct fd_context *ctx, struct fd_query *q, return false; } - ret = fd_bo_cpu_prep(rsc->bo, ctx->screen->pipe, + ret = fd_bo_cpu_prep(rsc->bo, ctx->pipe, DRM_FREEDRENO_PREP_READ | DRM_FREEDRENO_PREP_NOSYNC); if (ret) return false; @@ -154,7 +154,7 @@ fd_acc_get_query_result(struct fd_context *ctx, struct fd_query *q, fd_batch_flush(rsc->write_batch, true); /* get the result: */ - fd_bo_cpu_prep(rsc->bo, ctx->screen->pipe, DRM_FREEDRENO_PREP_READ); + fd_bo_cpu_prep(rsc->bo, ctx->pipe, DRM_FREEDRENO_PREP_READ); void *ptr = fd_bo_map(rsc->bo); p->result(ctx, ptr, result); |