diff options
author | Marek Olšák <[email protected]> | 2017-08-04 15:26:55 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-08-07 21:12:24 +0200 |
commit | 895de1d03d5bd0f7a4e46ad5128cdb3a0add7ec1 (patch) | |
tree | 041faae2269afa6d4bafb6d28df8c9fc801cb645 /src/gallium/drivers/radeonsi | |
parent | ca440bc6514856efacba6f1ea9ece383fbc156b4 (diff) |
radeonsi: expose the number of decompress calls to the HUD
Tested-by: Dieter Nützel <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_draw.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index 605dfdbd0a4..9df5b7a5886 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -1394,13 +1394,17 @@ void si_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info) sctx->b.flags |= SI_CONTEXT_VGT_STREAMOUT_SYNC; } - sctx->b.num_draw_calls++; - if (sctx->framebuffer.state.nr_cbufs > 1) - sctx->b.num_mrt_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++; + if (unlikely(sctx->decompression_enabled)) { + sctx->b.num_decompress_calls++; + } else { + sctx->b.num_draw_calls++; + if (sctx->framebuffer.state.nr_cbufs > 1) + sctx->b.num_mrt_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++; + } if (index_size && indexbuf != info->index.resource) pipe_resource_reference(&indexbuf, NULL); } |