Olivier Blin
fe7a96e077
dlwrap: add GLIBC_2.4 version to be able to run tests from ARM
...
See sysdeps/unix/sysv/linux/arm/libdl.abilist in glibc
9 years ago
Yaron Cohen-Tal
2af1715fbf
Fix "FindGLESv1.cmake" and "FindGLESv2.cmake".
9 years ago
Yaron Cohen-Tal
44d51f2844
Fix support for a static build of Epoxy. Add support building and running tests with CMake. Add support for linking with the static run-time library with MSVC.
9 years ago
Yaron Cohen-Tal
62e384129b
Add some files to the repo so that it's possible to build without running "autogen.sh".
9 years ago
Yaron Cohen-Tal
540952010b
Fix tests to work with some OpenGL ES / EGL implementations.
9 years ago
Yaron Cohen-Tal
773dd02f59
Added makefiles to build with MSVC 2013, and fixed errors and warnings.
9 years ago
Eric Anholt
8bbc0d40c6
Make the glx_alias_prefer_same_name test work, and hook it up.
...
Apparently I started writing it, and didn't notice I wasn't building
my code when I committed the library support.
9 years ago
Chun-wei Fan
a2a51904b0
test/wgl_per_context_funcptrs.c: Fix build on Visual Studio
...
Ensure that we do __stdcall only after the return type, as Visual Studio
will not like it otherwise.
10 years ago
Eric Anholt
b2ae054b3a
Avoid name conflicts between pkgconfig's EGL_LIBS and a temporary var.
...
I felt a little uncomfortable knowing I had two things defining
EGL_LIBS, but it worked on my system. It failed on the travis ci
build.
11 years ago
Eric Anholt
d56f21c494
Use the EGL pkgconfig for finding eglplatform.h.
...
We don't ever explicity link against libEGL, so no need to make use of
EGL_LIBS.
Fixes #30 .
11 years ago
Eric Anholt
27298ee31b
tests: Fix the passing of the "-z now" arg to the linker.
...
These LDFLAGS go to the compiler, and getting the arg to the linker
requires -Wl or -Xlinker. gcc apparently was passing this through
anyway, while clang was getting angry.
11 years ago
Eric Anholt
6eb075c70e
Fix EGL context detection for non-GLES2-core functions.
...
Fixes failure of the X Server with glamor using desktop GL on EGL, and
the associated testcase in the tree. This was clearly just
copy-and-paste failure on my part in
b251e3ae33
.
11 years ago
Eric Anholt
bb94003b78
Add a test for a failure I found with the X Server after my last fixes.
11 years ago
Eric Anholt
756dcaf6a5
Disable the dlwrap-based tests on apple.
...
We'd need a dlvsym() equivalent.
11 years ago
Eric Anholt
11a946cbf5
Prefer non-aliased functions when resolving.
...
This increases the size of the library, but avoids some of the
concerns that have been brought up with the library silently switching
you from glWhateverEXT() to glWhatever() if there might be slight
behavior differences between the two that hadn't been identified. The
downside is that it means we can't share the resolver functions among aliases.
11 years ago
Eric Anholt
ea12f935c1
wgl: Add a test for MakeCurrent returning different function pointers.
...
Huh, my old rule of "untested code is broken code" didn't hold up, for once.
11 years ago
Eric Anholt
db5b939f98
Ask glXGetProcAddress for ES symbols when we're on a GLX context.
...
Fixes #24
11 years ago
Eric Anholt
e230042ffe
test: Add a test using GLX_EXT_create_context_es2_profile.
...
This is based on a bug report from Steinar H. Gunderson about using
GLES3 with SDL and epoxy.
11 years ago
Eric Anholt
46da7790b2
test: Avoid segfaulting when nvidia driver does a dlopen(RTLD_DEFAULT)
11 years ago
Eric Anholt
7f5fc047da
win32: Fix a C90 compiler warning.
11 years ago
Eric Anholt
5a37cf88b5
win32: Add a test for wglUseFontBitmaps().
11 years ago
Eric Anholt
e6d9bb971b
Try to use glXGPA() for core funcs if the current context is GLX.
...
Fixes the GLX-only subtest of egl_and_glx_different_pointers. Now
what remains is dispatch tables for when you're actively using both.
Fixes #23
11 years ago
Eric Anholt
698185e24a
Try to avoid looking up bootstrap functions in the wrong library.
...
Fixes the EGL-only subtest of egl_and_glx_different_pointers.
11 years ago
Eric Anholt
037ac7f566
Add a test for EGL and GLX returning different function pointers.
...
This is the case on the nvidia binary driver's GL, or when you've got
a system mixing nvidia binary GL and Mesa EGL.
11 years ago
Eric Anholt
dae231680e
Import a copy of dlwrap from libfips.
...
This is just cworth's code, reindented for this project.
11 years ago
Eric Anholt
053ac5f457
Fix test build.
...
I was initially planning on having a separate file of the overrides
when I'd forgotten I couldn't rely on ELF symbol lookup.
11 years ago
Eric Anholt
53b87c33e4
Catch eglBindAPI() failures in looking up bootstrap functions.
...
This fixes crashes on ARM's Mali drivers, where desktop GL isn't
supported, and epoxy didn't notice the error and tried to dlsym() on
libGL.so.1.
An alternative would have been to look at the response from
eglQueryAPI() first, but that would have meant that we still need to
BindAPI in the case that eglQueryAPI returns something like VG or CL,
and so we needed to handle these errors regardless.
Fixes #22
11 years ago
Eric Anholt
f15c169cad
Extend the egl_without_glx test for another quirk of the platform.
...
Epoxy dlsym()s directly into libEGL instead of using dlsym() on a NULL
handle, so we can't relying on ELF resolution like we do for dlopen().
Instead, just override epoxy's function pointers for the functions
epoxy will call in the process of getting one of these bootstrap
functions.
11 years ago
Eric Anholt
9998c39e8d
Fix a bad error message in an EGL test.
11 years ago
Eric Anholt
eb7a99d1bd
Add missing '\n's to wgl test errors.
...
Like some of the other missing '\n's, I'd originally used errx(), then
just done a sed job to fprintf when I found that win32 lacked errx().
11 years ago
Eric Anholt
e4f5da9539
Add a test that khrplatform.h (if present) agrees with us.
11 years ago
Matt Turner
5a39b7abe2
List X11_LIBS after lib{egl,glx}_common.
...
Fixes linking with --as-needed.
11 years ago
Matt Turner
309f2d2020
Use LDADD instead of LDFLAGS/DEPENDENCIES.
...
This is a lot shorter to type, and still gets the dependencies to work
(tested with touch src/dispatch_common.c; make check, and touch
src/egl_common.c; make check).
11 years ago
Eric Anholt
c761908c3e
Enable compiler warnings in the tests.
11 years ago
Eric Anholt
36847f88a7
Fix compiler warnings in the tests.
...
I didn't have CWARNFLAGS in the Makefile.am, so lots of things that
would generate warnings had crept in.
11 years ago
Eric Anholt
1064406814
Fix using epoxy on systems with only EGL and GLES1 or GLES2.
...
Fixes #19
11 years ago
Eric Anholt
dbf940dabc
Test for using GLES1/2 without GLX installed.
11 years ago
Eric Anholt
7f68641d1b
Make headerguards check for double-inclusion of our own headers.
...
Since I was touching these bits, it was easy enough to make sure that
our header guards work on our own headers.
11 years ago
Eric Anholt
972989b4ce
Fix copyrights on the Makefile.ams.
...
When initially writing the Makefiles, I started from a Makefile.am
that had ajax's copyright instead of an Intel one. The only line I
can see that's left from the original Makefile.am is "pkgconfigdir" in
the root Makefile.am.
11 years ago
Eric Anholt
c92fcc852f
Fix testsuite build on OS X.
...
There's no linker flag of this name in the normal clang, presumably
beause the linker feature doesn't exist.
11 years ago
Eric Anholt
3d2a2b3c80
Abandon ifuncs and go with the traditional global function pointers.
...
In addition to the failing testcase, there were a couple of
regressions in piglit's attribs test: one from glBegin_unwrapped vs
glBegin confusion in the __asm__ directives we were generating, and
one where the function pointers apparently were just getting mixed up
at application runtime.
11 years ago
Eric Anholt
e58e98feee
Fix the behavior of glx_shared_znow if it doesn't die at startup.
...
We're sharing the source file with glx_static, but we don't want to
SKIP due to not being statically linked.
11 years ago
Eric Anholt
5c4f73fa7f
Add a test showing a way that our ifuncs are broken.
11 years ago
Eric Anholt
acd3b38d6e
Relink tests when the library changes.
...
For the dynamically-linked tests, it wasn't a big deal because the
updated library was always picked up. But for glx_static, we were
actually testing stale code.
11 years ago
Eric Anholt
d6e4e9ac4c
Fix the build of the headerguards test on OS X.
11 years ago
Eric Anholt
34d7b3d872
Fix signedness warning on OS X build of the testsuite.
11 years ago
Eric Anholt
6553c08752
Fix compiler warning in glx_static.
11 years ago
Eric Anholt
22ce76fe0b
Make glx_static report skip if it was built non-static.
...
It won't have that symbol, unless it happens to be linked against the
full library.
11 years ago
Eric Anholt
2206e6e302
Add a testcase for trying to use libepoxy as a static library.
...
Note that it will only actually link statically against epoxy if
you've set --enable-static.
11 years ago
Eric Anholt
ca14052cfe
Add a test for basic functionality on win32.
11 years ago