[Mesa-stable] [Mesa-dev] [PATCH] mesa: Set query->EverBound in glQueryCounter().

Chad Versace chad.versace at linux.intel.com
Fri Aug 23 11:07:35 PDT 2013


On 08/23/2013 10:40 AM, Kenneth Graunke wrote:
> 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.
>
> Fixes Piglit's spec/ARB_timer_query/query-lifetime.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> Cc: mesa-stable at lists.freedesktop.org
> ---
>   src/mesa/main/queryobj.c | 1 +
>   1 file changed, 1 insertion(+)

Yep, the ARB_timer_query spec says so:

     """
     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 [...]
     """

Reviewed-by: Chad Versace <chad.versace at linux.intel.com>


More information about the mesa-stable mailing list