diff options
author | Charmaine Lee <[email protected]> | 2016-08-31 14:49:52 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-09-17 10:09:00 -0600 |
commit | ee39814d90b9ecfb35dc4b5977b1f1ced0c0fd83 (patch) | |
tree | cc8aaee3982d09c2d69eb2cecd96009cd691c5e8 /src/gallium/drivers/svga/svga_resource_texture.c | |
parent | f168c886c9f0940551de23b242cb794547cfaf0c (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_resource_texture.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_resource_texture.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_resource_texture.c b/src/gallium/drivers/svga/svga_resource_texture.c index 1f1a76bb224..2086afab52a 100644 --- a/src/gallium/drivers/svga/svga_resource_texture.c +++ b/src/gallium/drivers/svga/svga_resource_texture.c @@ -539,6 +539,7 @@ svga_texture_transfer_map(struct pipe_context *pipe, * At this point, the svga_surfaces_flush() should already have * called in svga_texture_get_transfer(). */ + svga->hud.surface_write_flushes++; svga_context_flush(svga, NULL); map = svga->swc->surface_map(svga->swc, surf, usage, &retry); } @@ -583,7 +584,7 @@ svga_texture_transfer_map(struct pipe_context *pipe, } svga->hud.map_buffer_time += (svga_get_time(svga) - begin); - svga->hud.num_resources_mapped++; + svga->hud.num_textures_mapped++; done: SVGA_STATS_TIME_POP(sws); |