Module: Mesa Branch: 9.2 Commit: f31a1d9f8d4e0b36f62beb4dcb2ff1207e8cf476 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f31a1d9f8d4e0b36f62beb4dcb2ff1207e8cf476
Author: Kenneth Graunke <kenn...@whitecape.org> Date: Fri Aug 23 10:35:34 2013 -0700 mesa: Set query->EverBound in glQueryCounter(). glIsQuery is supposed to return false for names returned by glGenQueries until their first use. BeginQuery is a use, but QueryCounter is also a use. >From the ARB_timer_query spec: "A timer query object is created with the command void QueryCounter(uint id, enum target); [...] If <id> is an unused query object name, the name is marked as used [...]" Fixes Piglit's spec/ARB_timer_query/query-lifetime. Signed-off-by: Kenneth Graunke <kenn...@whitecape.org> Reviewed-by: Ian Romanick <ian.d.roman...@intel.com> Reviewed-by: Chad Versace <chad.vers...@linux.intel.com> Cc: mesa-sta...@lists.freedesktop.org (cherry picked from commit 7950315583244f03a58ac00d7b0516860475914c) --- src/mesa/main/queryobj.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c index b74898c..60356b8 100644 --- a/src/mesa/main/queryobj.c +++ b/src/mesa/main/queryobj.c @@ -485,6 +485,7 @@ _mesa_QueryCounter(GLuint id, GLenum target) q->Target = target; q->Result = 0; q->Ready = GL_FALSE; + q->EverBound = GL_TRUE; if (ctx->Driver.QueryCounter) { ctx->Driver.QueryCounter(ctx, q); _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit