summaryrefslogtreecommitdiff
path: root/src/mesa/main/buffers.c
AgeCommit message (Collapse)Author
2008-09-21mesa: refactor: move multisample-related functions into new multisample.c fileBrian Paul
2008-09-21mesa: refactor: move _mesa_resizebuffers(), _mesa_ResizeBuffersMESA() to ↵Brian Paul
framebuffer.c (cherry picked from commit 9091015a9782ad15e58540a8fd61df83ea2bfe31)
2008-09-21mesa: refactor: move glClear, glClearColor into new clear.c file.Brian Paul
2008-09-21mesa: refactor: move scissor functions into new scissor.c fileBrian Paul
(cherry picked from commit 4be7296bfcba22a849f949d105ea385e6964cc25)
2008-09-21Add some FLUSH_CURRENT() calls.Brian
Without these we can find ourselves in _mesa_load_state_parameters() computing derived lighting/material values whhen the current material properties haven't been updated from the VBO. This may be a somewhat wide-spread problem that needs more attention... (cherry picked from commit 49adf51eeec31c9f3c995a70acc5008522689708)
2008-07-02mesa: fix issues around multisample enableRoland Scheidegger
multisample enable is enabled by default, however gl mandates multisample rendering rules only apply if there's also a multisampled buffer.
2008-01-09fix bug 13978: glDrawBuffersARB() didn't set all necessary stateBrian
2008-01-06Replace gl_framebuffer's _ColorDrawBufferMask with _ColorDrawBufferIndexesBrian
Each array element is now a BUFFER_x token rather than a BUFFER_BIT_x bitmask. The number of active color buffers is specified by _NumColorDrawBuffers. This builds on the previous DrawBuffer changes and will help with drivers implementing GL_ARB_draw_buffers.
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...
2008-01-02additional GL_COLOR_ATTACHMENTx_EXT cases (bug 13767)Brian
2008-01-01additional GL_COLOR_ATTACHMENTx_EXT cases (bug 13767)Brian
2007-10-17Don't call the driver clear hook when the effective scissor rectangle is empty.Michel Dänzer
2007-08-18remove dead code left over after fixing GL_READ/DRAW_BUFFER state issuesBrian
2007-08-16Rework the GL_READ_BUFFER, GL_DRAW_BUFFER state repairs that Roland ↵Brian
previously did. Basically, in update_framebuffer() (which should be called after an FBO is bound with MakeCurrent or BindFramebuffer) we check if the FBO is a window-system FBO. If it is, update the FBO's GL_READ/DRAW_BUFFER state according to the context state. Old code still in place but disabled with #if 0 / #endif.
2007-08-16update comments, etc related to Read/DrawBuffer stateBrian
2007-07-20fix bogus recently introduced function param commentsRoland Scheidegger
2007-07-19fix mesa's handling of fbo's / window fb (again)Roland Scheidegger
Make sure the relevant fields in window fbs get updated at appropriate time (those are NOT the same as fbos!!!), and fix up related code accordingly. This is a bit ugly, but there's a reason the issues section in EXT_fbo is a couple hundred pages long... Hopefully correct now.
2007-07-19more fixes for mesa's fbo handling (fixes tests/fbotest1/2)Roland Scheidegger
2007-06-08In supported_buffer_bitmask(), use framebuffer's visual, not context's visualBrian
2007-03-15no-op clear if buffer width or height is zero (bug 7205)Brian
2006-11-02minor change in _mesa_ResizeBuffersMESA()Brian Paul
2006-11-01Remove x/y/width/height parameters from Clear functions.Brian Paul
2006-10-17check if ctx->Driver.GetBufferSize==NULL and no-opBrian Paul
2006-10-15updated comments, mark GetBufferSize() and ResizeBuffers() as obsoleteBrian Paul
2006-09-22resize buffers in MakeCurrentKeith Whitwell
2006-06-02set per-context GL_DRAW_BUFFER state regardless of currently bound FBOBrian Paul
2006-04-05Silence minor compiler warnings (-Wextra).Brian Paul
2006-03-29minor clean-upBrian Paul
2006-03-25check for incomplete FBO in _mesa_Clear()Brian Paul
2006-03-20slightly improved error messageBrian Paul
2005-12-30properly notify driver on scissor change in MakeCurrentKeith Whitwell
2005-09-23Replace gl_framebuffer's _ColorReadBufferMask with _ColorReadBufferIndex,Brian Paul
Streamline the _mesa_update_framebuffer() function a bit.
2005-09-19updated commentBrian Paul
2005-09-15Replace GLuint with GLbitfield where appropriate. Also replace GLuintBrian Paul
with GLboolean in a few places.
2005-09-07minor tweaks to _mesa_ResizeBuffersMESA()Brian Paul
2005-09-06just changes/updates to commentsBrian Paul
2005-08-31Just additional comments.Brian Paul
2005-08-31remove dead code, update commentsBrian Paul
2005-07-01remove OLD_RENDERBUFFER stuffBrian 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-02-26Rename _mesa_update_buffers() to _mesa_update_draw_buffer_bounds() and doBrian Paul
additional checks. Replace _mesa_init_buffers() with _mesa_init_scissor() and _mesa_init_multisample().
2005-02-09initial support for GL_EXT_framebuffer_objectBrian Paul
2004-12-03silence a variety of warnings found with g++ 3.4.2Brian Paul
2004-10-02added support for GL_ARB_draw_buffersBrian Paul
2004-06-11s/_mesa_get_current_context()/GET_CURRENT_CONTEXT()/Brian Paul
2004-03-21Implemented support for software-based AUX color buffers.Brian Paul
Only available with Xlib driver for now. Assorted clean-ups related to Draw/ReadBuffer(). Renamed FRONT_LEFT_BIT -> DD_FRONT_LEFT_BIT, etc.
2004-01-30more descriptive error stringsBrian Paul
2003-10-21Added GLAPIENTRY decorations for all first level OpenGL API function entryKendall Bennett
points so that the calling conventions will work correctly with the assembler stubs with the Open Watcom compiler.
2003-07-17Merge Jose's documentation and core Mesa changes from embedded branchKeith Whitwell
2003-06-04comments regarding window sizingBrian Paul