summaryrefslogtreecommitdiff
path: root/tests/glx/glx-multithread.c
AgeCommit message (Collapse)AuthorFilesLines
2013-06-17piglit: Make callers of piglit_dispatch_default_init() specify the API.Eric Anholt1-1/+1
To automatically detect the current API, we'd need to make calls to piglit_is_gles() and piglit_get_gl_version(), while bypassing the dispatch mechanism we're trying to initialize. That seems tricky, while the context type is probably going to be known by the caller when we extend dispatch to GLES tests. Reviewed-by: Paul Berry <stereotype441@gmail.com>
2012-11-20glx-multithread: Replace glFlush calls with glFinishPaul Berry1-2/+2
Currently, in Mesa with the i965 driver, calling glFlush() forces all pending drawing operations to be sent to the kernel; this ensures that any subsequent drawing operations will be performed after those pending drawing operations, even if they come from other contexts. The glx-multithread test was relying on this behaviour, however, the GL and GLX specs do not garantee this. This patch modifies the glx-multithread test to use glFinish() instead of glFlush(). Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-11-20glx-multithread: use XInitThreadsPaul Berry1-0/+1
To use multithreading with xlib, you're supposed to call XInitThreads before any other xlib call. Without this, xlib and GLX calls won't be thread safe. (Based on a patch by Ian Romanick <ian.d.romanick@intel.com>)
2012-11-14util: Kill macro glewInitChad Versace1-1/+1
No test actually called glewInit(), because piglit-dispatch #define'd it to piglit_dispatch_default_init(). This patch removes the macro and replaces each call to glewInit() with piglit_dispatch_default_init(). Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-06-28util: Move piglit-util to piglit-util-gl-commonBlaž Tomažič1-1/+1
Move piglit-util.* to piglit-util-gl-common.* Signed-off-by: Blaž Tomažič <blaz.tomazic@gmail.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-03-23Add glewInit() calls to glx tests.Paul Berry1-0/+1
Previously these tests didn't initialize GLEW, presumably because they only use (a) GL 1.0 functions, which bypass GLEW, and (b) GLX functions, which they bind to using glXGetProcAddressARB(). Once we switch to using piglit-dispatch instead of GLEW, we will need to initialize it in order for the GL 1.0 functions to work. This patch adds a call to glewInit() in the place where a call to piglit_dispatch_default_init() will eventually be needed. Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
2011-04-29Rename PIGLIT_SUCCESS and PIGLIT_FAILURE to PIGLIT_PASS and PIGLIT_FAIL, resp.Marek Olšák1-2/+2
2010-01-15glx-multithread: New test for GLX multithreaded rendering.Eric Anholt1-0/+135