From 79e343b36a729afb8086b99e4bf15d8c444887c1 Mon Sep 17 00:00:00 2001 From: Charmaine Lee Date: Thu, 10 Mar 2016 10:57:24 -0800 Subject: svga: add new num-readbacks HUD query To find out how many image readback command is issued. Reviewed-by: Brian Paul Reviewed-by: Thomas Hellstrom --- src/gallium/drivers/svga/svga_resource_texture.c | 2 ++ 1 file changed, 2 insertions(+) (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 1edb41dabee..3a3325c65df 100644 --- a/src/gallium/drivers/svga/svga_resource_texture.c +++ b/src/gallium/drivers/svga/svga_resource_texture.c @@ -448,6 +448,8 @@ svga_texture_transfer_map(struct pipe_context *pipe, ret = readback_image_vgpu9(svga, surf, st->slice, transfer->level); } + svga->hud.num_readbacks++; + assert(ret == PIPE_OK); (void) ret; -- cgit v1.2.3