Commit Graph

72 Commits (master)

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>
5 years ago
Ignacio a20044bccc Integrate changes from cfcohen to supress warning. 9 years ago
cmdrf 7b031aa4bf Do not include removed Library.h 9 years ago
castano d019cd7080 Merge changes from the witness. 10 years ago
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). 11 years ago
castano bff3dab505 Fix errors. 12 years ago
castano 897cc78397 Port fix from 2.0 to trunk. Problem discovered thanks to Jern-Kuan. 12 years ago
castano 94401919b8 Add some inline files to reduce amount of code parsed. 13 years ago
castano af9ba8ae90 Add support for 3D texture. Integrate patch provided in issue 28 plus some additional changes. 13 years ago
castano b68d428492 Accumulate filter sums using doubles to avoid unsymmetries. Fixes issue 167. 13 years ago
castano a2f0e566c7 Use task dispatcher provided by user. 14 years ago
castano 5f845513ee Fix msvc warnings and errors.
Test TexImage stuff more througly.
Test YCoCg and RGBM.
14 years ago
castano 1e2567e4a3 More work toward 2.1: Implement InputOptions using TexImage. 14 years ago
castano bd74a9ffc6 Merge changes from the-witness. 14 years ago
castano 5d498d6824 Fix cuda compressor. Start work on new UI. 14 years ago
castano 765a89951d tabs -> spaces 14 years ago
castano ac7c017c35 DXT1a single color compressor. Fixes issue 131.
Init single color tables at startup.
14 years ago
castano 42a641f0a5 Fix errors when cuda is not enabled. 14 years ago
castano 035231a928 Minor changes. 14 years ago
castano 1454cbac14 Fix build. 14 years ago
castano a32d780347 Experiment with output callbacks instead of handlers. 14 years ago
castano a19e25228f reorg. 14 years ago
castano 0e5a1877a8 Some progress on the CUDA compressors. 15 years ago
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.
15 years ago
castano 568f34d838 Fix color weighted compression for single color blocks. Fixes issue 96. 15 years ago
castano 126816ef72 Experimental quality improvements and speed optimizations. 15 years ago
castano 35ff0e5aa6 Remove verbose error checking. 15 years ago
castano 8529dcf755 Fix memory leaks.
Shutdown CUDA properly when nvtt context is destroyed.
Fixes issue 83.
15 years ago
castano 56543e1a92 Merge changes from 2.0 15 years ago
castano 50b8b67185 Hide file format especific savers. Add generic image saver.
Misc fixes under OSX.
15 years ago
castano d99cf11e2e Update version checking code. 15 years ago
castano 49409e9d92 Cleanup color rounding and expansion. 16 years ago
castano 2ad15489bb Try to optimize color rounding and expansion.
Detect CUDA 2.1 properly.
16 years ago
castano e965b0e4a9 Include correct headers. 16 years ago
castano a03411e451 Check version properly. 16 years ago
castano 931580edc5 Include cuda runtime properly. 16 years ago
castano 321f320bfb Do not print stupid messages. 16 years ago
castano 7df0885c4f Fix CUDA detection code on linux. 16 years ago
castano 1c5da0e341 Do not use cuda API when CUDA not found.
Fix end of lines.
16 years ago
castano 36ba75b598 Select fastest device. 16 years ago
castano cf18077eda Prevent missmatches between incompatible versions of the CUDA runtime and the CUDA driver. 16 years ago
castano d01a5c1661 Workaround bug in CUDA runtime. When using CUDA 2.0, it's required to use a driver that supports CUDA 2.0. 16 years ago
castano 5234060618 Integrate branch 2.0 to trunk. 16 years ago
castano 2f6e885ced Add DXT1 compressor that uses texture to avoid CPU swizzling.
Fix errors under emulation.
Experiment with DXT5 compressor.
16 years ago
castano 29a720bf82 Do not print text. 16 years ago
castano a889f2fda6 Add support for alpha modes in the CUDA compressors. 16 years ago
castano d855d0461b Add single color checks to CUDA compressors.
Use optimized bitmap table for CTX compressor.
16 years ago
castano 8d9bf5c0b3 Fix after refactoring CPU compressors. Changes were not tested with CUDA enabled. 16 years ago
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.
16 years ago
castano bd3314f4af Add inputOptions argument to compressors, so that they can access alpha mode. 16 years ago