summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/mipmap.h
Commit message (Collapse)AuthorAgeFilesLines
* mesa: new _mesa_prepare_mipmap_level() function for mipmap generationBrian Paul2011-12-161-0/+6
| | | | | | | | | | | | | | | | This helper function is used during mipmap generation to prepare space for the destination mipmap levels. This improves/fixes two things: 1. If the texture object was created with glTexStorage2D, calling _mesa_TexImage2D() to allocate the new image would generate INVALID_OPERATION since the texture is marked as immutable. 2. _mesa_TexImage2D() always frees any existing texture image memory before allocating new memory. That's inefficient if the existing image is the right size already. Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* mesa: remove unused _mesa_rescale_teximage2d() functionBrian Paul2011-10-051-9/+0
| | | | It was only used by the old tdfx driver, IIRC.
* mesa: Convert _mesa_generate_mipmap to MapTexImage()-based access.Brian Paul2011-10-031-2/+2
| | | | | | | | | | | Now that we can zero-copy generate the mipmaps into brand new glTexImage()-generated storage using MapTextureImage(), we no longer need to allocate image->Data in mipmap generate. This requires deleting the drivers' old overrides of the miptree tracking after calling _mesa_generate_mipmap at the same time, or the drivers promptly lose our newly-generated data. Reviewed-by: Eric Anholt <[email protected]>
* mesa: move _mesa_upscale_teximage2d() to texcompress_fxt1.cBrian Paul2011-09-201-6/+0
| | | | Was used by no other code.
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-1/+1
|
* code refactoring, new next_mipmap_level_size() functionBrian2008-09-211-1/+3
| | | | (cherry picked from commit c22d9152e33792ea58426c53bc9b96bf552b0b44)
* refactor code, export _mesa_generate_mipmap_level()Brian2008-09-211-0/+11
|
* Remove unused texunit parameter to ctx->Driver.GenerateMipmap()Brian2008-05-091-1/+0
| | | | (cherry picked from commit c3395f4473c8fdf75d04c0dd72e687bc8d8127a7)
* Move mipmap generation functions, texture scaling functions into newBrian Paul2006-09-291-0/+52
mipmap.c file.