diff options
author | Nicolai Hähnle <[email protected]> | 2018-09-18 14:43:09 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2018-12-19 12:01:59 +0100 |
commit | 0fc6e573dddbaaeac517bb8b03c1484a50943cd9 (patch) | |
tree | 81cf6c26215fa675fcf34dace01821d262241780 /src/gallium/drivers/radeonsi/si_perfcounter.c | |
parent | e2b9329f17eaf94c0cb6cc9f9bad907500fedeba (diff) |
radeonsi: move query suspend logic into the top-level si_query struct
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_perfcounter.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_perfcounter.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_perfcounter.c b/src/gallium/drivers/radeonsi/si_perfcounter.c index 69e149c76b6..0b3d8f89273 100644 --- a/src/gallium/drivers/radeonsi/si_perfcounter.c +++ b/src/gallium/drivers/radeonsi/si_perfcounter.c @@ -868,7 +868,10 @@ static struct si_query_ops batch_query_ops = { .destroy = si_pc_query_destroy, .begin = si_query_hw_begin, .end = si_query_hw_end, - .get_result = si_query_hw_get_result + .get_result = si_query_hw_get_result, + + .suspend = si_query_hw_suspend, + .resume = si_query_hw_resume, }; static struct si_query_hw_ops batch_query_hw_ops = { @@ -1001,8 +1004,8 @@ struct pipe_query *si_create_batch_query(struct pipe_context *ctx, } /* Compute result bases and CS size per group */ - query->b.num_cs_dw_end = pc->num_stop_cs_dwords; - query->b.num_cs_dw_end += pc->num_instance_cs_dwords; + query->b.b.num_cs_dw_suspend = pc->num_stop_cs_dwords; + query->b.b.num_cs_dw_suspend += pc->num_instance_cs_dwords; i = 0; for (group = query->groups; group; group = group->next) { @@ -1020,8 +1023,8 @@ struct pipe_query *si_create_batch_query(struct pipe_context *ctx, i += instances * group->num_counters; read_dw = 6 * group->num_counters; - query->b.num_cs_dw_end += instances * read_dw; - query->b.num_cs_dw_end += instances * pc->num_instance_cs_dwords; + query->b.b.num_cs_dw_suspend += instances * read_dw; + query->b.b.num_cs_dw_suspend += instances * pc->num_instance_cs_dwords; } if (query->shaders) { |