diff options
author | Brian Paul <[email protected]> | 2016-03-04 15:59:32 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-03-07 09:33:15 -0700 |
commit | 3af78b426ee05f9515439c20fc416202bff4539c (patch) | |
tree | 8415a5a9ea4d47b510fc4566a2cc06ee9f94baaa /src/gallium/drivers/svga/svga_screen.c | |
parent | 7e8cf3454624213f27b01f43ea6317d3bb51bb90 (diff) |
svga: add new surface-write-flushes HUD query
To know when we're flushing the command buffer because we need to
write to surface in the command buffer.
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_screen.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index 03dee73e255..feb5103a3f6 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -831,6 +831,8 @@ svga_get_driver_query_info(struct pipe_screen *screen, PIPE_DRIVER_QUERY_TYPE_BYTES), QUERY("flush-time", SVGA_QUERY_FLUSH_TIME, PIPE_DRIVER_QUERY_TYPE_MICROSECONDS), + QUERY("surface-write-flushes", SVGA_QUERY_SURFACE_WRITE_FLUSHES, + PIPE_DRIVER_QUERY_TYPE_UINT64), /* running total counters */ QUERY("memory-used", SVGA_QUERY_MEMORY_USED, |