summaryrefslogtreecommitdiff
path: root/src/mesa/main/teximage.c
AgeCommit message (Collapse)Author
2010-07-20mesa: call ctx->Driver.ChooseTextureFormat() only when necessary.Brian Paul
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"
2010-07-15mesa: Add error path in compressed_texture_error_check.Vinson Lee
Add error path for unhandled dimensions in compressed_texture_error_check.
2010-07-07mesa: initial support for new GL 3.0 texture formatsBrian Paul
2010-07-05mesa: initial support for unnormalized integer texture formatsBrian Paul
As defined by GL_EXT_texture_integer.
2010-05-11mesa: fix error message stringsBrian Paul
2010-05-02Merge branch 'gles2-2'Kristian Høgsberg
Conflicts: src/mesa/drivers/dri/common/dri_util.h
2010-05-02mesa: s/sprintf/_mesa_snprintf/Vinson Lee
2010-04-28mesa: Move support for paletted textures to main/teximage.cKristian Høgsberg
2010-04-23mesa: make is_compressed_format() non-staticBrian Paul
2010-04-23mesa: faster, simpler is_compressed_format()Brian Paul
2010-04-15mesa: Add missing format specifiers in error strings.Vinson Lee
2010-04-06mesa: Add OES_EGL_image to extension list.Chia-I Wu
2010-02-24mesa: Fix SCons build.Vinson Lee
2010-02-24core: Implement GL_OES_EGL_image entry pointsKristian Høgsberg
2010-02-19Replace the _mesa_*printf() wrappers with the plain libc versionsKristian Høgsberg
2010-02-19Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg
2010-01-27mesa: fix int/uint comparison warningsBrian Paul
Reported by Karl Schultz.
2010-01-17mesa: Remove unnecessary header from teximage.c.Vinson Lee
2009-11-16mesa: added another check in check_gen_mipmap()Brian Paul
We don't need to call ctx->Driver.GenerateMipmap() if we're updating a texture level >= MAX_LEVEL.
2009-11-02mesa: make _mesa_get_current_tex_objec() publicBrian Paul
2009-10-30mesa: better error messageBrian Paul
2009-10-29mesa: move, clean-up _mesa_print_texture()Brian Paul
2009-10-29mesa: fix some tests in subtexture_error_check2()Brian Paul
Don't use hard-coded compressed block sizes. Update comments and error strings.
2009-10-28Merge branch 'texformat-rework'Brian Paul
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
2009-10-27mesa: consolidate _mesa_CompressedTexSubImage[123]DARB() functionsBrian Paul
2009-10-27mesa: consolidate CompressedTexSubImage1/2/3DARB() error checkingBrian Paul
2009-10-27mesa: simplify teximage code with get_current_tex_object()Brian Paul
2009-10-25mesa: choose texture format in core mesa, not driversBrian Paul
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.
2009-10-25mesa: fix-up error checking related to compressed texture block sizeBrian Paul
2009-10-25mesa: clean-up, simplify compressed texture size checkingBrian Paul
2009-10-05mesa: don't include texformat.hBrian Paul
2009-10-05mesa: lift _mesa_set_fetch_functions() calls out of driversBrian Paul
Call it from in the main Mesa glTexImage functions.
2009-10-01mesa: removed gl_texture_image::CompressedSize fieldBrian Paul
Just call ctx->Driver.CompressedTextureSize() when we need to get the compressed image size.
2009-10-01mesa: remove gl_texture_image::IsCompressed fieldBrian Paul
Use _mesa_is_format_compressed() instead.
2009-09-30mesa: replace gl_texture_format with gl_formatBrian Paul
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.
2009-09-24mesa/main: Make FEATURE_convolve follow feature conventions.Chia-I Wu
As shown in mfeatures.h, this allows users of convolve.h to work without knowing if the feature is available.
2009-09-21mesa: add some debug info to teximage.cMaciej Cencora
2009-09-15mesa: move generate mipmap callsBrian Paul
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.
2009-09-15mesa: remove last of gotosBrian Paul
2009-09-15mesa: more goto removalBrian Paul
2009-09-15mesa: remove some gotosBrian Paul
This will make some subsequent changes easier...
2009-08-13mesa: add extension checks in _mesa_max_texture_levels()Brian Paul
2009-08-13mesa: use _mesa_get_current_tex_unit() in more placesBrian Paul
2009-08-13mesa: refactor: move _mesa_is_color/depth/stencil_format() helpers to image.cBrian Paul
2009-08-13mesa: move _mesa_Get[Compressed]TexImage() to texgetimage.cBrian Paul
All the glGetTexImage code is in one file now.
2009-08-12mesa: use _mesa_is_bufferobj()Brian Paul
2009-08-05mesa/main: Add functions to clear and dirty texture objects.Chia-I Wu
This commit adds a function to clear a texture object such that there is no image data associated with it, and a function to dirty it so that it will be re-tested for completeness. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-08-04mesa: more glGetTexImage() error checking consolidation, new assertionBrian Paul
2009-07-30mesa: re-enable _mesa_source_buffer_exists() callBrian Paul
Somehow this code wound up inside a comment a while back.
2009-07-30mesa: get_current_tex_unit() helper functionBrian Paul