summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/teximage.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: rename function to _mesa_is_format_integer_color()Brian Paul2010-10-261-2/+2
| | | | Be a bit more clear about its operation.
* mesa: additional teximage error checks for GL_EXT_texture_integerBrian Paul2010-10-251-4/+38
|
* mesa: simplify target_can_be_compressed() functionBrian Paul2010-10-231-8/+18
|
* mesa: remove post-convolution width/height varsBrian Paul2010-10-141-35/+19
| | | | These were left-over bits from when convolution was removed.
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-31/+31
|
* mesa: Add ARB_texture_compression_rgtc as an alias for ↵Ian Romanick2010-10-011-5/+5
| | | | | | EXT_texture_compression_rgtc Change the name in the extension tracking structure to ARB (from EXT).
* ARB_texture_rg: Correct some errors in RED / RG internal format handlingIan Romanick2010-10-011-9/+32
| | | | | | | | | | | | | | Fixes several problems: The half-float, float, and integer internal formats depend on ARB_texture_rg and other extensions. RG_INTEGER is not a valid internal format. Generic compressed formats depend on ARB_texture_rg, not EXT_texture_compression_rgtc. Use GL_RED instead of GL_R.
* mesa: Remove EXT_convolution.Eric Anholt2010-09-231-62/+0
| | | | More optional code.
* mesa: Fix printf-like warnings.Vinson Lee2010-09-021-2/+2
|
* mesa: call ctx->Driver.ChooseTextureFormat() only when necessary.Brian Paul2010-07-201-45/+73
| | | | | | | | | | | | | | | | | | | When defining mipmap level 'L' and level L-1 exists and the new level's internalFormat matches level L-1's internalFormat, then use the same hw format. Otherwise, do the regular ctx->Driver.ChooseTextureFormat() call. This avoids a problem where we end up choosing different hw formats for different mipmap levels depending on how the levels are defined (glTexImage vs. glCopyTexImage vs. glGenerateMipmap, etc). The root problem is the ChooseTextureFormat() implementation in some drivers uses the user's glTexImage format/type parameters in the choosing heuristic. Later mipmap levels might be generated with different calls (ex: glCopyTexImage()) so we don't always have format/type info and the driver may choose a different format. For more background info see the July 2010 mesa-dev thread "Bug in _mesa_meta_GenerateMipmap"
* mesa: Add error path in compressed_texture_error_check.Vinson Lee2010-07-151-0/+4
| | | | | Add error path for unhandled dimensions in compressed_texture_error_check.
* mesa: initial support for new GL 3.0 texture formatsBrian Paul2010-07-071-0/+75
|
* mesa: initial support for unnormalized integer texture formatsBrian Paul2010-07-051-2/+50
| | | | As defined by GL_EXT_texture_integer.
* mesa: fix error message stringsBrian Paul2010-05-111-5/+5
|
* Merge branch 'gles2-2'Kristian Høgsberg2010-05-021-1/+19
|\ | | | | | | | | Conflicts: src/mesa/drivers/dri/common/dri_util.h
| * mesa: Move support for paletted textures to main/teximage.cKristian Høgsberg2010-04-281-1/+19
| |
* | mesa: s/sprintf/_mesa_snprintf/Vinson Lee2010-05-021-5/+5
| |
* | mesa: make is_compressed_format() non-staticBrian Paul2010-04-231-38/+4
| |
* | mesa: faster, simpler is_compressed_format()Brian Paul2010-04-231-18/+24
|/
* mesa: Add missing format specifiers in error strings.Vinson Lee2010-04-151-13/+13
|
* mesa: Add OES_EGL_image to extension list.Chia-I Wu2010-04-061-0/+6
|
* mesa: Fix SCons build.Vinson Lee2010-02-241-2/+2
|
* core: Implement GL_OES_EGL_image entry pointsKristian Høgsberg2010-02-241-0/+41
|
* Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg2010-02-191-2/+2
|
* Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg2010-02-191-5/+5
|
* mesa: fix int/uint comparison warningsBrian Paul2010-01-271-6/+6
| | | | Reported by Karl Schultz.
* mesa: Remove unnecessary header from teximage.c.Vinson Lee2010-01-171-1/+0
|
* mesa: added another check in check_gen_mipmap()Brian Paul2009-11-161-1/+3
| | | | | We don't need to call ctx->Driver.GenerateMipmap() if we're updating a texture level >= MAX_LEVEL.
* mesa: make _mesa_get_current_tex_objec() publicBrian Paul2009-11-021-31/+30
|
* mesa: better error messageBrian Paul2009-10-301-2/+2
|
* mesa: move, clean-up _mesa_print_texture()Brian Paul2009-10-291-57/+0
|
* mesa: fix some tests in subtexture_error_check2()Brian Paul2009-10-291-23/+22
| | | | | Don't use hard-coded compressed block sizes. Update comments and error strings.
* Merge branch 'texformat-rework'Brian Paul2009-10-281-24/+110
|\ | | | | | | | | | | | | | | | | | | | | | | 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
| * mesa: choose texture format in core mesa, not driversBrian Paul2009-10-251-0/+48
| | | | | | | | | | | | Call the ctx->Driver.ChooseTextureFormat() function from core Mesa's _mesa_[Copy]TexImage functions instead of in the driver functions. One less thing for drivers to do.
| * mesa: fix-up error checking related to compressed texture block sizeBrian Paul2009-10-251-5/+17
| |
| * mesa: clean-up, simplify compressed texture size checkingBrian Paul2009-10-251-4/+16
| |
| * mesa: don't include texformat.hBrian Paul2009-10-051-1/+0
| |
| * mesa: lift _mesa_set_fetch_functions() calls out of driversBrian Paul2009-10-051-0/+20
| | | | | | | | Call it from in the main Mesa glTexImage functions.
| * mesa: removed gl_texture_image::CompressedSize fieldBrian Paul2009-10-011-3/+0
| | | | | | | | | | Just call ctx->Driver.CompressedTextureSize() when we need to get the compressed image size.
| * mesa: remove gl_texture_image::IsCompressed fieldBrian Paul2009-10-011-4/+2
| | | | | | | | Use _mesa_is_format_compressed() instead.
| * mesa: replace gl_texture_format with gl_formatBrian Paul2009-09-301-7/+7
| | | | | | | | | | | | Now gl_texture_image::TexFormat is a simple MESA_FORMAT_x enum. ctx->Driver.ChooseTexture format also returns a MESA_FORMAT_x. gl_texture_format will go away next.
* | mesa: consolidate _mesa_CompressedTexSubImage[123]DARB() functionsBrian Paul2009-10-271-96/+56
| |
* | mesa: consolidate CompressedTexSubImage1/2/3DARB() error checkingBrian Paul2009-10-271-28/+58
| |
* | mesa: simplify teximage code with get_current_tex_object()Brian Paul2009-10-271-60/+38
|/
* mesa/main: Make FEATURE_convolve follow feature conventions.Chia-I Wu2009-09-241-2/+0
| | | | | As shown in mfeatures.h, this allows users of convolve.h to work without knowing if the feature is available.
* mesa: add some debug info to teximage.cMaciej Cencora2009-09-211-0/+87
|
* mesa: move generate mipmap callsBrian Paul2009-09-151-3/+63
| | | | | | Per the suggestion in the Intel driver, move the calls to ctx->Driver.GenerateMipmap() into core Mesa so that drivers don't have to worry about it.
* mesa: remove last of gotosBrian Paul2009-09-151-62/+62
|
* mesa: more goto removalBrian Paul2009-09-151-142/+129
|
* mesa: remove some gotosBrian Paul2009-09-151-105/+96
| | | | This will make some subsequent changes easier...