diff options
author | Kristian H. Kristensen <[email protected]> | 2019-09-05 15:12:23 -0700 |
---|---|---|
committer | Kristian H. Kristensen <[email protected]> | 2019-09-06 09:53:28 -0700 |
commit | 30ab3e39fd4d9cceb8a1a7d06dc3d99b0f477a72 (patch) | |
tree | b5fa5095e8fe4828a7fa61f7b89c43b82b335225 /src/gallium/drivers/freedreno/a5xx | |
parent | 1acf8d235494625e27fe0213e1a0771bba2368c3 (diff) |
freedreno/a6xx: Implement primitive count queries on GPU
The driver can't determine PIPE_QUERY_PRIMITIVES_GENERATED or
PIPE_QUERY_PRIMITIVES_EMITTED once we support geometry or
tessellation, since these stages add primitives at runtime. Use the
WRITE_PRIMITIVE_COUNTS event to write back the primitive counts and
implement a hw query for this.
Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a5xx')
-rw-r--r-- | src/gallium/drivers/freedreno/a5xx/fd5_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_query.c b/src/gallium/drivers/freedreno/a5xx/fd5_query.c index b438c7a5634..28f296d57cf 100644 --- a/src/gallium/drivers/freedreno/a5xx/fd5_query.c +++ b/src/gallium/drivers/freedreno/a5xx/fd5_query.c @@ -433,7 +433,7 @@ fd5_create_batch_query(struct pipe_context *pctx, counters_per_group[entry->gid]++; } - q = fd_acc_create_query2(ctx, 0, &perfcntr); + q = fd_acc_create_query2(ctx, 0, 0, &perfcntr); aq = fd_acc_query(q); /* sample buffer size is based on # of queries: */ |