From ee39814d90b9ecfb35dc4b5977b1f1ced0c0fd83 Mon Sep 17 00:00:00 2001 From: Charmaine Lee Date: Wed, 31 Aug 2016 14:49:52 -0700 Subject: 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 --- src/gallium/drivers/svga/svga_resource_texture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/svga/svga_resource_texture.c') 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); -- cgit v1.2.3