svga: add num-commands-per-draw HUD query
authorBrian Paul <brianp@vmware.com>
Thu, 11 Jan 2018 18:17:45 +0000 (11:17 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 17 Jan 2018 18:17:56 +0000 (11:17 -0700)
commit7027d9c1fd2a1bc0ef3cd523d407367f81a6eed5
treed0a810bf5e33f6a10b803dca23a6f977e67c4768
parent92840bd27683996d1de86fbc5b95be798f99796b
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 <charmainel@vmware.com>
Reviewed-by: Neha Bhende <bhenden@vmware.com>
src/gallium/drivers/svga/svga_cmd.c
src/gallium/drivers/svga/svga_cmd_vgpu10.c
src/gallium/drivers/svga/svga_context.h
src/gallium/drivers/svga/svga_pipe_query.c
src/gallium/drivers/svga/svga_screen.c
src/gallium/drivers/svga/svga_winsys.h