summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/x11/xm_dd.c
AgeCommit message (Collapse)Author
2010-03-03mesa: Remove ClearIndex and IndexMask from device-driver interfaceIan Romanick
These are used to inform the driver of the clear value for color-index buffers and to control write-masking of bits in color-index buffers. No driver use or need (not even Nouveau) these interfaces. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-02-19mesa: replace old MEMSET macro with memsetBrian Paul
2010-02-19Remove _mesa_memset in favor of plain memset.Kenneth Graunke
This may break the SUNOS4 build, but it's no longer relevant.
2009-12-29mesa: implement per-buffer color maskingBrian Paul
This is part of the GL_EXT_draw_buffers2 extension and part of GL 3.0. The ctx->Color.ColorMask field is now a 2-D array. Until drivers are modified to support per-buffer color masking, they can just look at the 0th color mask. The new _mesa_ColorMaskIndexed() function will be called by glColorMaskIndexedEXT() or glColorMaski().
2009-10-08mesa: remove a bunch of gl_renderbuffer fieldsBrian Paul
_ActualFormat is replaced by Format (MESA_FORMAT_x). ColorEncoding, ComponentType, RedBits, GreenBits, BlueBits, etc. are all replaced by MESA_FORMAT_x queries.
2009-09-30mesa: remove GLchan-based formats; use hw 8-bit/channel formats insteadBrian Paul
Removed: MESA_FORMAT_RGBA, RGB, ALPHA, LUMINANCE, LUMINANCE_ALPHA, INTENSITY.
2009-09-30mesa: replace gl_texture_format with gl_formatBrian Paul
Now gl_texture_image::TexFormat is a simple MESA_FORMAT_x enum. ctx->Driver.ChooseTexture format also returns a MESA_FORMAT_x. gl_texture_format will go away next.
2009-09-19mesa: rename functions to be more consistant with rest of mesaBrian Paul
2009-09-06xlib: test _mesa_meta_bitmap()Brian Paul
2009-09-06xlib: move misplaced braceBrian Paul
2009-08-31xlib: plug in more meta functions, if TEST_META_FUNCS is setBrian Paul
2009-08-31xlib: option to enable/test meta functions (disabled)Brian Paul
2009-05-01mesa: in glReadBufer() set _NEW_BUFFERS, not _NEW_PIXELBrian Paul
Since GL_READ_BUFFER is historically part of the gl_pixel_attrib group it made sense to signal changes with _NEW_PIXEL. But now with FBOs it's also part of the framebuffer state. Now _NEW_PIXEL strictly indicates pixels transfer state changes. This change avoids framebuffer state validation when any random bit of pixel-transfer state is set. DRI drivers updated too: don't check _NEW_COLOR when updating framebuffer state. I think that was just copied from the Xlib driver because we care about dither enable/disable state there.
2008-09-21mesa: improved driver query interfaceKeith Whitwell
Brought over from gallium-0.2 branch.
2008-09-18mesa: prefix more #includes with "main/"Brian Paul
2008-02-16Fix potential glDrawPixels(GL_DEPTH_COMPONENT) crashes (bug 13915)Brian
Also, general clean-up of the Xlib-optimized glDraw/CopyPixels code.
2008-01-22Fix some issues with glDrawBuffer(GL_NONE), bug 14198Brian
Set _ColorDrawBuffers[0] = NULL if no renderbuffers enabled. Check that _ColorDrawBuffers[0] is non-null before dereferencing in a few places.
2008-01-06Simplify ctx->_NumColorDrawBuffers, _ColorDrawBuffers and fix bug 13835.Brian
These fields are no longer indexed by shader output. Now, we just have a simple array of renderbuffer pointers. If the shader writes to gl_FragData[i], send those colors to the N _ColorDrawBuffers. Otherwise, replicate the single gl_FragColor (or the fixed-function color) to the N _ColorDrawBuffers. A few more changes and simplifications can follow from this...
2007-10-22don't apply ColorMask to main gcBrian
2007-05-02fix some renderbuffer/wrapper bugsBrian
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.
2006-11-02merge current trunk into vbo branchAlan Hourihane
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-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-11In xmesa_DrawPixels_8R8G8B() check if drawing into a window system buffer,Brian Paul
not a user-created FBO.
2006-09-10don't use xmesa_DrawPixels_8R8G8B() if there's a software alpha channelBrian Paul
2006-04-27assorted clean-ups, fixesBrian Paul
2006-04-26minor clean-upBrian Paul
2006-03-28a little code movement so we don't make invalid casts from gl_renderbuffers ↵Brian Paul
to xmesa_renderbuffers
2006-02-24need to check for _NEW_BUFFERS in xmesa_update_state()Brian Paul
2006-01-26New comments, clean-up of fields related to point/line/triangle validation.Brian Paul
2006-01-09only call xmesa_set_renderbuffer_funcs() when really necessaryBrian Paul
2006-01-09check XGetGeometry() return valueBrian Paul
2005-12-07Updates for GL_EXT_timer_query:Brian Paul
New GLint64EXT and GLuint64EXT types (use C99's long long types). New glGetQueryObject[u]i64vEXT() functions.
2005-10-21fix GLX server resize/crash when resizing windowsBrian Paul
2005-09-28Initial work for GL_EXT_packed_depth_stencil extension.Brian Paul
glReadPixels done, glDrawPixels mostly done.
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-08 Committing in .Jouk Jansen
Define suseconds_t for OpenVMS Modified Files: Mesa/src/mesa/drivers/x11/xm_dd.c ----------------------------------------------------------------------
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-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-23Remove the xmesa_set_buffer() function. No longer needed since theBrian Paul
span functions pass in a gl_renderbuffer to indicate which color buffer should be drawn into. Optimized line/triangle routines are smart enough to know which buffer to draw into as well. The swrast->SetBuffer() routine should eventually be removed from all drivers.
2005-05-06remove bad assertion, added new ones in clear_pixmap()Brian Paul
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-18comments and clean-upBrian Paul
2004-11-27Remove _mesa_ResizeBuffersMESA() call from _mesa_set_viewport().Brian Paul
Now, the driver's Viewport routine should call _mesa_ResizeBuffersMESA() if necessary. Cleaned up code related to GLframebuffer width/height initialization. Set initial viewport/scissor params in _mesa_make_current2(), instead of in the drivers' MakeCurrent functions.
2004-11-27Remove the redundant width, height fields in xmesa_buffer struct. Just useBrian Paul
the values in the contained GLframebuffer. Removed some other unneeded code.