summaryrefslogtreecommitdiff
path: root/src/mesa/main/fbobject.c
AgeCommit message (Collapse)Author
2007-11-09check for texture and renderbuffer in check_end_texture_render()Brian
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-13Implement mutex/locking around texture object reference counting.Brian
Use new _mesa_reference_texobj() function for referencing/unreferencing textures. Add new assertions/tests to try to detect invalid usage of deleted textures.
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-07-19fix mesa fb bindingRoland Scheidegger
Make sure that we bind the right buffer (draw or read) when rebinding the window framebuffer (the api doesn't allow binding different draw and read buffers at the same time, but the default window framebuffer is basically 2 fb objects, one for read, one for write, which can be different). Pass both of these two down the driver api (no driver uses this right now).
2007-05-16Initial implementation of MESA_texture_arrayIan Romanick
Shadow sampling from texture arrays is still not implemented. Everything else should be there, though.
2007-05-15Bring framebuffer_texture's error checking more in-line with the spec.Ian Romanick
2007-04-02use _mesa_reference_renderbuffer() in a few more placesBrian
2007-03-25Fix some renderbuffer reference counting issues. Also fixes a mem leak.Brian
2007-03-06explicit calls to _mesa_unreference_framebuffer() not always needed nowBrian
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-03-01move oldFb decl into tighter scopesBrian
2006-11-01Merge texmem-0-3-branch.Keith Whitwell
2006-09-29Move mipmap generation functions, texture scaling functions into newBrian Paul
mipmap.c file.
2006-09-22Flush driver, not just tnl module.Keith Whitwell
2006-05-20use new _mesa_dereference_frame/renderbuffer() functionsBrian Paul
2006-04-13casts to fix some -pedantic warningsBrian Paul
2006-04-05Remove the code that checks for duplicated framebuffer attachments (whichBrian Paul
generated the error GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT). This was removed in version 117 of the GL_EXT_framebuffer_object spec.
2006-04-05Silence minor compiler warnings (-Wextra).Brian Paul
2006-03-28update conditional for render to GL_DEPTH_STENCIL texture, check for valid ↵Brian Paul
teximage before calling ctx->Driver.RenderTexture()
2006-03-26merge from texman branchBrian Paul
2006-03-20Lots of changes/fixes for rendering to framebuffer objects.Brian Paul
- When deleting texture objects, unbind from FBOs if necessary. - Changed driver hooks for starting/ending render to texture. - Now properly handle case where gl[Copy]TexImage() is called after glFramebufferTexture[123]D(). That didn't work before.
2006-03-20additional assertions and debug code for testing FBO completenessBrian Paul
2006-03-15sync with texmem branchBrian Paul
2006-03-07call _mesa_update_framebuffer_visual() in _mesa_FramebufferRenderbufferEXT() ↵Brian Paul
to fix some minor glitches
2006-03-01remove temporary tokens, more error checks for blit functionBrian Paul
2005-12-01Added FinishRenderTexture() device driver function to indicate whenBrian Paul
rendering to a texture has likely completed. Fixed refcount issue in texture renderbuffer wrapper.
2005-11-18In _mesa_RenderbufferStorageEXT(), try to avoid needless reallocation.Brian Paul
Simplify _mesa_GetRenderbufferParameterivEXT() queries.
2005-11-16Support for combined depth/stencil renderbuffers (GL_EXT_packed_depth_stencil).Brian Paul
depthstencil.c provides wrappers for treating depth/stencil buffers either as regular depth or stencil renderbuffers.
2005-11-08some initial work on upcoming GL_EXT_framebuffer_blit extensionBrian Paul
2005-10-08Fix some issues with state updates and renderbuffers. Querying GL_RED_BITS,Brian Paul
etc. after calling glRenderBufferStorageEXT gave undefined results.
2005-10-05In gl_texture_image replace IntFormat with InternalFormat and Format withBrian Paul
_BaseFormat to be consistant with gl_renderbuffer.
2005-10-04check if deleting currently bound frame/renderbuffer objectBrian Paul
2005-10-04fix behaviour of glIsFrame/Renderbuffer()Brian Paul
2005-10-03added a few calls to _mesa_update_framebuffer_visual()Brian Paul
2005-09-28Initial work for GL_EXT_packed_depth_stencil extension.Brian Paul
glReadPixels done, glDrawPixels mostly done.
2005-09-22Replace gl_renderbuffer.ComponentSizes[] with separate RedBits, GreenBits,Brian Paul
BlueBits, etc fields.
2005-09-07new commentBrian Paul
2005-09-06minor formatting fixBrian Paul
2005-06-07fix GL_ALPHA render-to-texture problem (Jon Smirl)Brian Paul
2005-06-01added code to detect GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT errorBrian Paul
2005-05-31add support for GL_RENDERBUFFER_RED/GREEN/BLUE/etc_SIZE_EXT querieBrian 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-27silence warningsBrian Paul
2005-02-24More GL_EXT_framebuffer_object: rename some things, added device driver hooks.Brian Paul
2005-02-10new comments, fix zoffset error testBrian Paul
2005-02-09implement the 'completeness' testsBrian Paul
2005-02-08just some commentsBrian Paul