diff options
author | Brian Paul <[email protected]> | 2013-04-03 10:23:57 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-04-03 11:02:47 -0600 |
commit | ac114c682413065a5b8baa678733555e94e43120 (patch) | |
tree | 61764015469959c8917abb4ae2672a61df22b9a0 /src/gallium/drivers/svga/svga_screen.c | |
parent | a69efa9482d7d4dee476a50b3788544ba9b14a50 (diff) |
svga: add new memory-used HUD query
To track the amount of memory used by all pipe_resources (textures
and buffers).
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_screen.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index bd1b03fc66c..6213535a23e 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -499,7 +499,8 @@ svga_get_driver_query_info(struct pipe_screen *screen, { static const struct pipe_driver_query_info queries[] = { {"draw-calls", SVGA_QUERY_DRAW_CALLS, 0, FALSE}, - {"fallbacks", SVGA_QUERY_FALLBACKS, 0, FALSE} + {"fallbacks", SVGA_QUERY_FALLBACKS, 0, FALSE}, + {"memory-used", SVGA_QUERY_MEMORY_USED, 0, TRUE} }; if (!info) |