Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix BUFFER_DEPTH/BUFFER_ACCUM mix-up | Brian Paul | 2008-09-02 | 1 | -6/+6 |
| | |||||
* | Fix some issues with glDrawBuffer(GL_NONE), bug 14198 | Brian | 2008-01-22 | 1 | -0/+3 |
| | | | | | Set _ColorDrawBuffers[0] = NULL if no renderbuffers enabled. Check that _ColorDrawBuffers[0] is non-null before dereferencing in a few places. | ||||
* | Replace gl_framebuffer's _ColorDrawBufferMask with _ColorDrawBufferIndexes | Brian | 2008-01-06 | 1 | -32/+13 |
| | | | | | | | 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. | ||||
* | Simplify ctx->_NumColorDrawBuffers, _ColorDrawBuffers and fix bug 13835. | Brian | 2008-01-06 | 1 | -26/+71 |
| | | | | | | | | | | | 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... | ||||
* | Rework the GL_READ_BUFFER, GL_DRAW_BUFFER state repairs that Roland ↵ | Brian | 2007-08-16 | 1 | -6/+20 |
| | | | | | | | | | 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. | ||||
* | update comments, etc related to Read/DrawBuffer state | Brian | 2007-08-16 | 1 | -18/+28 |
| | |||||
* | Implement mutex/locking around texture object reference counting. | Brian | 2007-08-13 | 1 | -9/+4 |
| | | | | | | Use new _mesa_reference_texobj() function for referencing/unreferencing textures. Add new assertions/tests to try to detect invalid usage of deleted textures. | ||||
* | fix mesa's handling of fbo's / window fb (again) | Roland Scheidegger | 2007-07-19 | 1 | -2/+1 |
| | | | | | | | | 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. | ||||
* | fix up mesa's probably bogus framebuffer updates with different read/write fbs | Roland Scheidegger | 2007-07-19 | 1 | -12/+26 |
| | | | | | | Conflicts: src/mesa/main/framebuffer.c | ||||
* | Minor clean-up of polygon offset logic. Properly compute _MRD field. | Brian | 2007-07-11 | 1 | -1/+3 |
| | |||||
* | Fix some renderbuffer reference counting issues. Also fixes a mem leak. | Brian | 2007-03-25 | 1 | -44/+8 |
| | |||||
* | Assorted fixes for dealing with zero-size frame/renderbuffers. | Brian | 2007-03-16 | 1 | -2/+5 |
| | | | | | | | | | | 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. | ||||
* | unreference old framebuffer, if needed, in _mesa_reference_framebuffer() | Brian | 2007-03-06 | 1 | -0/+7 |
| | |||||
* | Fix/improve framebuffer object reference counting. | Brian | 2007-03-06 | 1 | -14/+32 |
| | | | | | | | 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. | ||||
* | Take care of texObj reference in _mesa_free_framebuffer_data() | Brian | 2007-03-06 | 1 | -6/+11 |
| | |||||
* | assert that fb->RefCount==0 in _mesa_free_framebuffer_data() | Brian | 2007-02-27 | 1 | -0/+1 |
| | |||||
* | Do proper framebuffer refcounting in _mesa_make_current(). | Brian | 2007-02-26 | 1 | -16/+23 |
| | | | | | | Also, added DeletePending field to gl_framebuffer used when a window has been deleted, but there still may be rendering contexts attached to the gl_framebuffer object. | ||||
* | Set _NEW_BUFFERS in _mesa_resize_framebuffer(). This makes sure the swrast | Brian Paul | 2006-10-16 | 1 | -2/+7 |
| | | | | | module updates its state (CLIP_BIT) upon resizes. The driver could do this instead, but doing it here is safer. | ||||
* | init accum buffer fields in _mesa_update_framebuffer_visual() | Brian Paul | 2006-09-11 | 1 | -1/+14 |
| | |||||
* | Check for a valid context | Alan Hourihane | 2006-06-21 | 1 | -1/+2 |
| | |||||
* | If DrawBuffer isn't set, return immediately | Alan Hourihane | 2006-06-19 | 1 | -0/+3 |
| | |||||
* | Added _mesa_dereference_framebuffer() to encapsulate reference count | Brian Paul | 2006-05-20 | 1 | -13/+34 |
| | | | | decrement, delete and locking. | ||||
* | remove an assertion | Brian Paul | 2006-05-19 | 1 | -2/+0 |
| | |||||
* | some tentative code for _mesa_update_framebuffer_visual() | Brian Paul | 2006-04-20 | 1 | -0/+7 |
| | |||||
* | do additional checking for setting up depth/stencil wrappers | Brian Paul | 2006-04-06 | 1 | -3/+7 |
| | |||||
* | Silence minor compiler warnings (-Wextra). | Brian Paul | 2006-04-05 | 1 | -0/+2 |
| | |||||
* | comments regarding assertions | Brian Paul | 2006-03-30 | 1 | -0/+5 |
| | |||||
* | merge from texman branchmesa_20060325 | Brian Paul | 2006-03-26 | 1 | -113/+187 |
| | |||||
* | fix issue in _mesa_free_framebuffer_data() | Brian Paul | 2006-03-25 | 1 | -1/+1 |
| | |||||
* | added some missing formats in _mesa_source/dest_buffer_exists() | Brian Paul | 2006-03-24 | 1 | -2/+16 |
| | |||||
* | added _mesa_source/dest_buffer_exists() function to easily test if ↵ | Brian Paul | 2006-03-20 | 1 | -1/+122 |
| | | | | particular renderbuffers are present | ||||
* | additional comments about GL_DEPTH_STENCIL buffers | Brian Paul | 2005-11-16 | 1 | -2/+9 |
| | |||||
* | Support for combined depth/stencil renderbuffers (GL_EXT_packed_depth_stencil). | Brian Paul | 2005-11-16 | 1 | -2/+103 |
| | | | | | depthstencil.c provides wrappers for treating depth/stencil buffers either as regular depth or stencil renderbuffers. | ||||
* | check for ctx==NULL, bug 4087 | Brian Paul | 2005-11-15 | 1 | -1/+2 |
| | |||||
* | fix GLX server resize/crash when resizing windows | Brian Paul | 2005-10-21 | 1 | -0/+3 |
| | |||||
* | Fix some issues with state updates and renderbuffers. Querying GL_RED_BITS, | Brian Paul | 2005-10-08 | 1 | -15/+27 |
| | | | | etc. after calling glRenderBufferStorageEXT gave undefined results. | ||||
* | change initialization of renderbuffer DepthBits | Brian Paul | 2005-10-04 | 1 | -0/+5 |
| | |||||
* | disable a warning | Brian Paul | 2005-10-03 | 1 | -1/+1 |
| | |||||
* | check for framebuffer completeness, code clean-up | Brian Paul | 2005-09-28 | 1 | -0/+1 |
| | |||||
* | remove printf | Brian Paul | 2005-09-23 | 1 | -1/+0 |
| | |||||
* | Replace gl_framebuffer's _ColorReadBufferMask with _ColorReadBufferIndex, | Brian Paul | 2005-09-23 | 1 | -31/+18 |
| | | | | Streamline the _mesa_update_framebuffer() function a bit. | ||||
* | Replace gl_renderbuffer.ComponentSizes[] with separate RedBits, GreenBits, | Brian Paul | 2005-09-22 | 1 | -6/+6 |
| | | | | BlueBits, etc fields. | ||||
* | Replace GLuint with GLbitfield where appropriate. Also replace GLuint | Brian Paul | 2005-09-15 | 1 | -2/+2 |
| | | | | with GLboolean in a few places. | ||||
* | Move _mesa_add_soft_renderbuffers() from framebuffer.c to renderbuffer.c | Brian Paul | 2005-09-13 | 1 | -94/+12 |
| | | | | Update some comments, code, etc. | ||||
* | Remove last remnants of pre-renderbuffer code. | Brian Paul | 2005-09-03 | 1 | -2/+0 |
| | |||||
* | Just additional comments. | Brian Paul | 2005-08-31 | 1 | -0/+7 |
| | |||||
* | Major check-in of changes for GL_EXT_framebuffer_object extension. | Brian Paul | 2005-05-04 | 1 | -0/+513 |
Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested. |