summaryrefslogtreecommitdiff
path: root/src/glx/glxcurrent.c
AgeCommit message (Collapse)AuthorFilesLines
2015-03-11glx: remove support for non-multithreaded platformsEmil Velikov1-11/+0
Implicitly required for a while, although commit 9385c592c68 (mapi: remove u_thread.h) was the one that put the final nail on the coffin. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2015-03-11glx: remove final reference to THREADSEmil Velikov1-4/+0
Left over from commit 18db13f5865(mapi: THREADS was always defined, remove it) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2015-03-06Revert "glx: remove final reference to THREADS"Emil Velikov1-0/+4
This reverts commit 8b15a883e0ba72c9156d7192a798bb272e0bc528. Not meant to go in yet. Lacking review.
2015-03-06Revert "glx: remove support for non-multithreaded platforms"Emil Velikov1-0/+11
This reverts commit 38591295cd4b68f89f257b20f476f98de3772a47. Not meant to go in yet. Lacking review.
2015-03-06glx: remove support for non-multithreaded platformsEmil Velikov1-11/+0
Implicitly required for a while, although commit 9385c592c68 (mapi: remove u_thread.h) was the one that put the final nail on the coffin. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-03-06glx: remove final reference to THREADSEmil Velikov1-4/+0
Left over from commit 18db13f5865(mapi: THREADS was always defined, remove it) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2014-05-23Fix build of appleglxJon TURNEY1-6/+0
Define GLX_USE_APPLEGL, as config/darwin used to, to turn on specific code to use the applegl direct renderer Convert src/glx/apple/Makefile to automake Since the applegl libGL is now built by linking libappleglx into libGL, rather than by linking selected files into a special libGL: - Remove duplicate code in apple/glxreply.c and apple/apple_glx.c. This makes apple/glxreply.c empty, so remove it - Some indirect rendering code is already guarded by !GLX_USE_APPLEGL, but we need to add those guards to indirect_glx.c, indirect_init.c (via it's generator), render2.c and vertarr.c so they don't generate anything Fix and update various includes glapi_gentable.c (which is only used on darwin), should be included in shared glapi as well, to provide _glapi_create_table_from_handle() Note that neither swrast nor indirect is supported in the APPLEGL path at the moment, which makes things more complex than they need to be. More untangling is needed to allow that v2: Correct apple/Makefile.am for srcdir != builddir Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2014-03-05mesa: remove remaining uses of _glthread_GetID()Brian Paul1-10/+0
It was really only used in the radeon driver for a debug printf. And evidently, libGL.so referenced it just to work around some sort of linker issue. This patch removes the two calls to the function and the function itself. Fixes undefined _glthread_GetID symbol in libGL reported by 'nm'. Though, the missing symbol doesn't cause any issues on my system but it does cause glxinfo to fail on one of our test systems. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-10-08glx: Generate fewer errors in MakeContextCurrentAdam Jackson1-10/+0
For a few reasons. 1: In the (current) common case, these conditionals are never true. All we're doing by checking them is slowing down MakeCurrent. The server does these checks already anyway. 2: GLX >= 3.0 contexts may legally be made current without a bound framebuffer. This does not fix piglit/glx-create-context-current-no-framebuffer, but is a prerequisite for fixing it. Cc: "9.1 9.2" <mesa-stable@lists.freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-10-01build: Use AX_PTHREAD's HAVE_PTHREAD preprocessor definitionMatt Turner1-2/+2
2011-06-20glx: Fix compile.Stéphane Marchesin1-1/+1
2011-06-20glx: Bind to our context before __glXSetCurrentContextJeremy Huddleston1-9/+16
We want to bind to our context before calling __glXSetCurrentContext or messing with the gc rect in order to properly handle error conditions. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-06-20glx: Destroy the old context only after the new one has been boundJeremy Huddleston1-7/+7
This fixes a regression introduced by 49d7e48b33264d94e30af6129c281b6acafa9427 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-06-17glx: implement drawable refcounting.Stéphane Marchesin1-7/+7
The current dri context unbind logic will leak drawables until the process dies (they will then get released by the GEM code). There are two ways to fix this: either always call driReleaseDrawables every time we unbind a context (but that costs us round trips to the X server at getbuffers() time) or implement proper drawable refcounting. This patch implements the latter. Signed-off-by: Antoine Labour <piman@chromium.org> Signed-off-by: Stéphane Marchesin <marcheu@chromium.org> Reviewed-by: Adam Jackson <ajax@redhat.com>
2011-06-08glx: Remove some GLX_USE_APPLEGL guards around glapiJeremy Huddleston1-7/+3
Now that we're using glapi, we don't need some GLX_USE_APPLEGL ifdef-foo Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-06-05glx: Dead code removalJeremy Huddleston1-2/+0
Remove a redundant ifndef GLX_USE_APPLEGL Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-06-05apple: ifdef out come glapi-foo on darwinJeremy Huddleston1-0/+4
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-03-10glx: fix null pointer deref in __glXGenerateError()Brian Paul1-5/+5
The gc var would be NULL if called from line 238. Instead, get the opcode from __glXSetupForCommand(dpy) as done in other places. And remove the unused gc parameter. Fixes a bug reported by "John Doe" on 3/9/2011. NOTE: This is a candidate for the 7.10 branch.
2011-02-26mesa: Add new MESA_multithread_makecurrent extension.Eric Anholt1-22/+33
This extension allows a client to bind one context in multiple threads simultaneously. It is then up to the client to manage synchronization of access to the GL, just as normal multithreaded GL from multiple contexts requires synchronization management to shared objects.
2010-09-09glx: Optimize out no-op make current callsKristian Høgsberg1-0/+4
This make a lot more sense now that we might have to recreate the glx drawables for legacy code paths.
2010-09-08glx: Fix use after free problemKristian Høgsberg1-6/+7
2010-09-08glx: Drop broken drawable garbage collectionKristian Høgsberg1-3/+3
Doesn't work for pixmaps, was looking up the GLX XID and was never thread safe. Instead, just destroy the client side structures when the drawable is no long current for a context.
2010-09-07glx: Set an all NULL vtable for dummyContextKristian Høgsberg1-1/+2
This reverts 6a6e6d7b0a84e20f9754af02a575ae34081d310c and initializes dummyContext with an all NULL vtable. The context vtable pointer is supposed to always be non-NULL, but the vtable entries can be NULL.
2010-07-29glx: Compare old ctx against dummyCtx, not NULLKristian Høgsberg1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=29302
2010-07-28glx: Split indirect and applegl implementations into different filesKristian Høgsberg1-147/+0
2010-07-28glx: Move bind and unbind to context vtableKristian Høgsberg1-172/+74
2010-07-28glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types.Kristian Høgsberg1-16/+18
2010-07-28glx: Rename __GLXscreenConfigs to struct glx_screenKristian Høgsberg1-2/+2
Because double underscores in private type names is painful.
2010-07-28glx: Use _X_EXPORT instead of our own PUBLIC macroKristian Høgsberg1-5/+5
We're an X client library, so we can use Xfuncproto.h.
2010-07-28glx: Rename __GLcontextModes to struct glx_configKristian Høgsberg1-1/+1
With this rename, we use 'config' consitently to refer to GLX configurations instead of the modes/configs/visual mess before.
2010-07-23glx: Move context destroy to context vtableKristian Høgsberg1-21/+2
2010-07-22glx: Allocate the __GLXcontext in the DRI driversKristian Høgsberg1-5/+3
2010-07-19glx: Move drawHash to display privateKristian Høgsberg1-3/+3
The XIDs are display wide so the natural location of the hash is here. This way we don't have to lookup in each of the screen hashes.
2010-07-19glx: Add screen privates for dri drivers and moved some fields thereKristian Høgsberg1-1/+1
GLXscreenConfigs is badly named and a dumping ground for a lot of stuff. This patch creates private screen structs for the dri drivers and moves some of their fields over there.
2010-04-27apple: Change ifdefs for DRI to be DRI && !APPLEJeremy Huddleston1-10/+10
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-27apple: Initial import of libGL for OSX from AppleSGLX svn repository.Jeremy Huddleston1-5/+48
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-01Revert accidental commits from the xquartz treeJeremy Huddleston1-56/+13
This reverts commit 9aadc793f3db64cefa0b08f18abad424a659dacc. This reverts commit 69ea4e7718efb60b6b0d795a355cebd6712ceac1. This reverts commit dbe8b013936d977ec63d6607bfd2fc6772d29787. This reverts commit 23215ef4d60a86d9f3b3fdc08e3fdadc59e98890. This reverts commit 9495e3703062d1ddaf3161f4efc23f0b51284d9b. This reverts commit 0594cf70883b64692ba617d85f4f9b4e636e5c2b. This reverts commit 86a7978d37393ee34f876569ac06ffdb8d7289ae. This reverts commit 437902ce978cde9a0e1aa260f12dc232a8501c42.
2010-04-01apple: Change ifdefs for DRI to be DRI && !APPLEJeremy Huddleston1-10/+10
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-01apple: Initial import of libGL for OSX from AppleSGLX svn repository.Jeremy Huddleston1-5/+48
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-02-09Retire miniglx and move the actual glx code up to src/glxKristian Høgsberg1-0/+513