summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/radeon/radeon_texture.c
AgeCommit message (Collapse)Author
2011-02-28mesa: move PBO-related functions into a new fileBrian Paul
2011-01-09radeon: Include mfeatures.h in files that perform feature tests.Vinson Lee
2010-11-08radeon: Implement GL_OES_EGL_imageJohann Rudloff
agd5f: add support to radeon/r200/r300 as well
2010-10-13Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg
2010-09-23radeon: Remove copied minimum pitch alignment code.Eric Anholt
This is already covered by radeon_mipmap_tree.c, and my convolution cleanups broke in the presence of this code. Thanks to Marek Olšák for tracking down the relevant miptree code for me.
2010-09-23mesa: Remove EXT_convolution.Eric Anholt
More optional code.
2010-08-09radeon: Use MESA_FORMAT_SARGB8 for sRGB formatsHenri Verbeet
This can be supported on r600 without using the endian swapper, and is a better fit for (typical) uploads using GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV anyway.
2010-06-19Revert "Fix image_matches_texture_obj() MaxLevel check"Will Dyson
This reverts commit a9ee95651131e27d5acf3d10909b5b7e5c8d3e92. It was based on a failure to understand how ther driver allocates memory, and causes a regression with Celestia. Set MaxLevel to dstLevel before allocating new mipmap level. The radeon driver will fail to allocate space for a new level that is outside of BaseLevel..MaxLevel. Set MaxLevel before allocating. Signed-off-by: Maciej Cencora <m.cencora@gmail.com>
2010-05-26Enable hardware mipmap generation for radeon.Will Dyson
Use _mesa_meta_GenerateMipmap. It is Fast Enough(tm). Signed-off-by: Maciej Cencora <m.cencora@gmail.com> Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-05-26Fix image_matches_texture_obj() MaxLevel checkWill Dyson
When generating or uploading a new (higher) mipmap level for an image, we can need to allocate a miptree for a level greater than texObj->MaxLevel. Signed-off-by: Maciej Cencora <m.cencora@gmail.com> Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-03-09radeon/r200/r300/r600: add is_format_renderable functionMaciej Cencora
2010-03-07radeon: handle compressed sRGB texture formatsMaciej Cencora
2010-03-07radeon: move glGetTexImage handlers to seperate fileMaciej Cencora
2010-03-07radeon: properly calculate rowstride for tiled imagesMaciej Cencora
2010-02-19Replace _mesa_malloc, _mesa_calloc and _mesa_free with plain libc versionsKristian Høgsberg
2010-02-10radeon: Fix printf formatings to match te values.Pauli Nieminen
2010-02-09radeon: Add some debug output for fbo supportPauli Nieminen
2010-02-06radeon: Add some debug output to texture function.\nPauli Nieminen
2010-01-22radeon/fbo: flush rendering before generating mipmapsAndre Maasikas
or maybe should flush(also) in finish_render_texture...
2010-01-19radeon: use mesa provided _mesa_tex_target_to_face functionMaciej Cencora
2009-12-11r300: fix depth texturesMaciej Cencora
2009-12-07radeon: fix cases when only first image where put directly into miptree.Maciej Cencora
Make sure that minimal width, height and depth of texture image is 1.
2009-12-03radeon: properly check if image should be placed in the miptreeMaciej Cencora
Fixes #25355
2009-11-29radeon: update miptree code a littleMaciej Cencora
Simplify gl image level <-> miptree level mapping (are equal now). Don't allocate miptree for images that won't fit in it (fixes #25230).
2009-11-29radeon: add some debugging infoMaciej Cencora
2009-11-21radeon: fix glCompressedTexSubImageMaciej Cencora
2009-11-14radeon: rework mipmap treeMaciej Cencora
2009-11-14radeon: more texture code refactoringMaciej Cencora
2009-11-14radeon: minor refactoring of texture codeMaciej Cencora
Also properly set dstImageOffsets for TexSubImage case.
2009-11-14radeon: rework mipmap tree reference countingMaciej Cencora
2009-11-14radeon/r300: don't flush cmdbuf if not necessaryMaciej Cencora
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-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: remove calls to _mesa_compressed_row_stride()Brian Paul
2009-10-24mesa: change compressed texture size callsBrian Paul
Replace calls to ctx->Driver.CompressedTextureSize with calls to _mesa_format_image_size. The former always called the later.
2009-10-05drivers: don't include texformat.hBrian Paul
And remove other unneeded #includes while we're at it.
2009-10-05mesa: lift _mesa_set_fetch_functions() calls out of driversBrian Paul
Call it from in the main Mesa glTexImage functions.
2009-10-03radeon: Cope better with texture images with no miptrees.Michel Dänzer
Fixes crash with compiz magnifier plugin.
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: move mesa_set_fetch_functions()Brian Paul
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-28drivers: use new _mesa_texstore() functionBrian Paul
2009-09-27mesa/drivers: use _mesa_get_format_bytes()Brian Paul
2009-09-27mesa/drivers: use _mesa_get_format_bytes()Brian Paul
2009-09-27mesa: use _mesa_get_texstore_func()Brian Paul
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-03radeon: pass internal format into the miptree.Dave Airlie
We need to figure out if the compression format changes. without this texcmp segfaults if you change format enough times.
2009-08-31r100: Use shared debug code.Pauli Nieminen
Converted r100 to use shared debug code with sed and fast compile check. New code has compability layer so old debugging code doesn't have to be changed all immidiatly.
2009-08-04radeon: more fixes for compressed texturesRoland Scheidegger
- fix not respecting required hardware stride with compressedTexImage - this fixes #22615. - make sure correct stride is used in various places - fix stored miptree never matching with a TexImage call with compressed texture - don't always store data with compressedtexsubimage at offset 0, and actually use the supplied pixel data... (untested) - make sure rows for compressed texture handling are rounded up not down Note that trying to access stored compressed textures in hardware miptrees from core mesa (get_compressed_teximage, swrast fallbacks) can't work correctly, since RowStride isn't really set to anything useful, plus some places (at least get_compressed_teximage) assume this data has native stride and no padding.