diff options
author | Brian Paul <[email protected]> | 2018-01-11 11:17:45 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-01-17 11:17:56 -0700 |
commit | 7027d9c1fd2a1bc0ef3cd523d407367f81a6eed5 (patch) | |
tree | d0a810bf5e33f6a10b803dca23a6f977e67c4768 /src/gallium/drivers/svga/svga_winsys.h | |
parent | 92840bd27683996d1de86fbc5b95be798f99796b (diff) |
svga: add num-commands-per-draw HUD query
This query shows the ratio of total commands vs. drawing commands sent
to the vgpu device. This gives some idea of how many state changes
are sent per draw call. The closer the ratio is to 1.0, the better.
Reviewed-by: Charmaine Lee <[email protected]>
Reviewed-by: Neha Bhende <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_winsys.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_winsys.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_winsys.h b/src/gallium/drivers/svga/svga_winsys.h index e74d1ca4d72..f0db3e97cc0 100644 --- a/src/gallium/drivers/svga/svga_winsys.h +++ b/src/gallium/drivers/svga/svga_winsys.h @@ -453,6 +453,10 @@ struct svga_winsys_context /** The more recent command issued to command buffer */ SVGAFifo3dCmdId last_command; + + /** For HUD queries */ + uint64_t num_commands; + uint64_t num_draw_commands; }; |