History log of /external/mesa3d/src/mesa/main/texcompress.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4fec5e9154582439bc185eb143e89f220b169c32 23-Aug-2012 Brian Paul <brianp@vmware.com> mesa/swrast: fix GL_TEXTURE_2D_ARRAY texture fetches for dxt formats

As with the previous commit.

This fixes the last crash in the piglit copyteximage test but there's
still some failures.
/external/mesa3d/src/mesa/main/texcompress.c
d78b44c2651b45c337dda71b17351beb41eb9c14 23-Aug-2012 Brian Paul <brianp@vmware.com> mesa/swrast: fix GL_TEXTURE_2D_ARRAY texture fetches for latc/rgtc formats

Fix-up the texel fetch functions so that they handle 3D coords (as used for
array textures) and remove the "f_2d" part from their names.

Helps fix swrast crashes in piglit's copyteximage test. More to come.
/external/mesa3d/src/mesa/main/texcompress.c
aab06dc0f0bf295abe213021b79ff65d70a4f4c0 22-Aug-2012 Brian Paul <brianp@vmware.com> mesa: s/GLuint/gl_format/ in _mesa_compressed_format_to_glenum()

No real change here, just use the right type.
/external/mesa3d/src/mesa/main/texcompress.c
07459ba50979a99e12720bd9e41a1aa3b8d24e41 09-Feb-2012 Brian Paul <brianp@vmware.com> mesa: push row stride adjustment down into _mesa_decompress_image()

There's a mismatch in row strides for compressed textures between
what Driver.MapTextureImage() returns and what the software fetch-texel
functions use. Move it down a layer. The next step would be to fix
this in the fetch-texel functions.
/external/mesa3d/src/mesa/main/texcompress.c
bd3c10c0f0c60ab3421c2da2eab814edc2296cb0 16-Jan-2012 Brian Paul <brianp@vmware.com> swrast: s/Data/Map/ in swrast_texture_image

To indicate that it points to mapped texture memory.
/external/mesa3d/src/mesa/main/texcompress.c
d4a38e86d4b4d66cca20ee63222f940cb73fa709 28-Nov-2011 Chia-I Wu <olv@lunarg.com> mesa: add support for GL_OES_compressed_ETC1_RGB8_texture

Add support for GL_OES_compressed_ETC1_RGB8_texture to core mesa. There is no
driver support yet.

Unlike desktop GL compressed texture formats, GLES compressed texture formats
usually can only be used with glCompressedTexImage2D. All other gl*Tex*Image*
functions are updated to check for that.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/texcompress.c
6e0f9001fe3fb191c2928bd09aa9e9d05ddf4ea9 23-Oct-2011 Brian Paul <brianp@vmware.com> mesa: move gl_texture_image::Data, RowStride, ImageOffsets to swrast

Only swrast and the drivers that fall back to swrast need these fields now.
This removes the last of the fields related to software rendering from
gl_texture_image.
/external/mesa3d/src/mesa/main/texcompress.c
011e946cb09993a9b298358188736394241bbb03 14-Sep-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Don't expose compressed paletted formats via GL_{NUM_,}COMPRESSED_TEXTURE_FORMATS

Fixes a bug introduced by commit faf5d65. These formats should only
be exposed in OpenGL ES 1.x.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Cc: Xun Fang <xunx.fang@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40860
/external/mesa3d/src/mesa/main/texcompress.c
a1661dc8957a35899d653e9fffd97f166c56be56 17-Sep-2011 Brian Paul <brianp@vmware.com> mesa: move gl_texture_image::FetchTexel fields to swrast

This also involves passing swrast_texture_image instead of gl_texture_image
into all the fetch functions.
/external/mesa3d/src/mesa/main/texcompress.c
3370ba802ff93fde399c9b07303a71ab0827e217 09-Sep-2011 Brian Paul <brianp@vmware.com> mesa: new _mesa_decompress_image() function

Use the old texture fetch functions to decompress a whole image.
To be used by glGetTexImage().
/external/mesa3d/src/mesa/main/texcompress.c
faf5d6584b9d75a10987c4460b376af7d1e4d496 08-Sep-2011 Adam Jackson <ajax@redhat.com> gles: Fix glGet(GL_{NUM_,}COMPRESSED_TEXTURE_FORMATS_ARB)

We'd still accept the GL_PALETTE[48]_* formats in glCompressedTexImage2D,
but they wouldn't be listed if you queried whether they were supported.

Signed-off-by: Adam Jackson <ajax@redhat.com>
/external/mesa3d/src/mesa/main/texcompress.c
b189d1635d89cd7d900e8f9a5eed88d7dc0b46cb 23-Jul-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Make _mesa_get_compressed_formats match the texture compression specs

The implementation deviated slightly from the GL_EXT_texture_sRGB spec
and from other implementations. A giant comment block was added to
justify the somewhat odd behavior of this function.

In addition, the interface had unnecessary cruft. The 'all' parameter
was false at all callers, so it has been removed.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/texcompress.c
09916e877fc14723d7950f892e181df9f7d7f36f 23-Jul-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Add utility function to get base format from a GL compressed format

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/texcompress.c
69f16accd0aa3b8d414092a5e52ccc99649da01a 07-Mar-2011 Marek Olšák <maraeo@gmail.com> mesa: add ATI_texture_compression_3dc

LUMINANCE_ALPHA_LATC2 = LUMINANCE_ALPHA_3DC, so this is easy.

Note that there is no specification for 3DC, just a few white papers
from ATI.
/external/mesa3d/src/mesa/main/texcompress.c
7d16e2c0cd70dc5a23b746dbc8e44c58366b5353 07-Mar-2011 Marek Olšák <maraeo@gmail.com> mesa: add EXT_texture_compression_latc

The encoding/decoding algorithms are shared with RGTC.
Thanks to some magic with the base format, the RGTC texstore functions work
for LATC too.

swrast passes the related piglit tests besides two things:
- The alpha channel is wrong (it's always 1), however the incorrect alpha
channel makes some other tests fail too, so I guess it's unrelated to LATC.
- Signed LATC fetches aren't correct yet (signed values are clamped to [0,1]),
however RGTC has the same problem.

Further testing (with other of my patches) shows that hardware drivers
and softpipe work.

BTW, ETQW uses this extension.
/external/mesa3d/src/mesa/main/texcompress.c
8d47c919859e9cd90cfc04eb220ac8a5aa87048e 22-Feb-2011 Dave Airlie <airlied@redhat.com> mesa: Add RGTC texture store/fetch support.

This adds support for the RGTC unsigned and signed
texture storage and fetch methods.

the code is a port of the DXT5 alpha compression code.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/main/texcompress.c
db61b9ce39bccc43140357652ceb78baaf2aea44 07-Jan-2011 Vinson Lee <vlee@vmware.com> mesa: Directly include mfeatures.h in files that perform feature tests.
/external/mesa3d/src/mesa/main/texcompress.c
0117da40cd7edd3d165bb28569c289b37eca12b9 06-Jan-2011 Vinson Lee <vlee@vmware.com> mesa: Include mtypes.h in files that use gl_context struct.

Directly include mtypes.h if a file uses a gl_context struct. This
allows future removal of headers that are not strictly necessary but
indirectly include mtypes.h for a file.
/external/mesa3d/src/mesa/main/texcompress.c
f9995b30756140724f41daf963fa06167912be7f 12-Oct-2010 Kristian Høgsberg <krh@bitplanet.net> Drop GLcontext typedef and use struct gl_context instead
/external/mesa3d/src/mesa/main/texcompress.c
245d5a8913f6f4487e837d112a97093c06b639ea 31-Jul-2010 Vinson Lee <vlee@vmware.com> mesa: Remove unnecessary headers.
/external/mesa3d/src/mesa/main/texcompress.c
199b0894b501607bf8d599ef5efc08cd6c08c79d 11-May-2010 Kristian Høgsberg <krh@bitplanet.net> mesa: Optimize get.c by using a table-driven approach
/external/mesa3d/src/mesa/main/texcompress.c
ec29ba12a687c8a08ecba002216bbd9f56facef0 19-Jan-2010 Vinson Lee <vlee@vmware.com> mesa: Remove unnecessary headers from texcompress.c.
/external/mesa3d/src/mesa/main/texcompress.c
bc143b1a9ffc16af27b2e7183ca3ec59ad5a7c89 29-Oct-2009 Brian Paul <brianp@vmware.com> mesa: minor code movement
/external/mesa3d/src/mesa/main/texcompress.c
1f196b786d6bd0c6a5dbdc638574ff716cc3d4de 29-Oct-2009 Brian Paul <brianp@vmware.com> Merge branch 'texformat-rework'

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
20c6c5853261b31ecd50d58e0aae9b92f25e41db 26-Oct-2009 Brian Paul <brianp@vmware.com> mesa: remove _mesa_compressed_row_stride()
/external/mesa3d/src/mesa/main/texcompress.c
54bb414e00a4daedbe530b9933bc11bac4ae7149 25-Oct-2009 Brian Paul <brianp@vmware.com> mesa: clean-up, simplify compressed texture size checking
/external/mesa3d/src/mesa/main/texcompress.c
d6ee86c77a8e1543557fd64c1f1c354baa0a8ad8 25-Oct-2009 Brian Paul <brianp@vmware.com> mesa: remove _mesa_compressed_texture_size()

Use _mesa_format_image_size() instead.
/external/mesa3d/src/mesa/main/texcompress.c
5c8282769601ba30c00f04dac15d1dad6d67db6e 24-Oct-2009 Brian Paul <brianp@vmware.com> mesa: simplify _mesa_compressed_row_stride(), _mesa_compressed_image_address()

_mesa_compressed_row_stride() can go away soon.
_mesa_compressed_image_address() can be generalized and moved to formats.c
/external/mesa3d/src/mesa/main/texcompress.c
1ad9671db7bd60fa84266f30f46555b4e45bcb08 24-Oct-2009 Brian Paul <brianp@vmware.com> mesa: s/GLuint/gl_format/
/external/mesa3d/src/mesa/main/texcompress.c
9528dc6ed8d09eba0dc3be17dc5e9ef4add8083c 23-Oct-2009 Brian Paul <brianp@vmware.com> mesa: added _mesa_compressed_format_to_glenum()

Maps a compressed MESA_FORMAT_x to correspding GLenum. Needed for
querying a texture's actual format when a generic format was originally
requested.
/external/mesa3d/src/mesa/main/texcompress.c
90cd968300b8490f6efd75ef751fd3b6554f16d3 06-Oct-2009 Brian Paul <brianp@vmware.com> mesa: don't include texformat.h
/external/mesa3d/src/mesa/main/texcompress.c
354d66e2f58bb19efcd9a0f8b2398d3f1dc4248d 02-Oct-2009 Brian Paul <brianp@vmware.com> mesa: simplify _mesa_compressed_texture_size()
/external/mesa3d/src/mesa/main/texcompress.c
e97681c7f551a2a2a6bd5eff0f4192a870c816c0 09-Feb-2009 Brian Paul <brianp@vmware.com> mesa: merge gallium-0.2 into gallium-master-merge

Merge commit 'origin/gallium-0.2' into gallium-master-merge

Conflicts:

Makefile
docs/relnotes-7.4.html
docs/relnotes.html
src/mesa/drivers/dri/i965/brw_wm.h
src/mesa/main/imports.c
src/mesa/main/mtypes.h
src/mesa/main/texcompress.c
src/mesa/main/texenvprogram.c
src/mesa/main/version.h
src/mesa/vbo/vbo_exec_api.c
src/mesa/vbo/vbo_save_draw.c
33fa5e4bfad8005f09ad3c9fc92c40fa863935d1 28-Jan-2009 Ian Romanick <idr@freedesktop.org> Make GL_ARB_texture_compression mandatory

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/texcompress.c
5bd093bd7b3711f88e1fd0fc9cdb37a18d7d24b9 12-Dec-2008 Roland Scheidegger <sroland@tungstengraphics.com> mesa: fixes for srgb, new srgb formats

add some more srgb texture formats, including compressed ones
various fixes relating to srgb formats

issues: _mesa_get_teximage is completely broken for srgb textures,
both for non-compressed ones (swizzling) and compressed ones
(shouldn't do standard-to-linear conversion)
texelFetch function may be broken for little or big endian
(or both...)
/external/mesa3d/src/mesa/main/texcompress.c
33a1f495d4bb19288680b9812c6ec1235302d215 08-Dec-2008 Alan Hourihane <alanh@tungstengraphics.com> Merge commit 'origin/master' into gallium-0.2

Conflicts:

progs/glsl/Makefile
3b5cd7d74adaeb4c0cf27925ba187235c7a4cff4 28-Nov-2008 Phillip Klaus Krause <pkk@spth.de> mesa: remove unneeded compressed texure size checks
/external/mesa3d/src/mesa/main/texcompress.c
e961a5da77cbcdb0e32400ec707c16fcfe9d7083 13-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> mesa: add some #if FEATURE_x tests
/external/mesa3d/src/mesa/main/texcompress.c
24edd9015951dd41898902b6c3973fe605e5871a 29-Sep-2006 Brian Paul <brian.paul@tungstengraphics.com> Move mipmap generation functions, texture scaling functions into new
mipmap.c file.
/external/mesa3d/src/mesa/main/texcompress.c
0a4be7036864efa6b30d78e0aac449d34b812c13 04-Aug-2006 Brian Paul <brian.paul@tungstengraphics.com> more work for GL_EXT_texture_sRGB.
/external/mesa3d/src/mesa/main/texcompress.c
008ed1df83735c72c2731c509a3665938d3c7209 09-May-2006 Brian Paul <brian.paul@tungstengraphics.com> Add a new 'all' parameter to _mesa_get_compressed_formats() to indicate whether
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.
/external/mesa3d/src/mesa/main/texcompress.c
c3c19be8e0d0b13916cc128cf3c8e839935c912a 09-May-2006 Brian Paul <brian.paul@tungstengraphics.com> More updates for texture compression.
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.
/external/mesa3d/src/mesa/main/texcompress.c
5999c5b620236fb6a996cf56759aec31f01c126b 08-May-2006 Brian Paul <brian.paul@tungstengraphics.com> Fix a number of texture compression issues.
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
/external/mesa3d/src/mesa/main/texcompress.c
a0c85249244e1af8dac88076d5f384cf4bd01236 11-Feb-2005 Keith Whitwell <keith@tungstengraphics.com> mesa-main-0-NULL.patch from Jeff Muizelaar
/external/mesa3d/src/mesa/main/texcompress.c
a6c423d95663cfd8601cf84e10e8e1b12fa6ef15 25-Aug-2004 Brian Paul <brian.paul@tungstengraphics.com> Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch 1015696)
/external/mesa3d/src/mesa/main/texcompress.c
8f04c12e0ad876baa7eb9ed379e2b00150b376e0 27-Apr-2004 Brian Paul <brian.paul@tungstengraphics.com> Removed the old teximage code.
Moved all code related to specific texture compression modes into
new texcompress_s3tc.c and texcompress_fxt1.c files (but not implemented).
/external/mesa3d/src/mesa/main/texcompress.c
663a9e1b7ef7b8384abe2f81e1a8749b942f6d3a 21-Nov-2003 Daniel Borca <dborca@users.sourceforge.net> more texture compression
/external/mesa3d/src/mesa/main/texcompress.c
ef387549bda21c6338817c83ecfb248dc92cd001 03-Nov-2003 Daniel Borca <dborca@users.sourceforge.net> small fixes wrt texture handling
/external/mesa3d/src/mesa/main/texcompress.c
40bd9d0b190e11d39350d1b08d2c2b28e3040bca 29-Oct-2003 Daniel Borca <dborca@users.sourceforge.net> texture compression
/external/mesa3d/src/mesa/main/texcompress.c
6dc85575000127630489b407c50a4b3ea87c9acb 17-Jul-2003 Keith Whitwell <keith@tungstengraphics.com> Merge Jose's documentation and core Mesa changes from embedded branch
/external/mesa3d/src/mesa/main/texcompress.c
78233887446a8f5fe66d674caf1b7ee838647ac1 03-Apr-2003 Brian Paul <brian.paul@tungstengraphics.com> some texture compression odds & ends
/external/mesa3d/src/mesa/main/texcompress.c
ee2b34215fc91b1c8b36b0b998df4ec9d9526fb8 24-Mar-2003 Brian Paul <brian.paul@tungstengraphics.com> add 2, not 4, in _mesa_get_compressed_formats()
/external/mesa3d/src/mesa/main/texcompress.c
3c63452e64df7e10aa073c6c3b9492b1d7dabbb8 25-Oct-2002 Brian Paul <brian.paul@tungstengraphics.com> Header file clean-up:
1. Remove all.h and PC_HEADER junk.
2. Rolled mem.c and mem.h into imports.c and imports.h
3. Include imports.h instead of mem.h
Restore _mesa_create/initialize_context() to be like they were in 4.0.4
New wrappers for a few std C functions: _mesa_atoi(), _mesa_strstr(), etc.
/external/mesa3d/src/mesa/main/texcompress.c
2ce0654ebabc7fc6a2881f51e496e4e1f7533087 18-Oct-2002 Brian Paul <brian.paul@tungstengraphics.com> implement auto mipmap generation for compressed textures
/external/mesa3d/src/mesa/main/texcompress.c
89fb06fcc11cbe3f23521312155d6c55d869f526 27-Sep-2002 Brian Paul <brian.paul@tungstengraphics.com> new texture compression infrastructure
/external/mesa3d/src/mesa/main/texcompress.c