summaryrefslogtreecommitdiff
path: root/src/mesa/main/texstore.c
AgeCommit message (Collapse)Author
2001-04-20Fixed a texture conversion problem: sometimes need to produce an intermediateBrian Paul
texture image in the base internal format between user->Mesa format conversion. See comments in texstore.c
2001-04-04fixed tmpTexelSize computation bugBrian Paul
2001-04-04More texture image changes.Brian Paul
1. Added ctx->Driver.ChooseTextureFormat() function. Examines user's internalFormat, format, type params and returns a gl_texture_format. 2. _mesa_store_teximage[123]d() calls ctx->Driver.ChooseTextureFormat(), allocates storage and transfers the image into the desired format. 3. _mesa_transfer_teximage() now takes a gl_texture_format to describe the destination format. Any combination of input format/type and output gl_texture_format is accepted. Uses optimized _mesa_convert_- texsubimage[123]d() functions when possible. 3. DRI driver's TexImage[123]D functions should be a lot simpler now.
2001-03-28More texture format updates. Drivers now need only plug an appropriateGareth Hughes
format into texImage->TexFormat, the rest is handled by core Mesa.
2001-03-27texFormat was a random value in _mesa_store_teximage3d(), fix by undoing ↵Brian Paul
last changes
2001-03-27Updates required for DRI drivers on mesa-3-5-branch.Gareth Hughes
2001-03-21renamed some vars, added a bunch of commentsBrian Paul
2001-03-21depth images were broken by latest teximage changes, this fixes the problemBrian Paul
2001-03-19Split driver struct into swrast/tnl/core components.Keith Whitwell
2001-03-18Add missing header file include.Gareth Hughes
2001-03-18Remove #endif.Gareth Hughes
2001-03-18Remove old code, fix a few comments.Gareth Hughes
2001-03-18- Port 3.4 texture utils, texture format work to 3.5 (including newGareth Hughes
FetchTexel routines). - Initial hooks for GL_EXT_texture_filter_anisotropic.
2001-03-12Consistent copyright info (version number, date) across all files.Gareth Hughes
2001-03-07fixed a bunch of g++ warnings/errors. Compiling with g++ can help find lots ↵Brian Paul
of potential problems
2001-03-03lots of gl_*() to _mesa_*() namespace clean-upBrian Paul
2001-02-21fixed GL_LUMINANCE_ALPHA bug in fetch_2d_texel()Brian Paul
2001-02-19Updated Driver.CopyTexImage[12]D and Driver.CopyTexSubImage[123]D functionsBrian Paul
so they work like the other teximage functions. Added fallback routines to texstore.c for drivers to use.
2001-02-17Changed FetchTexel() function pointer arguments.Brian Paul
Implemented glGetTexImage(format=GL_COLOR_INDEX). Changed _mesa_unpack_depth_span() args. Minor changes/clean-ups in mtypes.h. Histogram counter component sizes were wrong.
2001-02-17Work in glGetTexImage() to return GL_COLOR_INDEX images.Brian Paul
Prototype code for GL_SGIX_depth_texture / more flexible teximage code.
2001-02-07GLchan fixesBrian Paul
2001-02-07remove unused functionsBrian Paul
2001-02-07made some changes to the initialization of gl_texture_image fieldsBrian Paul
2001-02-06Overhaul of texture image handling.Brian Paul
1. gl_texture_image struct's Data pointer points to images in driver's format. 2. Added FetchTexel() function pointer to struct gl_texture_image. 3. Changed Driver Tex[Sub]Image functions, return void now. 4. Texture storage/fetch code in new texstore.c file. 5. Removed texture.[ch] - functions moved to state.c Note: FX driver updates not finished yet.