summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_context.h
diff options
context:
space:
mode:
authorCharmaine Lee <[email protected]>2016-08-31 14:49:52 -0700
committerBrian Paul <[email protected]>2016-09-17 10:09:00 -0600
commitee39814d90b9ecfb35dc4b5977b1f1ced0c0fd83 (patch)
treecc8aaee3982d09c2d69eb2cecd96009cd691c5e8 /src/gallium/drivers/svga/svga_context.h
parentf168c886c9f0940551de23b242cb794547cfaf0c (diff)
svga: split the num-resources-mapped hud to textures & buffers
Replace the num-resources-mapped hud with num-textures-mapped and num-buffers-mapped, so we can differentiate the map counts for these two different resources. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.h')
-rw-r--r--src/gallium/drivers/svga/svga_context.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h
index 7873e6380b1..afb04120ef5 100644
--- a/src/gallium/drivers/svga/svga_context.h
+++ b/src/gallium/drivers/svga/svga_context.h
@@ -53,7 +53,8 @@ enum svga_hud {
SVGA_QUERY_NUM_FLUSHES,
SVGA_QUERY_NUM_VALIDATIONS,
SVGA_QUERY_MAP_BUFFER_TIME,
- SVGA_QUERY_NUM_RESOURCES_MAPPED,
+ SVGA_QUERY_NUM_BUFFERS_MAPPED,
+ SVGA_QUERY_NUM_TEXTURES_MAPPED,
SVGA_QUERY_NUM_BYTES_UPLOADED,
SVGA_QUERY_COMMAND_BUFFER_SIZE,
SVGA_QUERY_FLUSH_TIME,
@@ -537,7 +538,8 @@ struct svga_context
uint64_t num_flushes; /**< SVGA_QUERY_NUM_FLUSHES */
uint64_t num_validations; /**< SVGA_QUERY_NUM_VALIDATIONS */
uint64_t map_buffer_time; /**< SVGA_QUERY_MAP_BUFFER_TIME */
- uint64_t num_resources_mapped; /**< SVGA_QUERY_NUM_RESOURCES_MAPPED */
+ uint64_t num_buffers_mapped; /**< SVGA_QUERY_NUM_BUFFERS_MAPPED */
+ uint64_t num_textures_mapped; /**< SVGA_QUERY_NUM_TEXTURES_MAPPED */
uint64_t command_buffer_size; /**< SVGA_QUERY_COMMAND_BUFFER_SIZE */
uint64_t flush_time; /**< SVGA_QUERY_FLUSH_TIME */
uint64_t surface_write_flushes; /**< SVGA_QUERY_SURFACE_WRITE_FLUSHES */