aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texcompress_rgtc.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa/gallium: remove GLchan from latc, rgtc codeBrian Paul2011-09-201-14/+14
|
* mesa: s/_mesa_make_temp_chan_image()/_mesa_make_temp_ubyte_image()Brian Paul2011-09-201-4/+4
| | | | Another step toward eliminating the GLchan type.
* mesa: move gl_texture_image::FetchTexel fields to swrastBrian Paul2011-09-171-20/+22
| | | | | This also involves passing swrast_texture_image instead of gl_texture_image into all the fetch functions.
* mesa: fix dstRowDiff computation in RGTC texstore functionsMarek Olšák2011-04-081-4/+4
| | | | | Copied from libtxc_dxtn, this fixes NPOT RGTC1 textures with r300g. I also did the same for RGTC2.
* mesa: add EXT_texture_compression_latcMarek Olšák2011-03-081-4/+64
| | | | | | | | | | | | | | | | | 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.
* rgtc: move the texel fetch into common unsigned/signed code.Dave Airlie2011-03-021-65/+12
| | | | | | This function can be done in the include file also. Signed-off-by: Dave Airlie <[email protected]>
* rgtc: fix issues with compressor and signed types.Dave Airlie2011-03-021-3/+3
| | | | | | | | | | 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 <[email protected]>
* rgtc: don't try to access off the end of the block.Dave Airlie2011-03-021-2/+2
| | | | | | | | 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 <[email protected]>
* rgtc: move to using ubyte for fetch instead of chan + fix limitDave Airlie2011-03-021-13/+13
| | | | | | My previous fix to the byte max was incorrect. Signed-off-by: Dave Airlie <[email protected]>
* rgtc: fix fetch function limits for signed typesDave Airlie2011-03-021-2/+2
|
* swrast/rgtc: fix rendering issues introduced when fix constantsDave Airlie2011-03-021-1/+1
| | | | The max value was wrong and this showed up in the piglit tests.
* rgtc: shared the compressor code between signed/unsignedDave Airlie2011-03-011-696/+27
| | | | | | | | 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 <[email protected]>
* rgtc: fix void pointer arith.Dave Airlie2011-03-011-2/+2
| | | | should fix scons build.
* mesa: Add RGTC texture store/fetch support.Dave Airlie2011-02-281-0/+1122
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 <[email protected]>