diff options
author | Marek Olšák <[email protected]> | 2012-07-05 20:21:29 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-07-10 19:04:12 +0200 |
commit | d5a7866902af2a60a2d350c0d4970b30aed0b97a (patch) | |
tree | dbcfc0e5c8341a178fb25065064bbdb042b0fe31 /src/mesa/main/dd.h | |
parent | 509453304087d58b61b6d69d82e9b231da8a9a4c (diff) |
mesa: implement glGet(GL_TIMESTAMP) v2
This is adds a new driver function to retrieve the timestamp.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/dd.h')
-rw-r--r-- | src/mesa/main/dd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index 687a38f4487..c8a765f47aa 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -820,6 +820,12 @@ struct dd_function_table { GLuint name); void (*DeleteSamplerObject)(struct gl_context *ctx, struct gl_sampler_object *samp); + + /** + * \name Return a timestamp in nanoseconds as defined by GL_ARB_timer_query. + * This should be equivalent to glGetInteger64v(GL_TIMESTAMP); + */ + uint64_t (*GetTimestamp)(struct gl_context *ctx); }; |