summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_resource_texture.c
diff options
context:
space:
mode:
authorCharmaine Lee <[email protected]>2016-03-10 10:57:24 -0800
committerBrian Paul <[email protected]>2016-03-21 12:58:25 -0600
commit79e343b36a729afb8086b99e4bf15d8c444887c1 (patch)
tree24c8200d81a2bbc1472a26572ec4233cd04354a9 /src/gallium/drivers/svga/svga_resource_texture.c
parentdc9ecf58c0c5c8a97cd41362e78c2fcd9f6e3b80 (diff)
svga: add new num-readbacks HUD query
To find out how many image readback command is issued. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Thomas Hellstrom <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_resource_texture.c')
-rw-r--r--src/gallium/drivers/svga/svga_resource_texture.c2
1 files changed, 2 insertions, 0 deletions
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;