summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/x11
AgeCommit message (Collapse)Author
2007-04-04remove debug printfBrian
2007-04-01Fix some bugs/issues related to alpha channel support. See bug 10483.Brian
2007-04-01If using PF_8A8B8G8R, be sure alpha is correctly handled.Brian
2007-04-01re-order tokens, fix commentsBrian
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-25Fix some renderbuffer reference counting issues. Also fixes a mem leak.Brian
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-14move CLIENT_ID code in xmesa_delete_framebuffer(), see bug 7205Brian
2007-03-06fix renderbuffer mem leakBrian
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-27fix commentBrian
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.
2007-01-23fixes for C++ warnings/errorsBrian
2007-01-16Merge branch 'master' of git+ssh://keithw@git.freedesktop.org/git/mesa/mesa ↵Keith Whitwell
into vbo-0.2 Conflicts: src/mesa/array_cache/sources src/mesa/drivers/dri/i965/brw_context.c src/mesa/drivers/dri/i965/brw_draw.c src/mesa/drivers/dri/i965/brw_fallback.c src/mesa/drivers/dri/i965/brw_vs_emit.c src/mesa/drivers/dri/i965/brw_vs_tnl.c src/mesa/drivers/dri/mach64/mach64_context.c src/mesa/main/extensions.c src/mesa/main/getstring.c src/mesa/tnl/sources src/mesa/tnl/t_save_api.c src/mesa/tnl/t_save_playback.c src/mesa/tnl/t_vtx_api.c src/mesa/tnl/t_vtx_exec.c src/mesa/vbo/vbo_attrib.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_save_api.c src/mesa/vbo/vbo_save_draw.c
2006-11-09Fix some && (logical) that should clearly have been & (bitwise).Adam Jackson
2006-11-02merge current trunk into vbo branchAlan Hourihane
2006-11-01Remove x/y/width/height parameters from Clear functions.Brian Paul
2006-10-30switch several dri drivers overKeith Whitwell
2006-10-29switch over to vbo moduleKeith Whitwell
2006-10-18Don't use x/y/w/h params given to Clear().Brian Paul
2006-10-17Remove get_buffer_size()Brian Paul
Always check window size in XMesaMakeCurrent() in case glViewport is not called.
2006-10-16remove some old code that could cause infinite recursionBrian Paul
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-10-11In xmesa_DrawPixels_8R8G8B() check if drawing into a window system buffer,Brian Paul
not a user-created FBO.
2006-10-11List of source (.c) files in each directory.Brian Paul
To be included by X.org Makefile.am files so that lists of files don't need to be hardcoded and frequently updated there.
2006-09-20make current GLX context per-threadBrian Paul
2006-09-20fix a memleak in DestroyContext()Brian Paul
2006-09-10don't use xmesa_DrawPixels_8R8G8B() if there's a software alpha channelBrian Paul
2006-08-31check if ext->name is null before strcmp()Brian 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-07-06Don't include unused header files.Kristian Høgsberg
2006-06-13Do a cheesy implementation of glXWait/GetVideoSyncSGI() functions, butBrian Paul
disable reporting the GLX_SGI_video_sync extension anyway. Google Earth works now.
2006-06-13GLX_BAD_CONTEXT checks in video-sync functionsBrian Paul
2006-05-19added some CHAN_BITS testsBrian Paul
2006-05-08fix warningBrian Paul
2006-05-07added CHAN_BITS != 8 testBrian Paul
2006-04-27assorted clean-ups, fixesBrian Paul
2006-04-27replace a bunch of casts with GET_XRB macroBrian Paul
2006-04-26minor clean-upBrian Paul
2006-04-26remove old XFree86 tagBrian Paul
2006-03-30When creating front/back renderbuffers, init the Red/Green/Blue/AlphaBits fieldsBrian Paul
2006-03-28a little code movement so we don't make invalid casts from gl_renderbuffers ↵Brian Paul
to xmesa_renderbuffers
2006-03-16added #undef GET_DISPATCHBrian Paul