summaryrefslogtreecommitdiff
path: root/src/mesa/main/condrender.c
AgeCommit message (Collapse)AuthorFilesLines
2014-01-10mesa: Set the correct error in _mesa_BeginConditionalRenderIan Romanick1-11/+30
Piglit was recently changed to expect the correct error code (piglit commit 271b998), so it started failing on Mesa. This corrects that failing and adds some spec quotations to justify the errrors set. The code was rearranged a little bit to match the order listed in the spec. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2013-12-13mesa: Fix error code generation in glBeginConditionalRender()Anuj Phogat1-1/+3
This patch changes the error condition to satisfy below statement from OpenGL 4.3 core specification: "An INVALID_OPERATION error is generated if id is the name of a query object with a target other SAMPLES_PASSED, ANY_SAMPLES_PASSED, or ANY_SAMPLES_PASSED_CONSERVATIVE, or if id is the name of a query currently in progress." Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-06-05mesa: remove outdated version lines in commentsRico Schüller1-1/+0
Signed-off-by: Brian Paul <brianp@vmware.com>
2012-08-08mesa: In conditional rendering fallback, check the query status.Eric Anholt1-0/+2
Otherwise, conditional rendering always takes the fallthrough "render it anyway" case unless the application had itself done a check or wait on the query. Fixes intel oglconform's conditional_render advanced.nofbo.readpixels. Reviewed-by: Brian Paul <brianp@vmware.com> NOTE: This is a candidate for the 8.0 branch.
2011-09-19mesa: Throw an error when starting conditional render on an active query.Eric Anholt1-1/+1
From the NV_conditional_render spec: BeginQuery sets the active query object name for the query type given by <target> to <id>. If BeginQuery is called with an <id> of zero, if the active query object name for <target> is non-zero, if <id> is the active query object name for any query type, or if <id> is the active query object for condtional rendering (Section 2.X), the error INVALID OPERATION is generated. Fixes piglit nv_conditional_render-begin-while-active. Reviewed-by: Brian Paul <brianp@vmware.com>
2011-09-19mesa: Throw an error instead of asserting for condrender with query == 0.Eric Anholt1-1/+2
From the NV_conditional_render spec: BeginQuery sets the active query object name for the query type given by <target> to <id>. If BeginQuery is called with an <id> of zero, if the active query object name for <target> is non-zero, if <id> is the active query object name for any query type, or if <id> is the active query object for condtional rendering (Section 2.X), the error INVALID OPERATION is generated. Fixes piglit nv_conditional_render-begin-zero. Reviewed-by: Brian Paul <brianp@vmware.com>
2011-01-05mesa: Include mtypes.h in files that use gl_context struct.Vinson Lee1-0/+1
Directly include mtypes.h if a file uses a gl_context struct. This allows future removal of headers that are not strictly necessary but indirectly include mtypes.h for a file.
2010-10-13Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg1-1/+1
2010-01-01mesa: Make condrender.[ch] prototypes match.José Fonseca1-2/+2
GLAPI on windows is more than "extern" -- it includes the --, so the mismatch between condrender.[ch] prototypes causes "different linkage" errors on windows.
2009-12-31mesa: added FLUSH_VERTICES(), more commentsBrian Paul1-6/+10
2009-12-31mesa: add flag for GL_NV_conditional_render extensionBrian Paul1-2/+2
2009-12-31mesa: _mesa_Begin/EndConditionalRender() functionsBrian Paul1-0/+143
For GL_NV_conditional_render and GL3. The drawing functions don't check the query object yet. No API dispatch yet.