Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
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>
|
|
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>)
|
|
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>
|
|
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>
|
|
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>
|
|
|
|
|