summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-02-29 14:25:09 -0700
committerBrian Paul <[email protected]>2016-03-04 07:57:41 -0700
commit1258f907f4f8371391ad7e30ae7365c223203a97 (patch)
tree980aae2b0f45ccbfe121e709422452559534a54e /src/gallium/drivers/svga
parent6fc8d90fa97f7cce059b1046d76b31d266f06a92 (diff)
svga: add new svga_winsys_context::get_command_buffer_size()
To ask how large the current command buffer is. Will be used for a new GALLIUM_HUD graph. Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_winsys.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_winsys.h b/src/gallium/drivers/svga/svga_winsys.h
index 562c6690fc1..0ad6b5e6c76 100644
--- a/src/gallium/drivers/svga/svga_winsys.h
+++ b/src/gallium/drivers/svga/svga_winsys.h
@@ -108,6 +108,12 @@ struct svga_winsys_context
uint32_t nr_bytes, uint32_t nr_relocs );
/**
+ * Returns current size of command buffer, in bytes.
+ */
+ unsigned
+ (*get_command_buffer_size)(struct svga_winsys_context *swc);
+
+ /**
* Emit a relocation for a host surface.
*
* @param flags bitmask of SVGA_RELOC_* flags