diff options
author | Marek Olšák <[email protected]> | 2017-04-24 12:10:24 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-04-28 21:47:35 +0200 |
commit | fa15436e634f36d94d6d477675a2037404df1952 (patch) | |
tree | bb256e2699659b65871ce442e811946b8e376eab /src/gallium/drivers/radeonsi | |
parent | 55445ff1891724c78e6573d2f8c721e14c0449fc (diff) |
radeonsi: add a HUD query for draw calls with primitive restart
Reviewed-by: Nicolai Hähnle <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_draw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index 2d5a08e878a..e6a9ee0d199 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -1396,6 +1396,8 @@ void si_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info) pipe_resource_reference(&ib_tmp.buffer, NULL); sctx->b.num_draw_calls++; + if (info->primitive_restart) + sctx->b.num_prim_restart_calls++; if (G_0286E8_WAVESIZE(sctx->spi_tmpring_size)) sctx->b.num_spill_draw_calls++; } |