svga: don't call os_get_time() when not needed by Gallium HUD
authorBrian Paul <brianp@vmware.com>
Tue, 2 Aug 2016 20:27:33 +0000 (14:27 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 16 Aug 2016 14:24:53 +0000 (08:24 -0600)
commitf934117bbb9d58f0f5d9cfb4397fec9c6371ed64
treebd4a5be0cbfbf7ff58cd26e3bd7db271a8ea1771
parentdcf2126f90a1daf226417bde71a62ccf0305adea
svga: don't call os_get_time() when not needed by Gallium HUD

The calls to os_get_time() were showing up higher than expected in
profiles.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_context.c
src/gallium/drivers/svga/svga_context.h
src/gallium/drivers/svga/svga_pipe_query.c
src/gallium/drivers/svga/svga_resource_buffer.c
src/gallium/drivers/svga/svga_resource_texture.c