Commit Graph

72 Commits

Author SHA1 Message Date
Elvis Dowson
d57ca44902 Enable CUDA support.
This commit also reintroduces nvcore Library.h and Library.cpp files
required by nvtt/cuda/CudaUtils.cpp

Ref:
https://github.com/castano/nvidia-texture-tools/issues/230
81336cc3e9

Signed-off-by: Elvis Dowson <elvis.dowson@gmail.com>
2019-08-19 03:22:00 +04:00
Ignacio
a20044bccc Integrate changes from cfcohen to supress warning. 2015-12-05 15:09:57 -08:00
cmdrf
7b031aa4bf Do not include removed Library.h 2015-06-12 14:00:37 +02:00
castano
d019cd7080 Merge changes from the witness. 2014-11-04 17:49:29 +00:00
nathaniel.reed@gmail.com
77188a42ac Fix VC10 project files. Fix code to build with CUDA 5.5 (the cudaMemcpyToSymbol overload that takes the symbol name as a string was removed). 2013-10-16 21:18:16 +00:00
castano
bff3dab505 Fix errors. 2012-07-20 16:36:20 +00:00
castano
897cc78397 Port fix from 2.0 to trunk. Problem discovered thanks to Jern-Kuan. 2012-07-20 16:10:25 +00:00
castano
94401919b8 Add some inline files to reduce amount of code parsed. 2011-10-10 19:35:21 +00:00
castano
af9ba8ae90 Add support for 3D texture. Integrate patch provided in issue 28 plus some additional changes. 2011-09-27 05:17:01 +00:00
castano
b68d428492 Accumulate filter sums using doubles to avoid unsymmetries. Fixes issue 167. 2011-09-14 17:51:09 +00:00
castano
a2f0e566c7 Use task dispatcher provided by user. 2010-12-10 10:29:04 +00:00
castano
5f845513ee Fix msvc warnings and errors.
Test TexImage stuff more througly.
Test YCoCg and RGBM.
2010-11-06 02:34:34 +00:00
castano
1e2567e4a3 More work toward 2.1: Implement InputOptions using TexImage. 2010-11-03 18:31:16 +00:00
castano
bd74a9ffc6 Merge changes from the-witness. 2010-10-21 18:44:10 +00:00
castano
5d498d6824 Fix cuda compressor. Start work on new UI. 2010-10-18 08:47:50 +00:00
castano
765a89951d tabs -> spaces 2010-09-20 06:59:24 +00:00
castano
ac7c017c35 DXT1a single color compressor. Fixes issue 131.
Init single color tables at startup.
2010-07-22 09:23:17 +00:00
castano
42a641f0a5 Fix errors when cuda is not enabled. 2010-06-10 02:30:01 +00:00
castano
035231a928 Minor changes. 2010-05-28 23:16:06 +00:00
castano
1454cbac14 Fix build. 2010-05-28 07:45:11 +00:00
castano
a32d780347 Experiment with output callbacks instead of handlers. 2010-05-18 17:13:30 +00:00
castano
a19e25228f reorg. 2010-03-16 22:37:25 +00:00
castano
0e5a1877a8 Some progress on the CUDA compressors. 2009-11-05 09:27:03 +00:00
castano
8820c43175 Large refactoring of compressor codes:
- Define compressor interface.
- Implement compressor interface for different compressors.
- Add parallel compressor using OpenMP. Experimental.
- Add generic GPU compressor, so far only DXT1 enabled.
2009-10-21 07:48:27 +00:00
castano
568f34d838 Fix color weighted compression for single color blocks. Fixes issue 96. 2009-09-21 18:46:48 +00:00
castano
126816ef72 Experimental quality improvements and speed optimizations. 2009-07-06 09:08:09 +00:00
castano
35ff0e5aa6 Remove verbose error checking. 2009-03-18 05:51:15 +00:00
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
56543e1a92 Merge changes from 2.0 2009-03-18 04:05:39 +00:00
castano
50b8b67185 Hide file format especific savers. Add generic image saver.
Misc fixes under OSX.
2009-03-15 10:18:54 +00:00
castano
d99cf11e2e Update version checking code. 2009-03-14 03:30:20 +00:00
castano
49409e9d92 Cleanup color rounding and expansion. 2009-01-19 10:42:31 +00:00
castano
2ad15489bb Try to optimize color rounding and expansion.
Detect CUDA 2.1 properly.
2009-01-19 09:54:43 +00:00
castano
e965b0e4a9 Include correct headers. 2009-01-04 07:29:35 +00:00
castano
a03411e451 Check version properly. 2008-12-16 20:25:12 +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
7df0885c4f Fix CUDA detection code on linux. 2008-11-14 01:15:36 +00:00
castano
1c5da0e341 Do not use cuda API when CUDA not found.
Fix end of lines.
2008-11-10 21:54:03 +00:00
castano
36ba75b598 Select fastest device. 2008-10-30 04:50:41 +00:00
castano
cf18077eda Prevent missmatches between incompatible versions of the CUDA runtime and the CUDA driver. 2008-10-16 22:21:21 +00:00
castano
d01a5c1661 Workaround bug in CUDA runtime. When using CUDA 2.0, it's required to use a driver that supports CUDA 2.0. 2008-10-16 08:39:58 +00:00
castano
5234060618 Integrate branch 2.0 to trunk. 2008-10-15 07:16:57 +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