gallium/st: add pipe_context::get_timestamp()
authorBrian Paul <brianp@vmware.com>
Fri, 7 Aug 2015 20:54:24 +0000 (14:54 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 2 Sep 2015 15:05:23 +0000 (09:05 -0600)
commit133a47107cc03a69b4b88c1fef331d507f521fa7
treea17683b5d558052c8ffe134a97f6c5b3aa6cfbcb
parente2a1d21cb665b7e7bc2c9684cf533003cdc817b3
gallium/st: add pipe_context::get_timestamp()

The VMware svga driver doesn't directly support pipe_screen::get_timestamp()
but we can do a work-around.  However, we need a gallium context to do so.
This patch adds a new pipe_context::get_timestamp() function that will only
be called if the pipe_screen::get_timestamp() function is NULL.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/gallium/include/pipe/p_context.h
src/mesa/state_tracker/st_cb_queryobj.c