summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/x11/xm_api.c
AgeCommit message (Collapse)Author
2008-06-05prefix some includes with mesa/ or glapi/Brian Paul
2008-04-23glcore: tree sharing for DRI and XMesaGeorge Sapountzis
2008-04-01added some missing calls to _mesa_enable_x_y_extensions()Brian
2007-05-25remove #include "GL/glxtokens.h"Brian
2007-05-22Fix xserver build after recent XMesa changes.Michel Dänzer
Only build tested.
2007-05-19Implement GLX_EXT_texture_from_pixmap.Brian
Could be done more efficiently... but works.
2007-04-20xmesa: call _glapi_set_dispatch() for all xserver DDXes.George Sapountzis
This is to unify the xmesa code across xserver DDX'es. The call is intented for XGL, but it does not hurt to call for other DDX'es. In fact it was not guarded against XGL when it was first added in xserver.
2007-04-20xmesa: minor cosmeticGeorge Sapountzis
mainly drop 'client' argument from initialize_visual_and_buffer().
2007-04-20xmesa: split FX functions to separate file, part 2.George Sapountzis
2007-04-20xmesa: split FX functions to separate file, part 1.George Sapountzis
2007-04-20xmesa: spilt FX code to separate functions.George Sapountzis
2007-04-20Revert "xmesa: drop glide (FX) backend."George Sapountzis
This reverts commit 2a2f8d806f74619f0a7cf97fdc7f7b3ad1cad81b.
2007-04-19xmesa: drop glide (FX) backend.George Sapountzis
glide is no longer compiled with stand-alone libGL, so this will not link. There are still the glide config files. some code in demos and the GLX_MESA_set_3dfx_mode code which could be removed.
2007-04-13xmesa: export xmesa functions used by xfree86.George Sapountzis
This uses xmesa.h as the GLcore interface and avoids adding an explicit GLcore inteface which would not be a proper interface anyway. It puts the declarations of the three functions specific for XMesa/XFree86 in xmesa.h, we can push them down to xmesa_xf86.h if hiding behind XFree86Server ifdef's is not enough.
2007-04-01Fix some bugs/issues related to alpha channel support. See bug 10483.Brian
2007-03-30Clean and update XMesa/XFree86 interface.George Sapountzis
Drop XMesaSetVisualDisplay(), XMesaReset(), no longer used. Add XMesaCopyContext() and move the GlxSetRenderTables() call for XGL within XMesaForceCurrent(). This is to make xserver/GL/mesa/X/xf86glx.c unaware of Mesa internals. Also, clean some ifdef's to make it clear that USE_XSHM and XFree86Server are mutually exclusive. Lastly, - move gcstruct.h from glxheader.h up to xmesa_xf86.h since it calls *gc->ops - drop GL/glxtokens.h from xm_api|dd.c, GLX tokens come from glcore.h and are used irrelevant of XFree86.
2007-03-23Implement alpha buffer copy for SwapBuffers().Brian
Nicolai writes: When the pixmap pixel format has no alpha channel, the x11 driver (software rendering) adds a wrapped alpha channel on request. During SwapBuffers, this alpha channel is not copied from back to front, which means that the front buffer doesn't really contain the contents that the back buffer previously contained. A subsequent glReadPixels from the front buffer will return an incorrect result. The following patch attempts to fix this.
2007-03-16Assorted fixes for dealing with zero-size frame/renderbuffers.Brian
In xmesa_check_and_update_buffer_size() handle xmctx==NULL correctly: still call _mesa_resize_framebufer(). If we don't we can wind up in a situation where the framebuffer size is non-zero but an attached renderbuffer size is still initialized to zero. This inconsistancy can later cause problems. Check for zero-size renderbuffers in update_color_draw_buffers() and update_color_read_buffer(). See bug 7205.
2007-03-16added null xmctx check to XMesaResizeBuffers(), bug 7205Mathias Hopf
2007-03-14clear the b->frontxrb->drawable field in xmesa_free_buffer(), see bug 7205Brian
2007-03-06formatting fixBrian
2007-03-06Fix/improve framebuffer object reference counting.Brian
Use _mesa_reference_framebuffer() and _mesa_unreference_framebuffer() functions to be sure reference counting is done correctly. Additional assertions are done too. Note _mesa_dereference_framebuffer() renamed to "unreference" as that's more accurate.
2007-02-26Rewrite code related to buffer destruction.Brian
Do proper reference counting so that we don't wind up with dangling references to deleted windows/framebuffers. Should help with bug 7205.
2007-02-02Merge branch 'vbo-0.2'Keith Whitwell
Conflicts: src/mesa/main/texcompress_s3tc.c src/mesa/tnl/t_array_api.c
2007-01-26Override Const.CheckArrayBounds for Xserver in XMesaCreateContext().George Sapountzis
This leaves one last XFree86Server ifdef in Mesa core. --- Bug 9285: misc glcore, xmesa cleanups ACKed by Ian Romanick.
2006-10-30switch several dri drivers overKeith Whitwell
2006-10-29switch over to vbo moduleKeith Whitwell
2006-10-17Remove get_buffer_size()Brian Paul
Always check window size in XMesaMakeCurrent() in case glViewport is not called.
2006-10-14Big re-org of buffer size management.Brian Paul
All buffer resizes now handled by xmesa_check_and_update_buffer_size() which uses the _mesa_resize_framebuffer() function. Moved all low-level XImage/Pixmap resizing into xm_buffers.c file. Also, update lots of comments for Doxygen.
2006-10-14assorted clean-upsBrian Paul
2006-08-30Use XAddExtension() to register an XCloseDisplay() callback function.Brian Paul
When the callback is called, free all Mesa's private visual and buffer data structures which are tied to the display. Fixes problems reported by Kitware.
2006-03-30When creating front/back renderbuffers, init the Red/Green/Blue/AlphaBits fieldsBrian Paul
2006-03-16Moved _glapi_check_multithread() call into drivers, instead of inBrian Paul
_mesa_make_current(). This removes an ugly #if !defined(IN_DRI_DRIVER) from core Mesa.
2006-01-10added a couple new assertions to help debug XGL problemBrian Paul
2005-12-02Fix two failures encountered when running out of memory during XImageBrian Paul
allocation. Append \n to _mesa_warning() strings.
2005-09-26Added XMesaDrawable to xmesa_renderbuffer. Use it in a few places insteadBrian Paul
of the XMesaPixmap field to avoid some X server-side issues with casting.
2005-09-23improve the test for using software alpha bufferBrian Paul
2005-09-12added a return upon out-of-memory, remove a needless assignmentBrian Paul
2005-09-12restore brace lost in previous check-inBrian Paul
2005-09-07some clean-up and re-org for renderbuffersBrian Paul
2005-09-02Prototype implementation of new GL_EXT_timer_query extension (not finalized ↵Brian Paul
yet). Extends the query mechanism to query elapsed time while rendering.
2005-08-09_mesa_free_framebuffer_data() call frees the renderbuffers, no need to call ↵Brian Paul
the Delete methods after
2005-07-19include driverfuncs.hBrian Paul
2005-07-16XMesaResizeBuffers needs separate paths for client and server buildsAdam Jackson
2005-07-01Remove NEW_RENDERBUFFER stuff.Brian Paul
Now, OLD_RENDERBUFFER marks code that needs to eventually be removed when all the drivers are updated to no longer need the SetBuffer() function.
2005-06-08check for double-buffered buffer in XMesaDestroyBuffer() (Dave Reveman)Brian Paul
2005-05-09fix some typos in FX codeDaniel Borca
2005-05-04Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul
Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
2005-04-20clean up buffer creation codeBrian Paul
2005-04-12PF_8A8R8G8B pixel format (Dave Reveman)Brian Paul