Commit Graph

22 Commits

Author SHA1 Message Date
castano
8529dcf755 Fix memory leaks.
Shutdown CUDA properly when nvtt context is destroyed.
Fixes issue 83.
2009-03-18 05:46:53 +00:00
castano
931580edc5 Include cuda runtime properly. 2008-12-09 11:26:08 +00:00
castano
321f320bfb Do not print stupid messages. 2008-11-22 00:13:14 +00:00
castano
2f6e885ced Add DXT1 compressor that uses texture to avoid CPU swizzling.
Fix errors under emulation.
Experiment with DXT5 compressor.
2008-10-01 22:24:53 +00:00
castano
29a720bf82 Do not print text. 2008-05-22 21:32:09 +00:00
castano
a889f2fda6 Add support for alpha modes in the CUDA compressors. 2008-05-06 20:04:05 +00:00
castano
d855d0461b Add single color checks to CUDA compressors.
Use optimized bitmap table for CTX compressor.
2008-05-06 19:52:27 +00:00
castano
8d9bf5c0b3 Fix after refactoring CPU compressors. Changes were not tested with CUDA enabled. 2008-04-29 22:31:55 +00:00
castano
1df69495fc Precompute fast cluster fit factors, and store as static const.
nvtt is completely reentrant now. Fixes issue 37.
cleanup interface of cuda compressors.
2008-04-18 08:49:32 +00:00
castano
bd3314f4af Add inputOptions argument to compressors, so that they can access alpha mode. 2008-03-27 04:28:17 +00:00
castano
065c5f0689 Cleanup simple compressors. Move code from FastCompress to QuickCompress. 2008-03-20 01:39:02 +00:00
castano
b7a724448b Remove unnecesary dependency. 2008-03-14 07:32:59 +00:00
castano
ccced843e3 Use smaller allocations to prevent errors.
Check for allocation errors.
2008-02-28 21:45:04 +00:00
castano
e3e7fcb226 Check cuda errors to find out whether the cuda context initialization succeeded. 2008-02-28 17:52:32 +00:00
castano
8a24a93e2f Disable CUDA when memory allocations fail. 2008-02-28 16:06:27 +00:00
castano
5dbfb20b60 Add DXT1n and CTX1 CUDA compressors. 2008-02-15 08:58:02 +00:00
castano
14ae88bb06 Fix leaks. Allocate CUDA memory only once. Free allocations when Compressor is destroyed. 2008-02-14 05:08:26 +00:00
castano
2b716b62da Add comments. 2008-01-07 07:26:40 +00:00
castano
9cfbb22d73 Update for API changes. 2007-12-17 04:10:58 +00:00
castano
854da30b8e Add nvassemble tool to create cubemaps, volumes, and texture arrays. 2007-11-16 11:05:17 +00:00
castano
fc9538baf9 Precompute permutations. 2007-10-29 22:36:36 +00:00
castano
e34a12a46f flatten tree. 2007-10-14 08:58:24 +00:00