[Mesa-dev] [PATCH] arb_occlusion_query2: expect an error when target mismatch in glBeginQuery()

Eduardo Lima Mitev elima at igalia.com
Mon Feb 9 23:58:19 PST 2015


As a heads-up, with this patch piglit fails the test for current Mesa.
But I'm about to send another series of patches for dEQP tests which
include a fix in Mesa for this issue.

The piglit test in question is:

bin/arb_occlusion_query2-api -auto -fbo

Eduardo

On 02/10/2015 08:48 AM, Eduardo Lima Mitev wrote:
> From the OpenGL ES 3.0.0 spec, section "2.13. ASYNCHRONOUS QUERIES",
> page 82:
>
>     "BeginQuery generates an INVALID_OPERATION error if any of the
>      following conditions hold: [...]; id is the name of an existing
>      query object whose type does not match target; [...]
>
> OpenGL 3.3 spec has similar wording at section "2.14. ASYNCHRONOUS
> QUERIES", page 94.
>
> Hence, trying to call BeginQuery on a query object which has already
> been bound to a different target should return GL_INVALID_OPERATION.
> ---
>  tests/spec/arb_occlusion_query2/api.c | 49
+++++++++++++++++++++++++++++++++++
>  1 file changed, 49 insertions(+)
>



More information about the mesa-dev mailing list