Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | glx: Drop broken drawable garbage collection | Kristian Høgsberg | 2010-09-08 | 9 | -59/+48 |
| | | | | | | 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. | ||||
* | glx: Set an all NULL vtable for dummyContext | Kristian Høgsberg | 2010-09-07 | 3 | -8/+9 |
| | | | | | | 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. | ||||
* | glx: Fix compilation with out xf86vidmode | Kristian Høgsberg | 2010-09-07 | 1 | -7/+1 |
| | |||||
* | glx: Use GLX_BufferSwapComplete unconditionally, we require glproto 1.4.11 | Kristian Høgsberg | 2010-09-07 | 1 | -11/+0 |
| | |||||
* | Fix crashes when some GLX API entrypoints are called with no current context. | Michel Dänzer | 2010-09-07 | 1 | -5/+5 |
| | | | | | | | | | I was hitting this with gliv. The GLX spec explicitly mentions that glXWaitX, glXWaitGL and glXUseXFont calls are ignored when there's no current context. Not sure what if anything the GLX_EXT_texture_from_pixmap spec says about this, but I think ignoring the calls makes more sense than crashing there as well. :) | ||||
* | Make XF86VIDMODE extension optional | Jon TURNEY | 2010-09-07 | 2 | -1/+7 |
| | | | | | | | | | | | | | | Code in glx/glxcmds.c which uses the XF86VIDMODE extension is already guarded. Also use that guard to control inclusion of the xf86vmode.h header, and only enable that guard if the XF86VIDMODE extension is found by pkgconfig. This changes the behaviour on platforms which XF86VIDMODE exists, in that XF86VIDMODE used to be mandatory, but is now optional. Presumably other build systems are already arranging for -DXF86VIDMODE to be supplied to the complier when glxcmds.c is compiled, so are not affected by this change Signed-off-by: Jon TURNEY <[email protected]> | ||||
* | glx: Drop unused dri2proto.h include | Kristian Høgsberg | 2010-09-07 | 1 | -1/+0 |
| | |||||
* | glx: Move dpy and scr fields out of direct rendering conditional | Kristian Høgsberg | 2010-09-07 | 1 | -3/+3 |
| | | | | | | | Nothing direct rendering specific about these fields. Moving them out makes no-direct-rendering compilation work again. Signed-off-by: Kristian Høgsberg <[email protected]> | ||||
* | Some fixes for GLX_INDIRECT_RENDERING only build | Jon TURNEY | 2010-09-07 | 3 | -5/+9 |
| | | | | | | | This fixes some of the build issues with GLX_INDIRECT_RENDERING but !GLX_DIRECT_RENDERING due to recent changes. Signed-off-by: Jon TURNEY <[email protected]> Signed-off-by: Kristian Høgsberg <[email protected]> | ||||
* | glx: Only clear the stored context tag when the context has been unbound | Jon TURNEY | 2010-09-07 | 1 | -5/+8 |
| | | | | | | | | | | | | | | The calling order of ->bind and ->unbind changed and then ->unbind would clear the currentContextTag of the old context before ->bind could reuse it in the make current request, in the indirect case. Instead, clear the old currentContextTag if and only if we send a request to the server to actually unbind it or reassign it to another context. https://bugs.freedesktop.org/show_bug.cgi?id=29977 Signed-off-by: Jon TURNEY <[email protected]> Signed-off-by: Kristian Høgsberg <[email protected]> | ||||
* | make: Use C++ compiler to link stdc++ library. | Brian Paul | 2010-08-24 | 1 | -2/+3 |
| | | | | | glxinfo and glxgears run on swrast and softpipe without undefined symbol errors. | ||||
* | glx: Move deref after NULL check | Kristian Høgsberg | 2010-08-04 | 1 | -1/+2 |
| | |||||
* | glx: Fix use after free in drisw error path | Kristian Høgsberg | 2010-08-04 | 1 | -2/+1 |
| | |||||
* | glx: We no longer need screen extensions for drisw | Kristian Høgsberg | 2010-08-04 | 1 | -2/+0 |
| | | | | https://bugs.freedesktop.org/show_bug.cgi?id=29177 | ||||
* | glx: dri2InvalidateBuffers() needs the X drawable XID not the GLX one | Kristian Høgsberg | 2010-08-04 | 1 | -2/+2 |
| | | | | This never ceases to entertain. | ||||
* | glx: Drop _Xglobal_lock while we create and initialize glx display | Kristian Høgsberg | 2010-08-02 | 1 | -21/+39 |
| | |||||
* | glx: Fix copy/paste bug in glXWaitX and glXWaitGL | Kristian Høgsberg | 2010-07-29 | 1 | -2/+2 |
| | | | | https://bugs.freedesktop.org/show_bug.cgi?id=29304 | ||||
* | glx: Compare old ctx against dummyCtx, not NULL | Kristian Høgsberg | 2010-07-29 | 3 | -2/+4 |
| | | | | https://bugs.freedesktop.org/show_bug.cgi?id=29302 | ||||
* | glx: Fix linked list deletion in __glXCloseDisplay() | Kristian Høgsberg | 2010-07-29 | 1 | -1/+1 |
| | | | | I hate single linked lists. | ||||
* | glx: Split indirect and applegl implementations into different files | Kristian Høgsberg | 2010-07-28 | 7 | -547/+624 |
| | |||||
* | glx: Move bind and unbind to context vtable | Kristian Høgsberg | 2010-07-28 | 11 | -275/+205 |
| | |||||
* | glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types. | Kristian Høgsberg | 2010-07-28 | 28 | -757/+770 |
| | |||||
* | glx: Rename __GLXscreenConfigs to struct glx_screen | Kristian Høgsberg | 2010-07-28 | 10 | -101/+99 |
| | | | | Because double underscores in private type names is painful. | ||||
* | glx: Use _X_EXPORT instead of our own PUBLIC macro | Kristian Høgsberg | 2010-07-28 | 7 | -101/+74 |
| | | | | We're an X client library, so we can use Xfuncproto.h. | ||||
* | glx: Rename glcontextmodes.[ch] to glxconfig.[ch] | Kristian Høgsberg | 2010-07-28 | 7 | -7/+4 |
| | |||||
* | glx: Rename __GLcontextModes to struct glx_config | Kristian Høgsberg | 2010-07-28 | 17 | -289/+258 |
| | | | | | With this rename, we use 'config' consitently to refer to GLX configurations instead of the modes/configs/visual mess before. | ||||
* | glx: Delete unused glcontextmodes.c functions | Kristian Høgsberg | 2010-07-28 | 3 | -101/+0 |
| | |||||
* | glx: Stop using glcore.h and glxint.h in glx | Kristian Høgsberg | 2010-07-28 | 3 | -93/+90 |
| | | | | We'd like to get rid of these header files. | ||||
* | Avoid a compiler warning about a potentially unused variable. | Carl Worth | 2010-07-28 | 1 | -1/+1 |
| | | | | | | | | | There is no assignment to the "ret" variable if X_DRI2SwapBuffers is not defined. In this case, the earlier explicit "return 0" is likely to be used, but the compiler can't be sure of that, (nor can I for that matter). We cover this case by explicitly initializing "ret" to 0. | ||||
* | Avoid compiler warning for unused glx_dpy variable. | Carl Worth | 2010-07-28 | 1 | -1/+1 |
| | | | | | | | | | | My earlier attempt to eliminate this warning (c0ca2bfb2ad8c) was invalid as it removed the variable declaration. Jerome correctly reverted that (600c85efdb0ff) since the variable is used when X_DRI2SwapBuffers is defined. Here, instead of removing the declaration, we move it to inside the correct #ifdef. | ||||
* | glx: Remove function prototypes no longer necessary | Kristian Høgsberg | 2010-07-26 | 1 | -7/+0 |
| | |||||
* | glx: Drop debug fprintf that snug in with the previous commit | Kristian Høgsberg | 2010-07-26 | 1 | -2/+0 |
| | |||||
* | glx: Enable copy subbuffer patch when GLX_DIRECT_RENDERING is #defined | Kristian Høgsberg | 2010-07-26 | 1 | -1/+3 |
| | | | | | | | Depending on __DRI_COPY_SUB_BUFFER doesn't work when we no longer include dri_interface.h. https://bugs.freedesktop.org/show_bug.cgi?id=29264 | ||||
* | glx: Drop duplicate psc field in dri context struct | Kristian Høgsberg | 2010-07-26 | 1 | -3/+2 |
| | | | | Same problem as fixed for drisw in 4d58b5b482d06ab8d4c4b2db33d0b48b7c82d064. | ||||
* | glx: Drop duplicate psc field in drisw context struct | Kristian Høgsberg | 2010-07-24 | 1 | -3/+3 |
| | | | | Causing a crash in drisw MakeCurrent. | ||||
* | glx: Fix another case of confusing driContext and dri2_context * | Eric Anholt | 2010-07-23 | 1 | -1/+1 |
| | |||||
* | glx: Correctly look up the dri2 context pointer for SetTexBuffer. | Eric Anholt | 2010-07-23 | 1 | -1/+1 |
| | | | | | | | gc->driContext points at the second member of the dri2 context. The dri2 context is just a subclass of the GLX context. Fixes piglit tfp testcase. | ||||
* | glx: Don't destroy context with XID 0 | Kristian Høgsberg | 2010-07-23 | 4 | -4/+9 |
| | | | | | We use XID 0 to indicate the context has already been destroyed, but it's currently bound. | ||||
* | glx: Fix use after free case when destroying screens | Kristian Høgsberg | 2010-07-23 | 1 | -1/+0 |
| | |||||
* | glx: zero out drawable structs after allocation | Kristian Høgsberg | 2010-07-23 | 3 | -0/+3 |
| | |||||
* | glx: Refactor and simplify context creation | Kristian Høgsberg | 2010-07-23 | 6 | -205/+185 |
| | | | | | This lets us better separate context creation between the different backends. | ||||
* | glx: Fix indirect screen initialization | Kristian Høgsberg | 2010-07-23 | 1 | -2/+7 |
| | | | | https://bugs.freedesktop.org/show_bug.cgi?id=29225 | ||||
* | glx: Move context destroy to context vtable | Kristian Høgsberg | 2010-07-23 | 7 | -105/+83 |
| | |||||
* | glx: Don't try to swap a front buffer if we don't have one. | Eric Anholt | 2010-07-23 | 1 | -1/+2 |
| | | | | Fixes glean glsl1 since 7b7845a076c933e096ac511b4184141ba194449a | ||||
* | glx: Drop screen argument to GetGLXDRIDrawable | Kristian Høgsberg | 2010-07-22 | 4 | -43/+33 |
| | | | | We'll just get it from the returned drawable when we need it. | ||||
* | glx: Move WaitGL, WaitX, UseXFont to context vtable functions | Kristian Høgsberg | 2010-07-22 | 6 | -101/+97 |
| | |||||
* | glx: Allocate the __GLXcontext in the DRI drivers | Kristian Høgsberg | 2010-07-22 | 6 | -124/+136 |
| | |||||
* | glx: Use _Xglobal_lock for protecting extension display list | Kristian Høgsberg | 2010-07-22 | 3 | -126/+86 |
| | | | | Avoids double locking glXLock in the X wire to event handlers. | ||||
* | glx: Move last few dri_interface.h types out of glxclient.h and drop include | Kristian Høgsberg | 2010-07-21 | 4 | -12/+19 |
| | |||||
* | glx: Move __driContext field out of __GLXcontextRec | Kristian Høgsberg | 2010-07-21 | 2 | -4/+3 |
| |