summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/teximage.c
Commit message (Collapse)AuthorAgeFilesLines
* In gl_texture_image, replace ImageStride with an ImageOffsets array.Brian Paul2006-05-201-5/+25
| | | | | | | | | Some hardware lays out 3D mipmaps in a manner that can't be expressed with a simple image stride. The ImageOffsets array is allocated and initialized to typical defaults in the _mesa_init_teximage_fields() function. If needed, a driver will then have to replace these offsets. TexStore and TexelFetch routines updated to use offsets array.
* Add a new 'all' parameter to _mesa_get_compressed_formats() to indicate whetherBrian Paul2006-05-091-1/+1
| | | | | | | all formats or just those without restrictions/limitations should be returned. We want all when validating the internalFormat parameter to glCompressedTexImage2D but only want unrestricted formats when handling the GL_COMPRESSED_TEXTURE_FORMATS query.
* More updates for texture compression.Brian Paul2006-05-081-25/+28
| | | | | | Added _mesa_compressed_texture_size_glenum() for validating the imageSize parameter to glCompressedTex[Sub]Image1/2/3() which does _not_ call ctx->Driver.CompressedTextureSize() - since that could return a padded size.
* Fix a number of texture compression issues.Brian Paul2006-05-081-7/+6
| | | | | | | | Pass the MESA_FORMAT_* token to the _mesa_compressed_row_stride(), _mesa_compressed_texture_size() and _mesa_compressed_image_address() functions since we want to use the driver-chosen format, not the user's internalFormat hint. Consolidate code related to choosing the texture format in texstoree.c
* merge from texman branchmesa_20060325Brian Paul2006-03-261-3/+6
|
* Lots of changes/fixes for rendering to framebuffer objects.Brian Paul2006-03-201-7/+58
| | | | | | | - 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.
* additional error checking to be sure source renderbuffer exists for ↵Brian Paul2006-03-201-2/+36
| | | | glCopyTex[Sub]Image()
* added comment about glTexImage and renderbuffersBrian Paul2005-12-011-0/+6
|
* Use new gl_framebuffer _Depth/_StencilBuffer fields instead ofBrian Paul2005-11-161-6/+4
| | | | | Attachment[BUFFER_DEPTH/STENCIL].Renderbuffer. The former may be wrappers around combined depth/stencil renderbuffers attached at the later points.
* Make _mesa_is_proxy_texture() non-static and use in a few more places.Brian Paul2005-11-111-13/+7
| | | | | Use COPY_4FV() where possible. Added some comments, clean-ups.
* minor improvements in _mesa_init_teximage_fields()Brian Paul2005-11-051-9/+9
|
* In gl_texture_image replace IntFormat with InternalFormat and Format withBrian Paul2005-10-051-11/+11
| | | | _BaseFormat to be consistant with gl_renderbuffer.
* additional error checking for GL_EXT_packed_depth_stencilBrian Paul2005-10-011-13/+50
|
* Initial work for GL_EXT_packed_depth_stencil extension.Brian Paul2005-09-281-1/+39
| | | | glReadPixels done, glDrawPixels mostly done.
* New set_fetch_functions() to set a gl_texture_image's FetchTexel functionsBrian Paul2005-09-151-40/+0
| | | | | | | from the gl_texture_format's functions. Added "adaptor" functions to allow sampling a float-valued texture with GLchans and vice versa. This will allow trimming down the number of texture fetch routines.
* check for either GL_ARB_depth_texture or GL_SGIX_depth_texture in a few placesBrian Paul2005-09-081-3/+5
|
* The old MESA_PBUFFER_ALLOC() function allocated memory on 512-byte boundaries.Brian Paul2005-07-051-2/+27
| | | | | Restore that behavior with new _mesa_alloc_texmemory() function. Should fix via_sse_memcpy() problem in found with flightgear.
* Get rid of the MESA_PBUFFER_ALLOC/FREE() macros.Brian Paul2005-06-271-1/+1
| | | | | If that stuff is still needed, lots of other updates are needed anyway. Also, some misc MALLOC/FREE -> _mesa_malloc/free() changes.
* add FreeTexImageData hook to help single-copy texturing in driversKeith Whitwell2005-03-221-35/+49
|
* indentation fixBrian Paul2005-02-081-6/+7
|
* add a few commentsBrian Paul2005-02-051-0/+5
|
* allow more internalFormat/format combinations (i hope i got it right)Daniel Borca2005-01-171-2/+5
|
* really protect against npot compressed textures (logbase2 never returns -1).Daniel Borca2004-12-201-3/+3
|
* Added driver hooks for GetTexImage() and GetCompressedTexImage().Brian Paul2004-12-121-158/+5
| | | | Added fallback _mesa_get_[compressed]_teximage() routines to texstore.c
* allow GetTexImage with RGBA format and COLOR_INDEX internalformatDaniel Borca2004-12-101-2/+4
|
* Fix some warningsAlan Hourihane2004-12-021-2/+0
|
* added GL_RED/GREEN/BLUE to is_color_format()Brian Paul2004-11-221-0/+3
|
* GL_(UN)PACK_SKIP_IMAGES should only be applied to 3D texture pack/unpackingBrian Paul2004-11-101-2/+5
| | | | | | | and ignored for 1D and 2D images. Need to pass in image dimensions (1,2,3) to the _mesa_image_address() function. This change gets propogated to some other routines. Also added new _mesa_image_address[123]d() convenience functions.
* PBO support for glGetCompressedTexImage().Brian Paul2004-10-311-2/+37
|
* glGetTexImage() now works with PBOs.Brian Paul2004-10-311-7/+32
|
* Reject unsupported texture formats passed to glCompressedTexImage?D. ThisIan Romanick2004-10-081-0/+3
| | | | fixes Mesa bug #1028405.
* don't test for NULL pixels pointer here, do that in the 'store' routines ↵Brian Paul2004-09-231-6/+9
| | | | after validating PBO address
* Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵Brian Paul2004-08-251-0/+2
| | | | 1015696)
* document some assumptions made about compressed texture tile sizeBrian Paul2004-07-021-0/+6
|
* Big-endian texture fixes from Michel Dänzer.Brian Paul2004-06-191-0/+1
|
* added more compressed formats to is_color_format()Roland Scheidegger2004-06-151-0/+4
|
* added compressed formats to is_color_format() and updated some commentsBrian Paul2004-06-141-14/+27
|
* added GL_BGR and GL_BGRA to is_color_format() (Ronny VindenesBrian Paul2004-06-111-0/+2
|
* Additional error checking for glTexImageXD.Brian Paul2004-06-101-7/+31
| | | | | Only allow 1D and 2D GL_DEPTH_COMPONENT textures. Make sure internal format and user format are in same catagory.
* Added big-endian texture formats.Brian Paul2004-05-121-9/+34
| | | | Moved CI->RGBA palette lookup into texel fetch function.
* Removed the old teximage code.Brian Paul2004-04-271-12/+9
| | | | | Moved all code related to specific texture compression modes into new texcompress_s3tc.c and texcompress_fxt1.c files (but not implemented).
* use FetchTexelf() in GetTexImage() to return float textures correctlyBrian Paul2004-04-221-5/+6
|
* New glTexImage code.Brian Paul2004-04-221-82/+115
| | | | | | | | The gl_texture_format struct now has a StoreTexImageFunc that's called by glTex[Sub]Image[123]D to convert the user's texture data into the specific texture format layout. Now it's much easier to add new texture formats (like the 16/32-bit floating point formats). The texutil.[ch] and texutil_tmp.h files are obsolete.
* rename some span pack/unpack functions for better uniformityBrian Paul2004-02-281-1/+1
|
* Consolidate texObj->Pos/Neg/X/Y/Z and texObj->Image into a singleKeith Whitwell2004-01-271-58/+34
| | | | array, texObj->Image[face][level].
* New error checking in _mesa_GetTexImage().Brian Paul2004-01-241-23/+82
| | | | Updated comments and some better function parameter names.
* Initial support for floating point and signed texture formats.Brian Paul2004-01-231-33/+49
| | | | | | | New "FetchTexelFuncF()" function returns texels in floating point format. Only used for depth component images at this time. Changed original FetchTexelFunc to return GLchan instead of GLvoid, removing need for a bunch of ugly casts.
* add GL_TEXTURE_CUBE_MAP_ARB to _mesa_max_texture_levels(), reordered some ↵Brian Paul2004-01-111-13/+15
| | | | comments
* Port over changes from XFree86/Mesa 5.0.2, mostly to silence compiler warnings.Brian Paul2003-12-041-12/+1
|
* more texture compressionDaniel Borca2003-11-211-0/+16
|