summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_context.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-04-03 10:23:57 -0600
committerBrian Paul <brianp@vmware.com>2013-04-03 11:02:47 -0600
commitac114c682413065a5b8baa678733555e94e43120 (patch)
tree61764015469959c8917abb4ae2672a61df22b9a0 /src/gallium/drivers/svga/svga_context.h
parenta69efa9482d7d4dee476a50b3788544ba9b14a50 (diff)
downloadexternal_mesa3d-ac114c682413065a5b8baa678733555e94e43120.zip
external_mesa3d-ac114c682413065a5b8baa678733555e94e43120.tar.gz
external_mesa3d-ac114c682413065a5b8baa678733555e94e43120.tar.bz2
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 <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.h')
-rw-r--r--src/gallium/drivers/svga/svga_context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h
index e27778e..517102d 100644
--- a/src/gallium/drivers/svga/svga_context.h
+++ b/src/gallium/drivers/svga/svga_context.h
@@ -45,6 +45,7 @@
/** Non-GPU queries for gallium HUD */
#define SVGA_QUERY_DRAW_CALLS (PIPE_QUERY_DRIVER_SPECIFIC + 0)
#define SVGA_QUERY_FALLBACKS (PIPE_QUERY_DRIVER_SPECIFIC + 1)
+#define SVGA_QUERY_MEMORY_USED (PIPE_QUERY_DRIVER_SPECIFIC + 2)
struct draw_vertex_shader;