svga: add a few more resource updates HUD query
authorCharmaine Lee <charmainel@vmware.com>
Fri, 11 Mar 2016 22:33:39 +0000 (14:33 -0800)
committerBrian Paul <brianp@vmware.com>
Mon, 21 Mar 2016 18:58:25 +0000 (12:58 -0600)
commit0a1d91ef979a2782c722032f2b0a88d0754dd561
tree30a8386ffa6d686fb90f677f1702261d4e3e0d91
parent79e343b36a729afb8086b99e4bf15d8c444887c1
svga: add a few more resource updates HUD query

This patch adds the following HUD queries:
.num-resource-updates  -- number of resource update. Commands include
                          UPDATE_SUBRESOURCE, UPDATE_GB_IMAGE.
.num-buffer-uploads    -- number of buffer uploads.
.num-const-buf-updates -- number of set constant buffer.
.num-const-updates     -- number of set shader constant.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
src/gallium/drivers/svga/svga_context.h
src/gallium/drivers/svga/svga_pipe_query.c
src/gallium/drivers/svga/svga_resource_buffer_upload.c
src/gallium/drivers/svga/svga_resource_texture.c
src/gallium/drivers/svga/svga_screen.c
src/gallium/drivers/svga/svga_state_constants.c