summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/common/meta.c
AgeCommit message (Collapse)Author
2009-10-08Merge branch 'mesa_7_6_branch'Brian Paul
Conflicts: src/mesa/drivers/common/meta.c
2009-10-07mesa: don't need to free textures, VBOs, etc. in _mesa_meta_free()Brian Paul
They're freed by the normal context deallocation code. Fixes Blender crash, bug 24185.
2009-10-03meta: Make sure texImage->TexFormat is valid for CopyTex(Sub)Image.Michel Dänzer
2009-10-02mesa: optimized _mesa_meta_BlitFramebuffer() for src=texture caseBrian Paul
If the src renderbuffer is actually a texture, we can directly use that texture as the src and avoid a copy.
2009-10-02mesa: added _mesa_meta_check_generate_mipmap_fallback()Brian Paul
2009-09-28meta: Fix invalid PBO access from DrawPixels when trying to just alloc.Eric Anholt
This whole reuse of buffers (TexSubImage instead of TexImage, SubData instead of Data) is bad for hardware drivers, but it's even worse when we accidentally try to access the 2x2 PBO to fill the new 16x16 texture we're creating, producing GL errors. Fixes piglit pbo-drawpixels. Bug #14163.
2009-09-24mesa: _mesa_meta_GenerateMipmap() now workingBrian Paul
Handles GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP. But GL_TEXTURE_3D and texture borders not supported yet.
2009-09-22Merge branch 'mesa_7_6_branch'Brian Paul
2009-09-22mesa: don't re-use the meta glDrawPixels VBO; create a new one each timeBrian Paul
This should help to work around bugs 24083 and 23670.
2009-09-20Merge branch 'mesa_7_6_branch'Brian Paul
Conflicts: src/mesa/drivers/dri/intel/intel_clear.c
2009-09-19mesa: remove redundant readbuffer checkBrian Paul
2009-09-19mesa: rename functions to be more consistant with rest of mesaBrian Paul
2009-09-19mesa: meta functions for glCopyColorTable, glCopyConvolutionFilter, etcBrian Paul
2009-09-19mesa: fix some glCopyTex[Sub]Image regressions related to convolutionBrian Paul
2009-09-16mesa: fix clip plane, fog issuesBrian Paul
2009-09-16mesa: meta driver functions for glCopyTex[Sub]Image()Brian Paul
Implement in terms of glReadPixels + glTex[Sub]Image(). This will allow us to get rid of some swrast texture code.
2009-09-15mesa: remove incorrect texture state checkBrian Paul
Fixes incorrectly textured bitmap text in engine demo. It's incorrect to test the texture enable bits here since they may have been changed by disabling the shader above. Optimization is still possible but will have to be reexamined.
2009-09-10mesa: nicer vertex setupBrian Paul
2009-09-10Merge branch 'mesa_7_6_branch'Brian Paul
2009-09-10mesa: need to set all stencil bits to 0 before setting the 1 bitsBrian Paul
Plus, check for pixel transfer stencil index/offset.
2009-09-10mesa: fix cut&paste typosMathias Frohlich
2009-09-09Merge branch 'mesa_7_6_branch'Brian Paul
2009-09-09mesa: disable GL_LUMINANCE case in _mesa_meta_draw_pixels()Brian Paul
Works around a bug found on i965. See bug 23670.
2009-09-06mesa: initial version of _mesa_meta_generate_mipmap()Brian Paul
Incomplete and totally untested. Based on intel_generate_mipmap().
2009-09-06mesa: use separate temp texture for bitmapsBrian Paul
2009-09-06mesa: temp_texture changesBrian Paul
2009-09-06mesa: free meta bitmap buffersBrian Paul
2009-09-06mesa: use _mesa_set_enable()Brian Paul
2009-09-06mesa: _mesa_meta_bitmap() functionBrian Paul
2009-09-01mesa: obey stencil write mask in _mesa_meta_draw_pixels()Brian Paul
2009-08-31mesa: implement GL_DEPTH_BUFFER_BIT for _mesa_meta_blit_framebuffer()Brian Paul
2009-08-31mesa: disable another debug testBrian Paul
2009-08-31mesa: make verts[] arrays local varsBrian Paul
2009-08-31mesa: implement depth/stencil formats for meta glDrawPixelsBrian Paul
2009-08-31mesa: remove accidentally commited debug/disabled codeBrian Paul
2009-08-30mesa: consolidate texture-related code in meta.cBrian Paul
Also, allow using texture rectangles, NPOT textures or regular POT textures (preferred in that order).
2009-08-30mesa: avoid redundant viewport changes in meta codeBrian Paul
2009-08-13mesa: refactor: move _mesa_is_color/depth/stencil_format() helpers to image.cBrian Paul
2009-08-11mesa: handle glDrawPixels images which are larger than max rect texture sizeBrian Paul
2009-08-11mesa: added _mesa_meta_draw_pixels()Brian Paul
2009-08-11mesa: added META_FOG and optimize some meta_begin/end() codeBrian Paul
2009-08-10mesa: save/restore texture matrix in meta codeBrian Paul
Also, save/restore viewport and texture state in _mesa_meta_copy_pixels()
2009-08-10mesa: for meta blit, check max texture size, use glCopyTexSubImage2D() when ↵Brian Paul
possible
2009-08-10mesa: initial meta implementation of glCopyPixels()Brian Paul
2009-08-10mesa: remove debug flush callBrian Paul
2009-08-10mesa: new driver meta-ops moduleBrian Paul
Implement glClear() in terms of quad rendering, implement glBlitFramebuffer() in terms of glCopyTexImage2D + textured quad, etc. There have been several places in the drivers where we've implemented meta rendering similar to this. This is an effort to do it in a more portable and more efficient form. The _mesa_meta_begin/end() functions act like glPush/PopAttrib() but are lighter-weight. Plus, _mesa_meta_begin() resets GL state back to default values (texturing off, identity vertex transform, etc) so the meta drawing functions don't have to worry about it. For now only _mesa_mesa_blit_framebuffer() and _mesa_meta_clear() are implemented. glDrawPixels() and glCopyPixels() would be the next candidates.