History log of /external/mesa3d/src/mesa/main/texcompress_rgtc.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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_rgtc.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_rgtc.c
d69d287068e0a6b5e2f3c13b1f55335a9b6ce03b 02-Jan-2012 Brian Paul <brianp@vmware.com> mesa: remove the dstX/Y/Zoffset params to _mesa_texstore() functions

The were always zero. When doing a sub-texture replacement we account
for the dstX/Y/Zoffsets when we map the texture image. So no need to
pass them into the texstore code anymore.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/texcompress_rgtc.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_rgtc.c
5253cf98057dad54e25b4b8c36f8cf24f559314c 05-Oct-2011 Brian Paul <brianp@vmware.com> mesa: get rid of imageOffsets arrays in texstore code

These were used to find the start of a 3D image slice (or 2D array texture
slice) given a base address. Instead, use a simple array of address of
image slices instead.

This is a step toward getting rid of the gl_texture_image::ImageOffsets
field.

Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/main/texcompress_rgtc.c
b4e6afbf7715df7473723f3e0c5d714cd5721802 17-Sep-2011 Brian Paul <brianp@vmware.com> mesa/gallium: remove GLchan from latc, rgtc code
/external/mesa3d/src/mesa/main/texcompress_rgtc.c
663f61a3e177a443c36f414a16a9d5f94e74135d 17-Sep-2011 Brian Paul <brianp@vmware.com> mesa: s/_mesa_make_temp_chan_image()/_mesa_make_temp_ubyte_image()

Another step toward eliminating the GLchan type.
/external/mesa3d/src/mesa/main/texcompress_rgtc.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_rgtc.c
6eff8479af1a137d81d7bffc0c55a39910c28ce9 06-Apr-2011 Marek Olšák <maraeo@gmail.com> mesa: fix dstRowDiff computation in RGTC texstore functions

Copied from libtxc_dxtn, this fixes NPOT RGTC1 textures with r300g.
I also did the same for RGTC2.
/external/mesa3d/src/mesa/main/texcompress_rgtc.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_rgtc.c
531c336fa39d8e823d05728cb7ddb3cc8a44d199 02-Mar-2011 Dave Airlie <airlied@redhat.com> rgtc: move the texel fetch into common unsigned/signed code.

This function can be done in the include file also.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/main/texcompress_rgtc.c
fb6ecca0a556dcca1f77bfb84a835e2b9c2e2e6a 02-Mar-2011 Dave Airlie <airlied@redhat.com> rgtc: fix issues with compressor and signed types.

With signed types we weren't hitting this test however the comment
stating this doesn't happen often doesn't apply when using signed
types since an all 0 block is quite common which isn't abs min or max.

this fixes the limits correctly again also.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/main/texcompress_rgtc.c
521394a204bd8073846acc7f9861081d29fa24c9 02-Mar-2011 Dave Airlie <airlied@redhat.com> rgtc: don't try to access off the end of the block.

if the values are all in the last dword, the high bits can be 0,

This fixes a valgrind warning I saw when playing with mipmaps.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/main/texcompress_rgtc.c
5f714c2aaf8d25e5d5ba2e4c29cb3046f7639d24 02-Mar-2011 Dave Airlie <airlied@redhat.com> rgtc: move to using ubyte for fetch instead of chan + fix limit

My previous fix to the byte max was incorrect.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/main/texcompress_rgtc.c
ff0f36f59d58e90e775117beb945ffbec7a5d7e2 02-Mar-2011 Dave Airlie <airlied@redhat.com> rgtc: fix fetch function limits for signed types
/external/mesa3d/src/mesa/main/texcompress_rgtc.c
01d5d1e80ee506205e8615356e55e4bca16c6b11 02-Mar-2011 Dave Airlie <airlied@redhat.com> swrast/rgtc: fix rendering issues introduced when fix constants

The max value was wrong and this showed up in the piglit tests.
/external/mesa3d/src/mesa/main/texcompress_rgtc.c
9c16fcc617b8c5c4db825ed290f994e535de8c65 01-Mar-2011 Dave Airlie <airlied@redhat.com> rgtc: shared the compressor code between signed/unsigned

No idea why I didn't do it like this the first time, but share
the code like other portions of mesa do using _tmp.h suffix
and some #defines for the types.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/main/texcompress_rgtc.c
3f600047d95f46995915d46aff574796d088fa83 28-Feb-2011 Dave Airlie <airlied@redhat.com> rgtc: fix void pointer arith.

should fix scons build.
/external/mesa3d/src/mesa/main/texcompress_rgtc.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_rgtc.c