summaryrefslogtreecommitdiff
path: root/src/glx
AgeCommit message (Collapse)Author
2010-09-09glx: Optimize out no-op make current callsKristian Høgsberg
This make a lot more sense now that we might have to recreate the glx drawables for legacy code paths.
2010-09-09glx: Fix another use-after-free problemKristian Høgsberg
2010-09-08glx: Destroy pixmap after destroying glx and dri drawablesKristian Høgsberg
Now that we suppress BadDrawable from DRI2DestroyDrawable, this doesn't matter, but we would get that error before when destroying pbuffers.
2010-09-08glx: Ignore DRI2 event for drawables we've destroyedKristian Høgsberg
Since we now actually destroy GLX drawables, we get into situations where we get events for drawables that no longer exist. Just ignore the event in that case.
2010-09-08glx: Fix use after free problemKristian Høgsberg
2010-09-08glx: Drop broken drawable garbage collectionKristian Høgsberg
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øgsberg
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-09-07glx: Fix compilation with out xf86vidmodeKristian Høgsberg
2010-09-07glx: Use GLX_BufferSwapComplete unconditionally, we require glproto 1.4.11Kristian Høgsberg
2010-09-07Fix crashes when some GLX API entrypoints are called with no current context.Michel Dänzer
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. :)
2010-09-07Make XF86VIDMODE extension optionalJon TURNEY
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 <jon.turney@dronecode.org.uk>
2010-09-07glx: Drop unused dri2proto.h includeKristian Høgsberg
2010-09-07glx: Move dpy and scr fields out of direct rendering conditionalKristian Høgsberg
Nothing direct rendering specific about these fields. Moving them out makes no-direct-rendering compilation work again. Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
2010-09-07Some fixes for GLX_INDIRECT_RENDERING only buildJon TURNEY
This fixes some of the build issues with GLX_INDIRECT_RENDERING but !GLX_DIRECT_RENDERING due to recent changes. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
2010-09-07glx: Only clear the stored context tag when the context has been unboundJon TURNEY
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 <jon.turney@dronecode.org.uk> Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
2010-08-24make: Use C++ compiler to link stdc++ library.Brian Paul
glxinfo and glxgears run on swrast and softpipe without undefined symbol errors.
2010-08-04glx: Move deref after NULL checkKristian Høgsberg
2010-08-04glx: Fix use after free in drisw error pathKristian Høgsberg
2010-08-04glx: We no longer need screen extensions for driswKristian Høgsberg
https://bugs.freedesktop.org/show_bug.cgi?id=29177
2010-08-04glx: dri2InvalidateBuffers() needs the X drawable XID not the GLX oneKristian Høgsberg
This never ceases to entertain.
2010-08-02glx: Drop _Xglobal_lock while we create and initialize glx displayKristian Høgsberg
2010-07-29glx: Fix copy/paste bug in glXWaitX and glXWaitGLKristian Høgsberg
https://bugs.freedesktop.org/show_bug.cgi?id=29304
2010-07-29glx: Compare old ctx against dummyCtx, not NULLKristian Høgsberg
https://bugs.freedesktop.org/show_bug.cgi?id=29302
2010-07-29glx: Fix linked list deletion in __glXCloseDisplay()Kristian Høgsberg
I hate single linked lists.
2010-07-28glx: Split indirect and applegl implementations into different filesKristian Høgsberg
2010-07-28glx: Move bind and unbind to context vtableKristian Høgsberg
2010-07-28glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types.Kristian Høgsberg
2010-07-28glx: Rename __GLXscreenConfigs to struct glx_screenKristian Høgsberg
Because double underscores in private type names is painful.
2010-07-28glx: Use _X_EXPORT instead of our own PUBLIC macroKristian Høgsberg
We're an X client library, so we can use Xfuncproto.h.
2010-07-28glx: Rename glcontextmodes.[ch] to glxconfig.[ch]Kristian Høgsberg
2010-07-28glx: Rename __GLcontextModes to struct glx_configKristian Høgsberg
With this rename, we use 'config' consitently to refer to GLX configurations instead of the modes/configs/visual mess before.
2010-07-28glx: Delete unused glcontextmodes.c functionsKristian Høgsberg
2010-07-28glx: Stop using glcore.h and glxint.h in glxKristian Høgsberg
We'd like to get rid of these header files.
2010-07-28Avoid a compiler warning about a potentially unused variable.Carl Worth
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.
2010-07-28Avoid compiler warning for unused glx_dpy variable.Carl Worth
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.
2010-07-26glx: Remove function prototypes no longer necessaryKristian Høgsberg
2010-07-26glx: Drop debug fprintf that snug in with the previous commitKristian Høgsberg
2010-07-26glx: Enable copy subbuffer patch when GLX_DIRECT_RENDERING is #definedKristian Høgsberg
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
2010-07-26glx: Drop duplicate psc field in dri context structKristian Høgsberg
Same problem as fixed for drisw in 4d58b5b482d06ab8d4c4b2db33d0b48b7c82d064.
2010-07-24glx: Drop duplicate psc field in drisw context structKristian Høgsberg
Causing a crash in drisw MakeCurrent.
2010-07-23glx: Fix another case of confusing driContext and dri2_context *Eric Anholt
2010-07-23glx: Correctly look up the dri2 context pointer for SetTexBuffer.Eric Anholt
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.
2010-07-23glx: Don't destroy context with XID 0Kristian Høgsberg
We use XID 0 to indicate the context has already been destroyed, but it's currently bound.
2010-07-23glx: Fix use after free case when destroying screensKristian Høgsberg
2010-07-23glx: zero out drawable structs after allocationKristian Høgsberg
2010-07-23glx: Refactor and simplify context creationKristian Høgsberg
This lets us better separate context creation between the different backends.
2010-07-23glx: Fix indirect screen initializationKristian Høgsberg
https://bugs.freedesktop.org/show_bug.cgi?id=29225
2010-07-23glx: Move context destroy to context vtableKristian Høgsberg
2010-07-23glx: Don't try to swap a front buffer if we don't have one.Eric Anholt
Fixes glean glsl1 since 7b7845a076c933e096ac511b4184141ba194449a
2010-07-22glx: Drop screen argument to GetGLXDRIDrawableKristian Høgsberg
We'll just get it from the returned drawable when we need it.