- 13 Mar, 2019 1 commit
-
-
Kyle Brenneman authored
-
- 13 Feb, 2019 2 commits
-
-
Kyle Brenneman authored
AARCH64 : Fix address passed to clear cache
-
Sai Kiran Korwar authored
The entrypointExec address is modified before being passed to clear_cache function. We do a small add/subtract for ARMv7 in order to enable Thumb mode. This is not required for Aarch64 as it does not support Thumb mode. Since we were not adding anything, do not subtract as well before passing the address to clear_cache. This was causing a crash while calling glXGetProcAddress.
-
- 26 Nov, 2018 1 commit
-
-
Kyle Brenneman authored
GLdispatch: Fix the TOC save in the PPC64LE TSD stubs (v2)
-
- 01 Nov, 2018 3 commits
-
-
Kyle Brenneman authored
We don't need to save and restore r12 across the call to _glapi_get_current. It's only used for function linkage, and the dispatch stub overwrites the value a few instructions later anyway.
-
Kyle Brenneman authored
We can't use a simple ld instruction for a slot greater than or equal to 4096, because the offset no longer fits in the signed 16-bit offset field. Instead, use an addis instruction to deal with the high-order bits in the offset.
-
Kyle Brenneman authored
Call _glapi_get_current through the PLT call stub. The PLT call stub takes care of saving the TOC pointer. Also rearranged the assembly code to remove the need for a backwards jump after calling _glapi_get_current.
-
- 04 Oct, 2018 1 commit
-
-
Kyle Brenneman authored
In GL/gl.h, remove PFNGLBLENDCOLORPROC, PFNGLBLENDEQUATIONPROC, and the GL_OES_EGL_image section. PFNGLBLENDCOLORPROC and PFNGLBLENDEQUATIONPROC are defined in GL/glext.h in the GL_VERSION_1_4 section. GL_OES_EGL_image is defined in GLES/glext.h and GLES2/gl2ext.h, and the GLeglImageOES typedef is also defined in GL/glext.h under GL_EXT_EGL_image_storage.
-
- 20 Sep, 2018 1 commit
-
-
Kyle Brenneman authored
This is important for testing the TSD stubs, which have a separate fast path for single-threaded programs. The TSD stubs start with a simple global variable to hold the dispatch table so that a single-threaded program doesn't have to deal with the overhead of calling pthread_getspecific. When a second thread comes along, it sets that variable to NULL, which makes the stubs call pthread_getspecific instead. This change adds a flag to the testgldispatch test program that tells it to call into libGLdispatch from two threads to force it into its multi-threaded mode. It also adds three new test scripts, which are the same testgldispatch tests but for the multithreaded path.
-
- 19 Sep, 2018 1 commit
-
-
Kyle Brenneman authored
In __glDispatchCheckMultithreaded, don't unlock the mutex until after calling stubCurrentPatchCb->threadAttach. Without that lock, another thread could come along and change stubCurrentPatchCb out from under it.
-
- 17 Aug, 2018 3 commits
-
-
Kyle Brenneman authored
When you run "make dist", the resulting tarball includes all of the generated files. When building from that, we don't need to generate anything.
-
Kyle Brenneman authored
The $(VM_V_GEN) variable should be $(AM_V_GEN).
-
Kyle Brenneman authored
build: Find Python the Autotools way
-
- 16 Aug, 2018 1 commit
-
-
Mathieu Bridon authored
An added advantage to this is that it makes it really easy to build with Python 3, the same way other Autotools projects support it: $ export PYTHON=/usr/bin/python3 $ ./configure
-
- 24 Jul, 2018 1 commit
-
-
Kyle Brenneman authored
-
- 20 Jun, 2018 1 commit
-
-
Kyle Brenneman authored
Update the gl.xml, GL/glext.h, and the GLES headers to commit 42f61786696df5102625d9b046976ee857645704 from the Khronos registry.
-
- 06 Jun, 2018 1 commit
-
-
Kyle Brenneman authored
Remove FindProcIndex, __eglSetDispatchIndex, and __eglDispatchFindDispatchFunction from egldispatchstubs.c. The dispatch indices are allocated and assigned during initialization, so none of those functions are ever called.
-
- 24 May, 2018 1 commit
-
-
Kyle Brenneman authored
Add a separate version script export_list_tsd.ver for the TSD build of libGLdispatch, since the two builds don't have the same set of symbols.
-
- 13 Apr, 2018 1 commit
-
-
Kyle Brenneman authored
Don't point nonst_HEADERS or EXTRA_DIST at entire directories. That causes "make dist" to include files that it shouldn't, such as configured makefiles and .pyc files. Also added a few generated header files to noinst_HEADERS.
-
- 11 Apr, 2018 1 commit
-
-
Kyle Brenneman authored
The -export-symbols option in libtool creates a version script on Linux, but on FreeBSD it instead uses the -retain-symbols-file option, which doesn't do anything with the dynamic symbol table. Instead, manually pass the --version-script option to the linker.
-
- 27 Mar, 2018 1 commit
-
-
Kyle Brenneman authored
Various fixes so that libglvnd can build and run on FreeBSD. The only change to C code is to deal with a difference in the parameters for mincore(2). Most of the rest is to to remove the dependency on GNU make and bash.
-
- 26 Mar, 2018 10 commits
-
-
Kyle Brenneman authored
The third parameter to mincore(2) can be a pointer to char or unsigned char, depending on what system it's building on. To build in either case, just cast that argument to a (void *).
-
Kyle Brenneman authored
Not all systems have bash available, and in those that do, we can't assume that it's located at /bin/bash.
-
Kyle Brenneman authored
On FreeBSD, $host_cpu is set to "amd64" instead of "x86_64", so update the configure script to recognize either string.
-
Kyle Brenneman authored
Add an AC_CHECK_FUNC call to check whether dlopen is available without any additional libraries. Some systems provide dlopen as part of libc, in which case we can't (and don't need to) link against libdl.so.
-
Kyle Brenneman authored
glapi_gen_libglglxstubs is only used once, so just expand it out instead of using a function.
-
Kyle Brenneman authored
Remove the now-empty file glvnd_gen.mk.
-
Kyle Brenneman authored
Change glapi_gen_mapi to be a makefile variable instead of a function, so that it still works when not using GNU make.
-
Kyle Brenneman authored
$(glapi_gen_mapi) is only used in the vnd-glapi makefile, so define it there.
-
Kyle Brenneman authored
Generating a symbol list for the entrypoint libraries used to be necessary when we generated the same set of dispatch stubs in each library. Since then, we only generate the stubs that each library is going to export, so we don't need a separate export list anymore.
-
Kyle Brenneman authored
Don't generate g_glapi_mapi_gl_tmp.h in the libGL makefile. That's not needed anymore, because all of the GLDispatch stuff is built separately under src/GLdispatch/vnd-glapi. Likewise, remove the STATIC_DISPATCH_ONLY define from the compiler flags.
-
- 08 Mar, 2018 1 commit
-
-
Kyle Brenneman authored
GLX: Work around 'X_GLXCreateContextAtrribsARB' typo fix API break
-
- 05 Mar, 2018 2 commits
-
-
Kyle Brenneman authored
Handle dlsym succeeding with info.dli_sname == NULL.
-
Christopher James Halse Rogers authored
When dlsym is handed an address in a shared object that doesn't match a symbol in that shared object (such as a C++ vtable) it returns success but sets dli_sname to null. Handle this case rather than crashing.
-
- 26 Feb, 2018 1 commit
-
-
Kyle Brenneman authored
Always return an error from eglMakeCurrent if the EGLDispaly is invalid
-
- 22 Feb, 2018 1 commit
-
-
Kyle Brenneman authored
In eglMakeCurrent, check to make sure the EGLDisplay is valid, even if the context is NULL. Fixes https://github.com/NVIDIA/libglvnd/issues/151
-
- 12 Feb, 2018 1 commit
-
-
Aaron Plattner authored
Older versions of glxproto.h contained a typo where "Attribs" was misspelled. The typo was fixed in the xorgproto version of glxproto.h, breaking the API. Fixes #149.
-
- 31 Jan, 2018 1 commit
-
-
Kyle Brenneman authored
Bump the version numbers in the library filenames
-
- 30 Jan, 2018 1 commit
-
-
Kyle Brenneman authored
If libglvnd is installed onto a system that already has non-libglvnd versions of any of the OpenGL libraries installed, then ldconfig can get confused about which files to create symlinks to. At worst, you could end up with a mix of the libglvnd libraries and leftover non-libglvnd libraries. To avoid that, bump the version numbers in these filenames: - libGL.so.1.0.0 -> libGL.so.1.7.0 - libGLESv1_CM.so.1.0.0 -> libGLESv1_CM.so.1.2.0 - libGLESv2.so.2.0.0 -> libGLESv2.so.2.1.0 - libEGL.so.1.0.0 -> libEGL.so.1.1.0 Fixes https://github.com/NVIDIA/libglvnd/issues/147
-
- 17 Jan, 2018 1 commit
-
-
Kyle Brenneman authored
Fix executable memory allocation ifdefs and size
-