diff options
author | Kenneth Graunke <[email protected]> | 2019-02-07 08:48:38 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:11 -0800 |
commit | 1cd001aa63ed55e26775fdb1a16a595265c10d43 (patch) | |
tree | 13c2d748368d953144409a56af75558b8ca1c2da /src/gallium/drivers/iris/iris_query.c | |
parent | 9376799bd623d3e547afc2d31483f1cb44c2ba65 (diff) |
iris: Make a iris_batch_reference_signal_syncpt helper function.
Suggested by Chris Wilson. More obvious what's going on.
Diffstat (limited to 'src/gallium/drivers/iris/iris_query.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_query.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gallium/drivers/iris/iris_query.c b/src/gallium/drivers/iris/iris_query.c index e04ff702721..ec9050b6390 100644 --- a/src/gallium/drivers/iris/iris_query.c +++ b/src/gallium/drivers/iris/iris_query.c @@ -811,13 +811,10 @@ iris_end_query(struct pipe_context *ctx, struct pipe_query *query) struct iris_context *ice = (void *) ctx; struct iris_query *q = (void *) query; struct iris_batch *batch = &ice->batches[q->batch_idx]; - struct iris_screen *screen = (void *) ctx->screen; if (q->type == PIPE_QUERY_TIMESTAMP) { iris_begin_query(ctx, query); - struct iris_syncpt *syncpt = - ((struct iris_syncpt **) util_dynarray_begin(&batch->syncpts))[0]; - iris_syncpt_reference(screen, &q->syncpt, syncpt); + iris_batch_reference_signal_syncpt(batch, &q->syncpt); mark_available(ice, q); return true; } @@ -835,9 +832,7 @@ iris_end_query(struct pipe_context *ctx, struct pipe_query *query) q->query_state_ref.offset + offsetof(struct iris_query_snapshots, end)); - struct iris_syncpt *syncpt = - ((struct iris_syncpt **) util_dynarray_begin(&batch->syncpts))[0]; - iris_syncpt_reference(screen, &q->syncpt, syncpt); + iris_batch_reference_signal_syncpt(batch, &q->syncpt); mark_available(ice, q); return true; |