diff options
author | Brian Paul <[email protected]> | 2016-02-29 14:26:12 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-03-04 07:57:41 -0700 |
commit | 192ee9adb1c092cf01860d23e13f373fb041c698 (patch) | |
tree | 9f2913d97ca0ae448711c4ad4a3f4afe7f1168a0 /src/gallium/drivers/svga/svga_context.c | |
parent | 1258f907f4f8371391ad7e30ae7365c223203a97 (diff) |
svga: add new command-buffer-size HUD query
To plot a graph of the command buffer size.
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_context.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c index b10eb45e548..32917cd6cf9 100644 --- a/src/gallium/drivers/svga/svga_context.c +++ b/src/gallium/drivers/svga/svga_context.c @@ -307,6 +307,9 @@ void svga_context_flush( struct svga_context *svga, */ svga_context_flush_buffers(svga); + svga->hud.command_buffer_size += + svga->swc->get_command_buffer_size(svga->swc); + /* Flush pending commands to hardware: */ svga->swc->flush(svga->swc, &fence); |