summaryrefslogtreecommitdiff
path: root/src/mesa/main/renderbuffer.c
AgeCommit message (Collapse)Author
2011-01-03mesa: s/GLuint/gl_buffer_index/Brian Paul
2010-11-02mesa: fix aux/accum comment and error message mixupsBrian Paul
2010-10-13Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg
2010-09-30main: remove duplicated includesNicolas Kaiser
Remove duplicated includes. Signed-off-by: Brian Paul <brianp@vmware.com>
2010-05-09mesa: use GL_RGBA16_SNORM for accum bufferBrian Paul
2010-05-04mesa: remove some color index codeBrian Paul
2010-05-04mesa: remove renderbuffer adaptor callsBrian Paul
Was only used for OSMesa but no longer needed.
2010-03-03mesa: Remove _mesa_add_color_index_renderbuffersIan Romanick
After all the recent color-index visual support removal, _mesa_add_color_index_renderbuffers is no longer used anywhere. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-03mesa: Remove checks of Visual.rgbModeIan Romanick
This must always be true now, so there is no reason to check it. Ever. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-02-26mesa: fix _BaseFormat assignment in _mesa_soft_renderbuffer_storage()Brian Paul
The rb->InternalFormat field will be set by the caller if the allocation succeeds. Until then, this field's value can't be used. Fixes a failed assertion with FlightGear.
2010-02-25mesa: added renderbuffer->_BaseFormat assertionBrian Paul
2010-02-19Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg
2010-02-19mesa: replace _mesa_bzero() with memset()Brian 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.
2010-02-19Remove _mesa_memcpy in favor of plain memcpy.Kenneth Graunke
This may break the SUNOS4 build, but it's no longer relevant.
2009-10-28Merge branch 'texformat-rework'Brian Paul
Conflicts: src/mesa/drivers/dri/radeon/radeon_fbo.c src/mesa/drivers/dri/s3v/s3v_tex.c src/mesa/drivers/dri/s3v/s3v_xmesa.c src/mesa/drivers/dri/trident/trident_context.c src/mesa/main/debug.c src/mesa/main/mipmap.c src/mesa/main/texformat.c src/mesa/main/texgetimage.c
2009-10-21mesa: use MESA_FORMAT_X8_Z24Brian Paul
2009-10-09mesa: fix incorrect assertion in _mesa_add_aux_renderbuffers()Brian Paul
Fixes bug 24426.
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-02-09mesa: merge gallium-0.2 into gallium-master-mergeBrian Paul
Merge commit 'origin/gallium-0.2' into gallium-master-merge Conflicts: Makefile docs/relnotes-7.4.html docs/relnotes.html src/mesa/drivers/dri/i965/brw_wm.h src/mesa/main/imports.c src/mesa/main/mtypes.h src/mesa/main/texcompress.c src/mesa/main/texenvprogram.c src/mesa/main/version.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_save_draw.c
2009-01-22mesa: add new ColorEncoding and ComponentType to gl_renderbufferBrian Paul
2008-06-10gallium: remove stray include of st_context.hBrian Paul
2007-08-10remove some temporary hacksBrian
2007-08-09Checkpoint intel_renderbuffer removal.Brian
Remove surface ptr from gl_renderbuffer. Use st_renderbuffer in most places. More clean-up.
2007-08-01s/Z24_S8/S8_Z24/ (stencil is in the high byte)Brian
2007-07-31sp_z_surface.h is deadBrian
2007-07-31Redesign pipe_surface in terms of pipe_region.Brian
struct pipe_buffer goes away. Added basic region functions to softpipe to allocate/release malloc'd regions. Surface-related code is fairly coherent now.
2007-07-3032 and z24s8 softpipe buffersBrian
2007-07-30Lots of improvements to the surface-related code.Brian
Z testing now works with i915 driver. Add gl_renderbuffer::surface pointer (and reverse pointer). Remove intel_surface and xmesa_surface types - no longer used.
2007-04-05temporary add some extra renderbuffer debug codeBrian
2007-04-02updated debug printfBrian
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-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.
2006-05-20Added _mesa_remove_renderbuffer() as a counterpart to _mesa_add_renderbuffer().Brian Paul
Added _mesa_dereference_renderbuffer() to encapsulate renderbuffer reference count decrement, delete, locking.
2006-05-19install renderbuffer adaptors when color channel sizes need to be reducedBrian Paul
2006-05-14s/GLbyte/GLubyte/Brian Paul
2006-04-26remove _glthread_INIT_MUTEX() callBrian Paul
2006-04-23updated assertionBrian Paul
2006-03-26merge from texman branchBrian Paul
2006-03-14init Red/Green/EtcBits = 0 in soft_renderbuffer_storage()Brian Paul
2006-03-02improved error msgBrian Paul
2005-11-16added _mesa_new_depthstencil_renderbuffer() for combined depth/stencil buffersBrian Paul
2005-10-04change initialization of renderbuffer DepthBitsBrian Paul
2005-09-28change initialization of rb->DepthBitsBrian Paul
2005-09-23Add Wrapper field to gl_renderbuffer. Used for wrapping one renderbufferBrian Paul
with another, such as wrapping a hardware/win-sys RGB renderbuffer with a software-based alpha buffer. Previous alpha buffer wrapping was conflicting with the X driver's xmesa_renderbuffer structure containment/inheritance. That lead to memory corruption.
2005-09-22Replace gl_renderbuffer.ComponentSizes[] with separate RedBits, GreenBits,Brian Paul
BlueBits, etc fields.
2005-09-20change mask[] test in put_mono_row_uint()Brian Paul
2005-09-19s/GLchan/GLubyte/, fix error string, add commentBrian Paul