519 Commits
2.0.7 ... 2.1.2

Author SHA1 Message Date
b1a90f3601 Update version number. 2020-08-23 23:27:21 -07:00
72dd3db723 Update changelog. 2020-08-23 23:27:09 -07:00
4754e526ce Target AVX2 in all projects and configurations. 2020-08-23 23:24:25 -07:00
f7e037d1c1 Fix build error. 2020-08-23 23:20:52 -07:00
b4da3c68f0 Update version number. 2020-08-23 23:18:24 -07:00
46d1179b17 Fix version number. 2020-08-23 22:55:58 -07:00
e5cf10de0e Remove specialized fast compressor. 2020-08-23 22:55:49 -07:00
13121bf32e Update README.md
Add badges.
2020-08-23 22:26:58 -07:00
9870cfbf90 Merge pull request #329 from MaddTheSane/patch-1
Update Half.cpp
2020-08-23 22:04:10 -07:00
e4301b3df7 Merge branch 'master' of https://github.com/castano/nvidia-texture-tools 2020-08-23 21:58:56 -07:00
831c8e6667 Upgrade ICBC to 1.05 2020-08-23 21:58:18 -07:00
be5a305081 Update Half.cpp
Replace old(?) usage of NV_CC_GCC with NV_CC_GNUC
2020-08-23 18:03:02 -06:00
5932492d8a Add release build. 2020-08-23 16:02:06 -07:00
09164a5fd3 Cleanup configuration. 2020-08-23 15:59:57 -07:00
2ab73d8cd5 Fix release instructions. 2020-08-23 15:53:09 -07:00
a4712cff20 Remove unused code.
Remove jai-specific workaround.
Various cleanups.
2020-08-23 15:39:54 -07:00
93146ffc73 Update svn:ignore properties. 2020-08-23 15:26:09 -07:00
dd6b750942 Update release instructions. 2020-08-23 15:23:38 -07:00
b06d5aba59 Remove support for some external compressors. 2020-08-23 15:21:54 -07:00
9d93fccb37 Cleanup. 2020-08-23 15:20:42 -07:00
2b3ffac418 Add sublime and vscode projects. 2020-08-23 15:20:01 -07:00
7525d356a0 Update buildpkg script 2020-08-23 15:16:47 -07:00
cb21ee18a1 Remove unused dependencies. 2020-08-23 15:15:45 -07:00
e5be4a615f Remove unused scripts. 2020-08-23 15:14:55 -07:00
c4aefe530c Remove unused scripts. 2020-08-23 15:13:22 -07:00
a77953a306 Update copyright. 2020-08-23 14:47:27 -07:00
6b9a6abccb Fix github action 2020-08-23 14:46:54 -07:00
8dc9df25d7 Create build.yml 2020-08-23 14:17:31 -07:00
614a7a4b82 Update README.md
Update build instructions.
2020-08-23 13:57:17 -07:00
61935ffa08 Update README.md
Provide links for source path.
2020-08-23 13:54:25 -07:00
6f3d02deab Merge pull request #328 from akb825/linux-fix-2
Linux build fixes.
2020-08-19 10:28:31 -07:00
cfa3fc528e Linux build fixes.
* Avoid hacks to get an empty VA list, which doesn't work with all
  compilers.
* Fix for isnan() on some versions of GCC.
2020-08-16 21:26:37 -07:00
b4cf9bc3f6 Merge pull request #324 from tepGithub/master
Add some support for uncompressed textures for ktx
2020-07-28 10:24:19 -07:00
967278d579 Fix tab/whitespace 2 2020-07-28 10:16:25 -07:00
aa8514e65d Fix tab/whitespace 2020-07-28 10:15:34 -07:00
b4eb9c5972 Added some support for uncompressed texture for ktx 2020-07-28 10:07:16 -07:00
eb34681ce8 Merge pull request #308 from voroskoi/musl
Musl build fixes
2020-07-13 16:54:35 -07:00
aeb84b5ffa Merge pull request #322 from leper/fix_va_list_vcpp
Fix build on VC++. Refs #309.
2020-07-13 16:17:19 -07:00
d73335fb82 Fix build on VC++. Refs #309.
This was broken by 831d8e1a91.
2020-07-10 19:01:56 +02:00
1aa1b038e8 Merge pull request #309 from leper/aarch64
Fix build on AArch64. Fixes #298.
2020-07-09 17:14:13 -07:00
26a56414c5 Do not include etcpack & rgetc in the build. 2020-07-07 09:56:04 -07:00
8baac9b111 Fix mac build error. 2020-07-06 13:28:18 -07:00
2bd1ed1ba7 Use AVX2 by default. 2020-07-06 11:13:05 -07:00
8fb22e951e Fix error reported by #312. 2020-07-06 11:04:47 -07:00
ea53e0b1ee Update vs2017 project files. 2020-07-06 10:33:17 -07:00
721cc85da7 Remove old projects. 2020-07-06 10:31:30 -07:00
446e4b4611 Remove unused dependencies. 2020-07-06 10:08:14 -07:00
0be40976a2 Remove unused external dependencies. 2020-07-06 10:07:14 -07:00
bf4799c9ac Fix build errors. 2020-07-06 10:00:04 -07:00
bfd1a38a86 Updates for new icbc interface. 2020-07-05 23:09:46 -07:00
ba3dbe32df KTX output fixes. 2020-07-05 23:09:29 -07:00
7aebf0c251 ETC compression experiments. 2020-07-05 23:08:57 -07:00
c87706f2a4 Remove unused files. 2020-07-05 23:08:22 -07:00
e5b93bbfe8 Upgrade icbc 2020-07-05 23:07:21 -07:00
d09dd24ce9 Remove unused files. 2020-07-05 23:06:48 -07:00
7894e9e6f8 Upgrade rgbcx. 2020-07-05 23:05:50 -07:00
07d9ab7860 Add goofy_tc. 2020-07-05 23:05:17 -07:00
4ff7af50ca Upgrade CMP Core. 2020-07-05 23:05:07 -07:00
1e06539012 Create FUNDING.yml 2020-06-12 23:01:14 -07:00
fdfbfb2552 Update to latest icbc version. 2020-06-07 20:02:14 -07:00
0f98a936f8 Fix rgbe conversion routines thanks to Charles Bloom. http://cbloomrants.blogspot.com/2020/06/widespread-error-in-radiance-hdr-rgbe.html 2020-06-07 19:46:35 -07:00
3e034d2de1 Merge pull request #314 from r-a-sattarov/master
Added compiler check for support of C++11 standard
2020-04-26 09:39:57 -07:00
0297a00ebc Added compiler check for support of C ++ 11 standard 2020-04-26 15:23:47 +03:00
8e64503338 Update vc projects.
Disable RGETC for now.
2020-04-13 18:44:57 -07:00
a671567596 Update nvtt to use icbc library. 2020-04-13 18:01:33 -07:00
daff42781d Work toward packaging dxt1 compressor as a single header library. 2020-04-05 12:22:25 -07:00
1a6e70c9a0 Cleanup. Assume static linking. 2020-04-05 12:20:35 -07:00
860b639492 Remove unused code. 2020-04-04 10:40:58 -07:00
52e065d66a Update benchmark with rgbcx. 2020-04-04 10:21:00 -07:00
0b15c58692 Fix more build errors. 2020-04-04 10:18:58 -07:00
504ecc8e10 Fix build errors. 2020-04-04 10:17:01 -07:00
f68d894b8b Tweak endpoint refinement. 2020-03-30 16:35:17 -07:00
5eac5a4859 Experiment with endpoint refinement. Add Rich's encoder, not functional yet. 2020-03-30 10:13:59 -07:00
ca3871a28c More cleanups! 2020-03-30 10:12:29 -07:00
adce1a00da More cleanups. Assume static linking. 2020-03-30 10:09:31 -07:00
7f9c87713a Minor cleanups in nvmath. 2020-03-30 10:07:15 -07:00
4f0ecc4506 Add defer helper. 2020-03-30 10:06:10 -07:00
e5740ccb32 Add Rich's improved tie breaking change. 2020-03-30 10:04:35 -07:00
9a16bebf8f Add external libs for comparisons and benchmarks. 2020-03-23 10:07:38 -07:00
4a33d1ac75 Add baboon image to waterloo image set. 2020-03-23 10:05:31 -07:00
9009962054 Minor cleanups and some experiments. 2020-03-23 10:03:19 -07:00
97723db794 Rename internal squish library to nvsquish to avoid conflicts. 2020-03-23 10:02:07 -07:00
4d47c0d2fc Comment out debug code. 2020-03-23 10:01:12 -07:00
5d7a761d6b Handle more DDS formats in Surface::load(). 2020-03-23 10:00:40 -07:00
a3ae50b50f Update stb_image. 2020-03-23 09:59:44 -07:00
6dd3687be1 Minor cleanup. 2020-03-23 09:58:56 -07:00
3a99af11d7 Fix initialization of PVR texture header. 2020-03-23 09:58:19 -07:00
e5b763b075 Minor fixes. 2020-03-23 09:54:09 -07:00
c8a6e2c6cc Update SDK version. 2020-03-23 09:50:11 -07:00
9e36d6747b Update stb libraries. 2020-03-23 09:49:15 -07:00
831d8e1a91 Fix build on AArch64. Fixes #298. 2020-03-16 21:08:18 +01:00
99bcaf719c Use isnan() instead of isnanf() on linux
isnanf() is deprecated since C99
2020-02-20 11:05:44 +01:00
6474f25934 Don't include sys/sysctl.h on Linux.
Not only is sysctl() not used on this platform, but musl libc does not have the header.
2020-02-20 10:10:17 +01:00
b45560cfc4 Merge pull request #292 from leper/clang_linking
Fix linking with Clang and clean up some linking directive
2019-11-23 16:10:19 -08:00
d14b4df347 Merge pull request #304 from r-a-sattarov/master
Added support for MCST Elbrus 2000 (e2k) architecture
2019-11-23 16:03:39 -08:00
c621de8d2b E2K: added initial support for MCST Elbrus 2000 2019-11-23 16:40:53 +03:00
b764700527 poshlib: added support for MCST Elbrus 2000 (e2k) 2019-11-23 16:22:56 +03:00
a131e4c6b0 Merge pull request #301 from Starnick/master
Updated C-API to expose some functionality present in the C++ API
2019-09-08 17:25:30 -07:00
187fa60492 Updated C-API to expose some functionality present in the C++ API. Added the following functions and enums:
nvttSetOutputOptionsContainer [and NvttContainer, KTX/DDS10 formats can now be set as the output container]
nvttSetOutputOptionsSrgbFlag
nvttSetOutputOptionsErrorHandler [rearranged NvttError enum to match layout of nvtt::error]
nvttEnableCudaAcceleration
nvttIsCudaAccelerationEnabled
2019-09-06 17:54:40 -04:00
e872fc2850 Merge pull request #300 from edowson/master
Enable CUDA support.
2019-08-30 10:08:13 -07:00
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
662d223626 Merge pull request #295 from mitko0003/master
Minor fix to ATOC normalization.
2019-02-15 08:31:45 -08:00
d891d044e7 Minor fix to ATOC normalization. 2019-02-15 15:06:29 +02:00
84595a62f2 Add helper methods for jai bindings. 2019-02-07 15:39:32 -08:00
29493d365e Add Visual Studio 2017 projects. 2019-01-31 18:10:14 -08:00
c591c5f8b4 Compute spherical harmonics from cube maps. Work in progress. 2019-01-31 18:06:02 -08:00
2ac75fc932 Remove duplicate link instruction. 2019-01-09 00:55:49 +01:00
542711f862 Link with -fPIC when using Clang.
Remove the need for a few workarounds by handling this in just one place.
2019-01-09 00:55:19 +01:00
7c68e09d77 Fix ATOC overflow error on large textures. Merge fix from The Witness. 2018-10-29 12:52:00 -07:00
a9a6f6968e Fix minor warnings.
Add output directories to ignore list.
2018-10-29 12:37:16 -07:00
8a076c8e8d Merge pull request #289 from Starnick/master
Updated C-API
2018-10-27 10:51:11 -07:00
40f395ef19 spaces->tabs consistency 2018-10-18 20:34:07 -04:00
0f65d60602 Updated C-API to support 2D array textures + added missing enum values from nvtt.h 2018-10-18 20:29:57 -04:00
d2b514a3c1 Comment out hack. 2018-10-10 16:30:25 -07:00
a1c54bc7f7 Add fast sRGB conversion. 2018-10-10 14:04:13 -07:00
bc60e8c154 Use our own parallel for by default to avoid dependencies. 2018-10-09 18:11:21 -07:00
1722b00802 FloatImage does not need a virtual dtor. 2018-10-09 18:10:25 -07:00
95f1f60490 Enable stb libraries for image loading. This was disabled by error. 2018-10-09 18:01:15 -07:00
5c70ffef0b Merge pull request #287 from madscientist159/master
Fix build on OpenPOWER (ppc64le) platforms
2018-08-19 14:04:22 -07:00
005b2518c9 Install nvtt_wrapper.h. Fix issue #288. 2018-08-19 14:02:34 -07:00
95454e9024 Fix build on OpenPOWER (ppc64le) platforms 2018-08-15 21:53:49 -05:00
95bd6193cc Fix bug 281. 2018-05-29 23:28:08 -07:00
6ea078f196 Merge pull request #280 from MonoGame/ignore
Added gitignore to hide stuff that shouldn't be checked in.
2018-02-24 12:04:38 -08:00
e52a2f1a02 Merge pull request #279 from MonoGame/vc12
Fixed some missing files in the vc12 project.
2018-02-24 12:03:51 -08:00
6cb1821bf1 Added gitignore to hide stuff that shouldn't be checked in. 2018-02-23 19:59:21 -06:00
1a78eae8f6 Fixed some missing files in the vc12 project. 2018-02-23 19:56:37 -06:00
2c276f64d7 Merge pull request #276 from StefanBruens/fix_memalign_linux
Fix compilation on Linux - missing include, semicolon
2018-02-06 16:32:27 -08:00
ff3bd55892 Fix compilation on Linux - missing include, semicolon
According to http://man7.org/linux/man-pages/man3/memalign.3.html ,
memalign() is defined in malloc.h.
Also, the line should be terminated with a semicolon.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
2018-02-06 08:38:37 +01:00
9489aed825 Merge changes from The Witness. 2018-02-05 18:55:07 -08:00
2075d740c9 Merge pull request #274 from StefanBruens/fix_build_errors
Fix some build errors
2018-02-05 18:30:58 -08:00
00d7e249e2 Add nvimgdiff to TOOLS target, so it is installed by default
Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
2018-02-02 19:46:58 +01:00
389f7582e5 Fix linking of bc7, needs symbols from nvmath
If nvtt is build with -Wl,--as-needed, the linker will not resolve bc7
symbols from any library listed earlier, make sure it (also) appears
after libbc7.a
2018-02-02 19:46:54 +01:00
7b4b7bb42e Build intermediate EtcLib always as STATIC
Depending on the BUILD_SHARED_LIBS variable EtcLib may be built as SHARED
if not set explicitly, like done for the other libraries in extern.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
2018-02-02 19:45:18 +01:00
8e8b3b82e1 Merge pull request #273 from wsmind/master
Fix .hdr images being loaded as LDR before compression
2018-01-28 12:06:21 -08:00
b03d5178fc Fix .hdr images being loaded as LDR before compression 2018-01-28 20:18:13 +01:00
befe79d103 Merge changes from thekla-atlas. 2017-12-15 11:39:21 -08:00
182a326e1c Merge pull request #271 from Chainsawkitten/patch-1
Update file paths in readme
2017-11-15 16:45:18 -08:00
133b84d536 Update file paths in readme
There is no src/nvimage/nvtt folder.
2017-11-08 22:49:11 +01:00
6816128f80 Add dataset from lightmap compression article. 2017-09-28 22:32:59 -07:00
e442d6d390 Remove incorrect assert. Fixes issue #261. 2017-09-04 12:34:00 -07:00
ed735ac2cb Fix alpha coverage subsampling. Fixes issue #266. 2017-09-04 12:25:22 -07:00
5f6424778e Update changelog 2017-08-23 11:05:30 -07:00
132cf14623 Bump version number 2017-08-23 11:02:09 -07:00
8d333f2a4f Merge pull request #264 from justinmeiners/master
added noalpha option to assemble and fixed RGB write
2017-06-28 15:06:12 -07:00
d47de35893 added noalpha option to assemble and fixed RGB write 2017-06-28 15:53:50 -06:00
4fb0070b7e Do not use undeclared format. 2017-06-28 11:26:18 -07:00
fa03dfc291 Add option to control prefered swizzle. 2017-06-28 11:19:47 -07:00
923b57db45 Merge pull request #255 from AMDmi3/patch-3
Use libexecinfo on FreeBSD as well
2017-06-06 17:58:17 -07:00
ef30f69c9d Merge pull request #256 from AMDmi3/patch-4
Use HW_NCPU on FreeBSD as well
2017-06-06 17:57:50 -07:00
7849ee9e71 Merge pull request #260 from leper/master
Add virtual destructor to TaskDispatcher.
2017-06-06 17:57:01 -07:00
0608489ec4 Merge pull request #262 from kencooke/master
Fast implementations of toLinear() and toGamma() for default gamma=2.2
2017-06-06 17:56:24 -07:00
01597842fe Update CMakeLists.txt and vc8/9/10 projects 2017-06-04 11:10:15 -07:00
96b73af196 Fast implementations of toLinear() and toGamma() for default gamma=2.2 2017-06-01 13:44:28 -07:00
78054e977b Add virtual destructor to TaskDispatcher.
This removes a GCC warning about that missing while virtual functions exist.
2017-05-04 03:22:19 +02:00
a64cc24169 Use HW_NCPU on FreeBSD as well 2017-02-16 18:21:39 +04:00
6b24b1f45c Use libexecinfo on FreeBSD as well 2017-02-16 18:20:07 +04:00
e85d851cd9 Do not compile etcpack. Only used for reference. 2017-02-15 11:12:27 -08:00
91fe4d37d6 Enable c++1x the official way. 2017-02-15 11:11:44 -08:00
1762334a9f Fix buildpkg for osx. 2017-02-15 11:10:43 -08:00
d7612a3b67 Add some external dependencies. 2017-02-08 11:42:25 -08:00
1004d5d5b5 Merge pull request #252 from lunkhound/fix-normal-maps
fix a bug where created normal maps were not packed prior to compression
2016-12-26 23:19:17 -08:00
0535ab3414 fix a bug where created normal maps were not packed prior to compression 2016-12-26 12:34:06 -08:00
cec8e7159a Merge pull request #247 from Lectem/patch-2
Fix compression for non multiple of 4 texture size
2016-10-19 12:18:36 -07:00
24e63456c6 Fix compression for non multiple of 4 texture size
If the width or the height was not a multiple of 4, we would read data outside of the bitmap array
2016-10-19 17:47:00 +02:00
6fb57d3478 Fix order of kaiser parameters. 2016-10-05 11:14:11 -07:00
fa6ebda53f Cleanups for 2.1.0 release. 2016-09-19 12:53:33 -07:00
383331bb42 Fix issue #240. 2016-09-19 11:29:40 -07:00
1a75484520 Minor fixes. 2016-09-19 11:20:25 -07:00
a11a6739c2 Fix comments. Minor fixes. 2016-09-19 11:12:19 -07:00
94e0ba9ec7 Merge pull request #245 from Lectem/patch-1
Fix build on VC2015 (missing typedefs)
2016-09-19 10:57:25 -07:00
1770ad7280 Fix build on VC2015
On VC2015 the project wouldn't build because of the missing typedefs.
This was tested on both 2013 and 2015.
2016-09-19 10:28:03 +02:00
d41c7ac33a Merge pull request #243 from fshp/master
Fix CMakeLists after rename license and readme files
2016-09-14 11:37:41 -07:00
396b6153af Fix CMakeLists after rename license and readme files
Additions to 831ebec475
2016-09-14 13:18:36 +03:00
831ebec475 Update readme files. 2016-08-16 12:43:17 -07:00
b0afc82d7d Minor osx fixes.
Remove FindCUDA and use cmake version instead.
2016-08-16 12:31:31 -07:00
8659d3fb4a Merge pull request #241 from krytarowski/netbsd-1
Add basic NetBSD support
2016-07-30 09:01:25 -07:00
3c4ccd41fa Add basic NetBSD support 2016-07-30 11:49:33 +02:00
475c66d2cc Merge pull request #239 from madscientist159/master
Fix remaining issues on PPC64EL
2016-07-12 00:57:05 -07:00
f8790a536a Fix remaining issues on PPC64EL
One AltiVec-related build issue remained
Self tests now pass on LE POWER platforms

Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
2016-07-12 06:04:04 +00:00
b549e862b0 Merge pull request #238 from madscientist159/master
Fix PPC64LE builds
2016-06-29 17:04:44 -07:00
203eda1d47 Fix build on PPC64LE
Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
2016-06-26 20:09:39 -05:00
47b06d3255 Fix build failure due to PPM save incorrect data types
Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
2016-06-26 20:02:28 -05:00
e965a668a3 Merge pull request #237 from sanderd17/patch-1
Fix compilation on GCC 6
2016-06-20 12:36:57 -07:00
65b3dfa4a6 Fix compilation on GCC 6
GCC 6 apparently doesn't want to cast booleans to pointers anymore. So this fixes it for us. See also our changeset: http://trac.wildfiregames.com/changeset/18364
2016-06-12 15:09:19 +02:00
875a78a124 Merge pull request #236 from mpersano/master
Add support for compressing texture arrays.
2016-02-29 12:50:39 -08:00
46e5c6a8ee Fix nvassemble command-line options parsing. 2016-02-28 08:17:35 -03:00
2bd367a4dc Add support for compressing texture arrays.
Also add support for reading/writing DX10 uncompressed (RGB/lumi) textures, so
now it's possible to compress a texture array assembled with nvcompress.
2016-02-28 08:05:59 -03:00
49677da371 Remove executable property. 2016-02-22 11:54:43 -08:00
3850b22f7f Merge pull request #235 from mpersano/master
Support assembling texture arrays.
2016-02-11 15:21:54 -08:00
db8fc561c3 Support assembling texture arrays. 2016-02-11 18:43:01 -02:00
9b79638f79 Disable test code from nvdecompress. Update vc12 projects and fix vc12 build. Fixes bug #232. 2015-12-11 12:15:22 -08:00
7596650a2d Be more clear that Qt4 is not used. From cfcohen. 2015-12-05 15:23:00 -08:00
308050923b Integrate changes from cfcohen. 2015-12-05 15:19:59 -08:00
9d6c7d6a69 Integrate more changes from cfcohen. 2015-12-05 15:16:14 -08:00
a20044bccc Integrate changes from cfcohen to supress warning. 2015-12-05 15:09:57 -08:00
268e6abd65 Integrate cfcohen changes to fix linker problems with gcc. 2015-12-05 15:06:37 -08:00
87ca69bd14 Do not output messages for disabled libraries. 2015-12-05 14:58:05 -08:00
63d29a508e Fix compiler warning. 2015-12-05 14:56:36 -08:00
e9a8630a3f Increase array size to supress compiler warning. 2015-12-05 14:50:52 -08:00
c0ad0f4d31 Merge changes from The Witness. 2015-10-28 23:53:08 -07:00
a382ea5b21 Fix compiler warning. 2015-09-02 12:25:47 -07:00
26723de502 Fix memory leak reported by Sylvain Rochette in issue #229. 2015-08-21 21:53:16 -07:00
58617584d4 Apply patch provided in issue #224. Add support for ARM64. 2015-07-20 23:47:01 +02:00
4ef408b591 Remove debug code. 2015-07-20 14:32:16 +02:00
592c8b8b0a Merge pull request #225 from Skylark13/master
Fix compilation on VS2013 (non-CUDA)
2015-07-20 13:15:55 +02:00
b254961b22 - Removed Library.cpp and Library.h from nvcore VS2013 project
- Also added project references to nvtt in nvdecompress and nvimgdiff projects, lack of which prevented them from compiling
- Change to nvtt.sln is an auto-modification from VS, pretty sure it makes no difference
2015-07-19 14:08:01 -04:00
d32f0e0173 Merge pull request #223 from cmdrf/no-include-library-h
Do not include Library.h
2015-06-12 10:27:02 -07:00
701f8224dc Merge pull request #222 from cmdrf/gccforeach
Update NV_FOREACH for C++11
2015-06-12 10:26:25 -07:00
7b031aa4bf Do not include removed Library.h 2015-06-12 14:00:37 +02:00
d01d72f8e7 Update NV_FOREACH for C++11 2015-06-12 12:38:44 +02:00
0d205015ae Merge pull request #221 from cmdrf/snprintf-vs2015
Do not redefine snprintf on VS2015
2015-06-10 10:51:07 -07:00
7aa0390f32 Merge pull request #220 from cmdrf/cmakecuda
Fix CMake CUDA introspection
2015-06-10 10:49:35 -07:00
68e6cbdd40 Merge pull request #219 from cmdrf/gcclinkorder
Fix Link Order for GCC in CMake
2015-06-10 10:48:46 -07:00
fa062aa298 Do not redefine snprintf on VS2015 2015-06-10 18:46:26 +02:00
205f492e2e Fix CMake CUDA introspection 2015-06-10 18:14:12 +02:00
899a99a106 Fix link order for Linux 2015-06-10 17:59:57 +02:00
766edcb1a6 Fix more link order for Linux 2015-06-10 17:59:56 +02:00
b37ca4498d Merge pull request #217 from pzychotic/master
Fixed compiler flag being set on wrong target.
2015-04-21 15:49:59 -07:00
9ad63e7f3a Fixed compiler flag being set on wrong target. 2015-04-21 22:18:25 +02:00
81336cc3e9 Remove unnecessary files. 2015-03-25 12:36:16 -07:00
e9d44813d2 Merge pull request #216 from esok/master
Added support for gcc and c++11 features.
2015-03-24 17:08:37 -07:00
d4fbfd0ff4 Add project notes. 2015-03-24 12:32:27 -07:00
4c7ff58885 Update vc12 projects 2015-03-24 12:31:22 -07:00
a083337473 Merge changes from The Witness. 2015-03-24 12:14:49 -07:00
6bc3224fe7 Added support for gcc and c++11 features. 2015-03-23 22:05:33 -04:00
7e2a9d1adb osx fixes. Fix issue 211. 2014-12-02 20:23:21 +00:00
2d6fc0e304 DXT1 compressor tweaks. 2014-12-02 05:43:13 +00:00
d019cd7080 Merge changes from the witness. 2014-11-04 17:49:29 +00:00
4cb60cc5ba Fix vc12 build. 2014-09-23 17:49:18 +00:00
9722101114 Cleanup vc12 project. 2014-09-23 17:44:36 +00:00
3f0bffaadf Add vc12 solution. 2014-09-23 17:39:36 +00:00
6e69560969 Tag dll and binaries with 32/64 suffix. 2014-07-01 18:10:28 +00:00
8f4ebf1d93 Remove missing project. 2014-07-01 17:27:46 +00:00
132443013a Minor updates to C# bindings. Work in progress. 2014-06-11 21:31:47 +00:00
ac87eefa6d Apply patch to update C# wraper. Fixes issue 184. 2014-06-11 21:02:04 +00:00
f705b2eaa1 Fixes issue 93. 2014-06-11 19:46:17 +00:00
6ade0e27b7 Fixes issue 202. 2014-05-21 18:09:47 +00:00
7e74261f92 Fixes issue 204. 2014-05-21 17:47:06 +00:00
57298c71c8 Fix issue 194. 2014-05-21 17:23:05 +00:00
b06a6f46a5 Fixes issue 207. 2014-04-18 16:25:24 +00:00
63d6036e3a Fix issue 206. 2014-04-03 22:10:12 +00:00
ab316deeaa Add BC7 support. It's incredibly slow - ~60 seconds to compress a 512x512 image, on a Core i7 - but it works.
- Added AVPCL compressor to projects and got it building with VC9 and VC10.
- Removed unused command line interface & file read/write code from AVPCL.
- Convert AVPCL to use NV vector math lib, asserts, etc.
- Convert AVPCL to use double instead of float.
- Added 4x4 symmetric eigensolver, for AVPCL; it's based on the existing 3x3 one, but I had to rewrite the Householder reduction stage.  As with ZOH, using the eigensolver (instead of SVD) gives a ~25% speedup without significantly affecting RMSE.
- Encapsulate ZOH and AVPCL stuff into their own namespaces to keep everything separate.
- Added some missing vector operators to the nvmath lib.
2013-12-07 02:17:08 +00:00
f2fa0517b5 Ported over James Arvo's SVD code from ZOH. It's a good deal slower than the eigensolver, and no better in RMSE - so didn't use it, but left the code in place for future reference.
Also replaced doubles with floats in the eigensolver code.  Speeds up BC6 another 5%.  No change to RMSE in test suite.
2013-12-05 02:13:17 +00:00
474239c784 Add BC6 support to nvtt lib and utils.
- Use 3x3 eigensolver for initial fit in ZOH.  Slightly better perf and RMSE than power method.
- Remove use of double precision in ZOH - speeds up by 12%.
- Fixed RGBM encoding that was broken for HDR images.
- Use gamma-2.0 space for RGBM for HDR images (improves precision in darks).
- Use UNORM instead of TYPELESS formats when saving a DX10 .dds file.  The TYPELESS formats break most viewers.
- Cleaned up warnings in ZOH code.
- Command-line utils will warn if you give them an unrecognized parameter.
- Added VS2010 profiling results.
2013-10-25 17:30:55 +00:00
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
57b99a1595 Apply CubeSurface fold/unfold patch. Fixes issue 199. 2013-09-04 01:10:52 +00:00
b2b367ef5f Fix xyzToCieLab bug and add CIE Lab DeltaE 1994 color differencing.
Fixes issue 197.
Fixes issue 198.
2013-09-04 01:08:39 +00:00
022944e49b Apply patch to fix issue 192. 2013-07-20 00:08:06 +00:00
27024253ce Handle 3d textures in nvcompress. 2013-07-09 17:16:41 +00:00
22bc0b949d Fix assert. Fixes issue 190. 2013-06-25 17:03:08 +00:00
ac0759efc8 Update cmake file. Fixes issue 189. 2013-06-12 05:57:08 +00:00
94d0635285 Merge changes from the Witness. 2013-06-07 17:53:55 +00:00
634229a842 Fix issue 182. 2013-02-05 18:38:39 +00:00
eb5556548d Fix issue 186. Confirmed it works on gcc and clang. 2013-02-05 18:35:38 +00:00
14faa8e564 Fix linux/osx compiler errors. Fixes issue 168. 2013-02-05 07:35:15 +00:00
2f12bfdb41 Fix issue 158. 2013-02-05 07:17:25 +00:00
358bd0296e Fix issue 181. 2013-02-01 23:19:58 +00:00
aa6cd0d2e5 Fix alpha detection code. Fixes issue 183. Thanks rocatis! 2013-01-29 20:37:15 +00:00
83bdcb541c OpenBSD fixes. Fixes issue 176. 2012-09-11 16:41:02 +00:00
1d8d067caf Fix build under OSX with clang. Fixes issue 180. 2012-09-11 16:22:09 +00:00
15f5e19d40 Add missing semicolon. Fixes issue 179. 2012-09-05 04:06:37 +00:00
63897b3ecc Integrate 3D texture fixes from Ben Goldstein @ Nihilistic. 2012-08-28 17:22:37 +00:00
ac3f2d1794 Misc changes. 2012-08-28 16:44:23 +00:00
bff3dab505 Fix errors. 2012-07-20 16:36:20 +00:00
04bdc76749 Merge changes from The Witness. 2012-07-20 16:32:26 +00:00
3b4fcd0369 Merge changes from The Witness. 2012-07-20 16:19:03 +00:00
fea97461c5 Merge changes from The Witness. 2012-07-20 16:17:28 +00:00
897cc78397 Port fix from 2.0 to trunk. Problem discovered thanks to Jern-Kuan. 2012-07-20 16:10:25 +00:00
0eb7c3eb71 Integrate skylight model. Work in progress. 2012-05-22 18:47:38 +00:00
20c5078e93 Fix tabs. 2012-05-03 17:12:49 +00:00
c784e03be5 Try to increase robustness of thread pool. 2012-05-03 17:04:53 +00:00
803301ea89 Add luma test. 2012-04-30 23:04:05 +00:00
fa4ba97f6d Merge changes from the witness.
Fix parallel cluster fit compressor.
Luma compression experiment.
2012-04-30 23:03:44 +00:00
b130487c2a Merge changes from the witness. 2012-04-30 23:03:00 +00:00
8ff802dac1 Merge changes from the witness. 2012-04-30 23:02:46 +00:00
69e8641db5 Merge changes from the witness. 2012-04-30 23:02:23 +00:00
d5a3c1d3a7 Minor cleanups to testsuite output. 2012-03-09 07:44:13 +00:00
79360e6501 Fix msvc build. 2012-03-09 07:08:16 +00:00
547c59e52f Update project file. 2012-03-09 07:07:50 +00:00
5473a89132 Updated vc10 projects thanks to Jern-Kuan Leong @ nvidia. 2012-03-09 06:47:51 +00:00
dca493b6c4 clang/osx lion fix. 2012-03-01 03:50:38 +00:00
b6b47ff254 Fix pedantic warning. 2012-03-01 03:50:07 +00:00
095737d863 Linux build fix from Matthaus. 2012-03-01 03:48:34 +00:00
9609d1e2fd Darwin/Lion fixes.
Integrate Linux and Unicode fixes from Matthaus.
2012-03-01 03:48:05 +00:00
d36f68fd66 Update vc10 projects. 2012-02-23 07:41:43 +00:00
d252888850 Add vc10 project. 2012-02-21 23:55:25 +00:00
21af952fec osx fixes. Update cmake files. 2012-02-14 18:00:47 +00:00
778bdec4ba Update project files. 2012-02-14 16:45:55 +00:00
f1c943cd57 Merge changes from The Witness. 2012-02-14 16:37:15 +00:00
1248743859 Merge changes from The Witness. 2012-02-14 16:35:42 +00:00
fa468b04ab Merge changes from The Witness. 2012-02-14 16:31:25 +00:00
06c170b41b Merge changes from The Witness. 2012-02-14 16:16:27 +00:00
cb6c18efa4 Add info about Valve's texture format. 2012-02-14 16:15:20 +00:00
d44a65c7b7 Fix unicode builds. 2012-02-03 16:23:52 +00:00
d08c9e61e3 Fix merge error. 2012-02-02 16:21:48 +00:00
8922ab86d6 Fix msvc build. Fixes issue 171.
Improve sse perf.
Fix rmse computation in nvimgdiff.
2012-01-12 16:54:10 +00:00
6d843c78cf HDR encoding tests. 2012-01-04 02:25:28 +00:00
e46f48f0a3 Better stack trace parser for OSX. 2012-01-04 02:24:30 +00:00
f2d90ee844 Fix errors in new cluster fit compressor. 2012-01-02 08:49:13 +00:00
23bfc1b514 Fix errors and enable new cluster fit compressor. 2012-01-01 21:29:27 +00:00
035997bc2e Fix cube map processing bug reported by Cedric Perthuis. 2011-12-12 18:05:04 +00:00
086bf0343c Minor opt. 2011-11-11 02:19:28 +00:00
97f17dc6d8 Update posh. 2011-11-11 02:19:07 +00:00
50a5d5967b Update project. 2011-11-11 02:17:52 +00:00
78d48e62a9 Merge changes from The Witness. 2011-11-11 02:02:58 +00:00
2e9afac689 Add tone mapping operators. 2011-11-11 00:48:22 +00:00
fa0800a24a Some bug fixes. 2011-10-12 00:01:58 +00:00
0b3959e1a1 Linux fixes. Thanks to Rico Tzschichholz. 2011-10-11 22:22:29 +00:00
e98d795d2b More header optimizations. 2011-10-11 18:52:24 +00:00
d11d7a5f38 seamless cubemap filtering. 2011-10-11 06:40:40 +00:00
2ec37026be Merge changes from the witness. 2011-10-10 20:24:12 +00:00
94401919b8 Add some inline files to reduce amount of code parsed. 2011-10-10 19:35:21 +00:00
cbf4b2e3bf Some debugging. 2011-10-04 06:10:34 +00:00
d8aec20022 Add cubemap tests. 2011-10-04 06:06:38 +00:00
e462e3ef58 build nvthread properly 2011-10-04 06:09:50 +00:00
9e7651e2d5 Work in progress. 2011-10-04 01:33:31 +00:00
78fa1e785d Fixes and optimizations. 2011-10-01 02:07:32 +00:00
149a50a26f Filtering optimizations. 2011-09-30 17:21:08 +00:00
18b3f8025e Add test. 2011-09-30 16:36:35 +00:00
eb10483faf Fix bugs. In progress cube map loading. 2011-09-30 01:52:27 +00:00
dc13d9e9d2 Add support for float10 and float11 formats. Not tested. 2011-09-29 23:14:18 +00:00
676a0b2908 work in progress. 2011-09-29 00:58:47 +00:00
9de43e7757 Fix build errors/warnings. 2011-09-28 22:02:46 +00:00
f0d9497e1f Add missing changes. 2011-09-28 19:54:05 +00:00
d87b7edd5f RGBE conversion fixes. 2011-09-28 19:53:02 +00:00
e15aa7a9bf Remove RGBE compressor. Implement as a color transform. 2011-09-28 18:44:18 +00:00
2e96567459 Fix project. 2011-09-28 16:49:31 +00:00
8e586ca693 Rename files. 2011-09-28 16:46:01 +00:00
03c3fa42a8 Cosine power filter. A bit of renaming. 2011-09-28 16:40:59 +00:00
dbdf9b6398 Update project. 2011-09-28 01:48:33 +00:00
fcd296cd81 Merge changes from the witness. 2011-09-28 01:45:08 +00:00
95811dfdff Cleanups. 2011-09-27 23:05:46 +00:00
91e6bbe5c3 Add convolution method to TexImage. Fixes issue 166. 2011-09-27 18:41:02 +00:00
8c65e4c62d Do not depend on external int limits. 2011-09-27 18:25:39 +00:00
2364f539eb Porting parallel stuff to unix. 2011-09-27 18:12:32 +00:00
5081360073 Add missing file. 2011-09-27 17:51:13 +00:00
3c0ab2d3f3 Merge changes from the witness. 2011-09-27 17:48:46 +00:00
9c0658edca Fixes. 2011-09-27 17:29:50 +00:00
86b43e55c1 cubemap support, work in progress. 2011-09-27 17:28:01 +00:00
0b05255f90 Add missing files to project. 2011-09-27 16:37:53 +00:00
17e01ed240 Fix errors, warnings. 2011-09-27 16:37:41 +00:00
af9ba8ae90 Add support for 3D texture. Integrate patch provided in issue 28 plus some additional changes. 2011-09-27 05:17:01 +00:00
4906642ac3 Revert Library.*, needed for CUDA stuff. 2011-09-26 05:33:53 +00:00
b68d428492 Accumulate filter sums using doubles to avoid unsymmetries. Fixes issue 167. 2011-09-14 17:51:09 +00:00
02709e1699 Set DDPF_FOURCC flag when using DX10 container. Fixes issue 165. 2011-09-13 19:20:51 +00:00
fe108af32e Pitch is specified in bytes and always byte aligned. Fixes issue 168. 2011-09-13 17:08:09 +00:00
8b096b4186 Remove unused code. 2011-09-01 22:16:37 +00:00
5d19ff392a Some pitch alignment fixes. Fixes issue 168. 2011-08-26 12:11:38 +00:00
2952480d30 Fix tabs. Fix leak. 2011-06-20 19:09:29 +00:00
66d02325d8 Swap red and blue channels when using stb_image. Fixes issue 164. 2011-06-20 06:45:45 +00:00
69ff14a54c Apply changes suggested in issue 161. 2011-04-30 23:13:07 +00:00
71d53e0d4e Fix leak. 2011-04-22 00:04:29 +00:00
2643a62d4a Undo buffer class. Use plain array for easier debugging. 2011-04-07 07:41:58 +00:00
144a8d6d4b Fix errors in meta data api. 2011-04-06 06:42:22 +00:00
11d04287c9 Fix errors. 2011-04-06 06:42:10 +00:00
76a7adf83e Apply patch suggested in issue 161. 2011-04-06 06:41:57 +00:00
8a837981b6 Merge changes from The Witness. 2011-04-06 02:41:15 +00:00
9ebcff93de More tweaks. 2011-04-06 02:14:32 +00:00
ce8647c51d Tweaks. 2011-04-06 01:56:51 +00:00
43b16d85f4 Use STB image by default.
Add buffer object, try to reduce binary size.
2011-04-02 07:41:55 +00:00
ad7a618222 Start adding ktx file support. 2011-03-22 22:52:43 +00:00
765a0e394a Add more error estimation methods. 2011-03-06 22:23:24 +00:00
1aac4215ff Add stb image. 2011-03-06 22:00:09 +00:00
dfcf8ecf37 Unify project settings. 2011-03-01 03:03:00 +00:00
92d7ebded3 Add dual paraboloid transform. 2011-03-01 03:02:40 +00:00
9302ee2cb0 Add normal encoding test. 2011-02-28 09:49:47 +00:00
28592e73a8 Add normal transforms and reconstruction. 2011-02-28 09:05:28 +00:00
609db2639e Move foreach to its own header. 2011-02-28 09:05:03 +00:00
b74cd8ec97 Add target decoder compression option. 2011-02-28 08:27:24 +00:00
cd6f798b85 tabs to spaces 2011-02-28 08:19:38 +00:00
2338eeb4c0 Add bc6 project. 2011-02-25 09:52:15 +00:00
b72a69f25c Supress msvc warning.
Replace tabs with spaces.
2011-02-25 09:51:09 +00:00
71b88deb2a Add testsuite project. 2011-02-25 09:44:14 +00:00
0a290a64cc Add support for D3D9 and D3D10 decoders. Fixes issue 157. 2011-02-25 09:27:40 +00:00
94dce3b623 Fix vc warnings. 2011-02-25 09:26:27 +00:00
659b684bf2 Update vc9 projects. Hide output directories. 2011-02-25 09:25:46 +00:00
92db15b8d9 Do not compile old quantization code anymore. 2011-01-25 09:18:42 +00:00
12bf7f9346 Implement quantization. 2011-01-25 09:17:53 +00:00
95b5e1decd Cleanup clusterfit. 2011-01-19 07:27:04 +00:00
4f098c4ff9 Workaround GCC error. 2011-01-19 07:26:22 +00:00
4fc1952539 Fix tabs. 2011-01-19 07:25:49 +00:00
5324156cc4 Fix kernel offset. Fixes issue 158. 2011-01-19 07:12:22 +00:00
5f8cd22cdb Merge changes from the-witness. 2011-01-08 04:54:06 +00:00
993e853a5f Set OpenMP compiler flags. 2010-12-10 10:29:43 +00:00
a2f0e566c7 Use task dispatcher provided by user. 2010-12-10 10:29:04 +00:00
66c9729097 Enable openmp. 2010-12-10 02:15:12 +00:00
a607aadf32 Reenable openmp task dispatcher. 2010-12-10 02:14:56 +00:00
8d99f2c6c4 Add tbb code. 2010-12-09 20:57:41 +00:00
f4cf5dd32c Experiments with microsoft concurrency runtime. 2010-12-09 00:37:34 +00:00
f99761c813 Disable new experimental compressor. 2010-12-08 20:11:11 +00:00
34d2631502 Remove duplicate line. 2010-12-08 19:58:14 +00:00
3265c36e14 Reallocate float image data properly. Fixes issue 155. 2010-12-08 19:56:06 +00:00
3ee2c39be4 Generate mipmaps until both extents are 1. Fixes issue 156. 2010-12-08 19:53:59 +00:00
b2f59ea0d7 Fix memory overrun. 2010-12-06 19:28:44 +00:00
260097151d Link against pthreads library on systems that do not include it automatically. Fixes issue 149. 2010-11-30 20:30:11 +00:00
c21fa98ba5 Fix Linux build. 2010-11-26 08:47:48 +00:00
eea2fce447 Workaround powerpc processor detection. 2010-11-26 08:45:00 +00:00
96b757130d Fix build on powerpc/mac. 2010-11-26 07:20:23 +00:00
c51f25f38d concurrency experiments. 2010-11-22 07:34:05 +00:00
0bb3011f7f Add cluster fit implementation based on squish. 2010-11-12 03:35:28 +00:00
af5595c845 Add lightmap tests. 2010-11-12 03:33:47 +00:00
23b140416a Work in progress. Experiment with lightmap compression. 2010-11-12 03:32:46 +00:00
4cbf43165c Undo changes. 2010-11-11 19:53:45 +00:00
d6f6c1f1d4 Undo changes. 2010-11-11 19:52:00 +00:00
1484c667a0 Add missing files. 2010-11-11 19:13:01 +00:00
1f1afe0c33 Add SCIE-Lab error metric. Work in progress. 2010-11-11 19:10:14 +00:00
5cf219a22e Add perceptual color distance function. 2010-11-10 03:28:44 +00:00
26283c8c25 Minor fixes. 2010-11-09 19:34:45 +00:00
49482d1441 Work in progress.
Merging squish into nvtt. 
Using squish only to find endpoints, do discrete refinement afterwards.
2010-11-09 03:38:03 +00:00
c532ffb34e Add lightmap and normal maps. 2010-11-09 01:39:36 +00:00
86ee333c02 Reorganize testsuite files 2010-11-09 01:34:32 +00:00
199fc19277 Replace bmps with pngs. 2010-11-08 19:41:05 +00:00
1d4a2ea710 Testsuite outputs graphs using google api. 2010-11-08 19:03:20 +00:00
5f845513ee Fix msvc warnings and errors.
Test TexImage stuff more througly.
Test YCoCg and RGBM.
2010-11-06 02:34:34 +00:00
c1204bfb66 Fix errors in new implementation of InputOptions.
Output cube map faces in DDS order. Fixes issue 147.
2010-11-05 00:36:50 +00:00
5225f4810f Add stubs for quantization methods. 2010-11-03 18:53:51 +00:00
1e2567e4a3 More work toward 2.1: Implement InputOptions using TexImage. 2010-11-03 18:31:16 +00:00
8838b5220a user file does not appear to be portable. Deleting. 2010-11-03 06:59:22 +00:00
bdf60f16a4 Add qtcreator project file. 2010-11-03 06:50:14 +00:00
5d408c0aa4 Use uname -m to detect processor name. Fixes issue 140. 2010-11-03 06:33:04 +00:00
ea42b83573 Fix linux build errors. 2010-11-02 01:03:19 +00:00
5ae77ae037 Fix warnings. 2010-10-28 05:39:35 +00:00
1c588e3311 Fix some warnings. 2010-10-28 05:39:02 +00:00
4bbf62855c osx/iphone fixes. 2010-10-28 05:38:39 +00:00
188d5043d8 Use tabs. 2010-10-22 05:12:35 +00:00
09e46ead48 Fix some messages. Add support for range scaling in TexImage. 2010-10-22 00:28:46 +00:00
47df8ff7d6 Fix readBlock. Fixes issue 145. 2010-10-21 18:58:49 +00:00
a4356caefe Merge changes from The-Witness. 2010-10-21 18:48:04 +00:00
f0bcbdca5c Fix seek bug. Fixes issue 144. 2010-10-21 18:47:27 +00:00
bd74a9ffc6 Merge changes from the-witness. 2010-10-21 18:44:10 +00:00
5d498d6824 Fix cuda compressor. Start work on new UI. 2010-10-18 08:47:50 +00:00
5d80fb8219 Fix TGA loading using FreeImage. Fixes issue 141. 2010-10-13 17:49:16 +00:00
2bd7db4244 Fix error after changes in Memory.h 2010-10-09 07:45:48 +00:00
25507428c2 Prefer the GLEW static library. 2010-10-06 02:57:35 +00:00
df13c904b2 Stop using custom memory allocators.
Fix aliasing errors. Fixes issue 139 in trunk.
Fix build errors under OSX.
2010-10-06 02:56:35 +00:00
06bf4ea960 Fix typo, fixes issue 137. 2010-09-20 17:14:13 +00:00
765a89951d tabs -> spaces 2010-09-20 06:59:24 +00:00
19f872161e Use posh typedefs.
Enable stacktraces on OS X.
2010-09-20 06:58:20 +00:00
276c608f26 Fix alignment assumptions in DDS loading code. Fixes issue 132.
Merge misc changes from the-witness.
2010-09-07 18:24:50 +00:00
2c969b70a5 Fix mirror sampling in trunk. Fixes issue 135. 2010-09-07 18:08:53 +00:00
e8dc679874 Merge recent changes from the witness. 2010-08-31 01:39:08 +00:00
47e8f23e9f Merge fix for issue 134 into trunk. 2010-08-26 16:46:03 +00:00
83e249a1a0 Use INCLUDE_DIR instead of INCLUDE_PATH. Fixes issue 102. 2010-07-22 14:35:23 +00:00
9e881f28d1 Merge changes from the-witness.
Fix DXT5n compressor.
2010-07-22 10:25:14 +00:00
ac7c017c35 DXT1a single color compressor. Fixes issue 131.
Init single color tables at startup.
2010-07-22 09:23:17 +00:00
da548fd03a Use noinline. 2010-07-13 23:28:31 +00:00
9094756997 Merge changes from the witness. 2010-07-13 03:08:45 +00:00
30b9545d75 Add glew for real this time... 2010-07-01 00:55:39 +00:00
1db253b243 Add glew. 2010-07-01 00:50:31 +00:00
50d80e3b81 Add simple dds file viewer. 2010-07-01 00:26:37 +00:00
e5736fcf92 Add explicit load methods to DirectDrawSurface. 2010-07-01 00:25:44 +00:00
1e0dea0738 Fix build. Minor cleanups. 2010-06-24 07:45:39 +00:00
cfdc731634 Write BC6/BC7 headers in TexImage path. 2010-06-24 07:32:17 +00:00
528b93ab14 Replace tabs with spaces. 2010-06-24 07:17:36 +00:00
39c291e2a6 Fix build. 2010-06-24 07:10:34 +00:00
5c60989043 BC6/7 progress. Work in progress. 2010-06-21 22:23:28 +00:00
f2c581dec1 Remove unused methods. Add float color block. 2010-06-21 22:23:01 +00:00
f9753b649a Fix mingw warning. 2010-06-10 02:30:38 +00:00
11411bae2b Do not compile ui. 2010-06-10 02:30:25 +00:00
42a641f0a5 Fix errors when cuda is not enabled. 2010-06-10 02:30:01 +00:00
b19cd63558 Fix mingw error. 2010-06-10 02:29:04 +00:00
5bb6a54f61 Fix mingw errors/warnings. 2010-06-10 02:28:49 +00:00
82da6ea0a0 Do not enable CUDA under mingw. 2010-06-10 02:27:51 +00:00
7b65595fe2 Add mingw library for FreeImage. 2010-06-10 02:26:41 +00:00
357b91a9b2 Update FindCUDA. 2010-06-10 01:24:19 +00:00
322dcd72c1 Some bug fixes and more progress toward BC6-7 support. 2010-06-03 07:58:03 +00:00
68cbe543b0 Add missing files for previous change.
Some cleanup.
2010-06-03 07:07:37 +00:00
f08e2c4f64 Add alpha map processor. 2010-06-03 05:49:04 +00:00
e5ffd618f7 Replace tabs with spaces. 2010-06-03 00:32:49 +00:00
f233188963 Fix format. 2010-06-01 19:25:49 +00:00
c3bc24b165 Merge changes from 2.0. 2010-06-01 19:23:37 +00:00
caff2c9006 Fix assert when reading paletted TGA images. Fixes issue 125. 2010-06-01 17:51:57 +00:00
da503d2b3e Imperative api is sort of working now. Fixed various bugs. 2010-06-01 02:04:33 +00:00
adbb0c3338 Update vc9 project. 2010-06-01 02:04:09 +00:00
cf62ecc199 Upgrade freeimage. 2010-06-01 02:03:06 +00:00
4b08c20b0e More cleanup. 2010-05-31 08:13:23 +00:00
c8bf853ba4 More cleanup. 2010-05-31 07:41:01 +00:00
9ae9ec1975 Fix power method initial estimate as in squish. 2010-05-31 07:40:08 +00:00
8e074b2e28 Remove executable properties. Add cmake file. 2010-05-30 05:43:14 +00:00
757e372726 Integrate bc6 compressor into nvtt. 2010-05-30 05:40:29 +00:00
cf2b20dd43 Fix build error on OSX. 2010-05-29 05:33:28 +00:00
fd6b8449bf Add bc6 and bc7 compressors from nvidia. 2010-05-29 02:47:57 +00:00
035231a928 Minor changes. 2010-05-28 23:16:06 +00:00
1454cbac14 Fix build. 2010-05-28 07:45:11 +00:00
3956d8a0c2 Merge private changes. 2010-05-27 23:21:10 +00:00
18ad53aa24 Merge private changes. 2010-05-27 23:20:09 +00:00
c09067e477 Merge private branch. 2010-05-27 23:19:24 +00:00
51a4fe7e2d Merge private branch. 2010-05-27 23:18:39 +00:00
e7f2d1e2bc Merge private branch. 2010-05-27 23:18:08 +00:00
56401d5f7d fix polyphase filter 2010-05-27 19:28:49 +00:00
8cbd2c9ec6 Add mipmap scaling according to alphatest coverage. 2010-05-27 00:37:15 +00:00
77bfabca3b Remove experimental callback mechanism. 2010-05-20 05:25:50 +00:00
27f84c5caa Start work on a simple dds viewer. 2010-05-20 05:25:15 +00:00
a32d780347 Experiment with output callbacks instead of handlers. 2010-05-18 17:13:30 +00:00
d38b89edc7 fix comment. 2010-05-18 17:12:36 +00:00
0322f1b54a Add comment. 2010-05-18 17:12:01 +00:00
f6a39d6eab Remove duplicate code. 2010-05-14 04:58:08 +00:00
4fa93f8676 Update vc9 project. 2010-05-11 18:20:06 +00:00
639f11d0b9 Use the same defaults as nvtt 2.0 2010-05-11 17:18:08 +00:00
6e32d1e010 Update latest stb_dxt. 2010-05-09 08:21:34 +00:00
85db14f213 Add vertical flip. 2010-05-05 00:24:31 +00:00
ac5f849e91 Better estimation of principle component. Fixes issue 120. 2010-04-19 18:41:42 +00:00
4783d5621e Add missing files to cmake build as reported by amorilia. 2010-03-21 18:38:26 +00:00
85b9c2b0c5 Fix FindOpenEXR cmake script. Fixes issue 97. 2010-03-18 00:21:13 +00:00
447634d263 Fix cmake build in msvc. Fixes issue 111. 2010-03-18 00:13:31 +00:00
f436a71479 Add support for RGBE. 2010-03-17 07:55:03 +00:00
e848645e88 Add a few utils. Start converting tabs to spaces. 2010-03-17 07:54:07 +00:00
78b55e1e37 Finish pixel format converter. 2010-03-17 02:25:06 +00:00
3b0e0c3402 Fix errors after merge. Update cmake files. 2010-03-16 22:46:09 +00:00
a19e25228f reorg. 2010-03-16 22:37:25 +00:00
d8ed531e4c minor optimization. 2010-03-16 22:36:14 +00:00
73851ab86f misc 2010-03-16 22:35:38 +00:00
0cabfb6cfa misc. 2010-03-16 22:35:20 +00:00
1fafffd8af Detect OpenMP properly. 2010-03-16 22:31:27 +00:00
96f22f8cd4 Fix isColorNoAlpha, but leave it commented out. 2010-03-10 08:49:40 +00:00
558f7970b1 Fix issue 112. 2010-03-02 01:29:48 +00:00
d2fbcc5259 Add external libs. 2009-11-05 09:43:54 +00:00
0e5a1877a8 Some progress on the CUDA compressors. 2009-11-05 09:27:03 +00:00
8e436b1d30 Add post build commands to 64 bit targets. 2009-11-05 00:31:16 +00:00
652 changed files with 154427 additions and 54361 deletions

3
.github/FUNDING.yml vendored Normal file
View File

@ -0,0 +1,3 @@
# These are supported funding model platforms
github: castano

33
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: build
on: [push, pull_request]
jobs:
vs2017:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: microsoft/setup-msbuild@v1.0.0
- name: Build Debug/x64
run: msbuild .\project\vc2017\nvtt.sln /property:Configuration=Debug /property:Platform=x64
- name: Build Debug/Win32
run: msbuild .\project\vc2017\nvtt.sln /property:Configuration=Debug /property:Platform=Win32
- name: Build Release/x64
run: msbuild .\project\vc2017\nvtt.sln /property:Configuration=Release /property:Platform=x64
- name: Build Release/Win32
run: msbuild .\project\vc2017\nvtt.sln /property:Configuration=Release /property:Platform=Win32
unix:
strategy:
matrix:
os: [ubuntu, macos]
name: ${{matrix.os}}
runs-on: ${{matrix.os}}-latest
steps:
- uses: actions/checkout@v2
- name: make
run: |
./configure --debug
make
./configure --release
make

17
.gitignore vendored Normal file
View File

@ -0,0 +1,17 @@
**/bin/
**/obj/
**/Debug/
**/Release/
**/Debug.x64/
**/Release.x64/
**/Debug.Win32/
**/Release.Win32/
**/Debug-CUDA/
**/Release-CUDA/
*.vcxproj.user
*.opensdf
*.sdf
*.suo
build
.vs
project/nvtt.sublime-workspace

View File

@ -1,34 +1,28 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0)
PROJECT(NV)
ENABLE_TESTING()
SET(NV_CMAKE_DIR "${NV_SOURCE_DIR}/cmake")
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${NV_CMAKE_DIR}")
IF(WIN32)
# gnuwin32 paths:
SET(GNUWIN32_PATH "${NV_SOURCE_DIR}/extern/gnuwin32")
SET(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} "${GNUWIN32_PATH}/include")
SET(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} "${GNUWIN32_PATH}/lib")
# Set GLUT path:
SET(GLUT_ROOT_DIR "${NV_SOURCE_DIR}/extern/glut")
# Set FreeImage path:
SET(FREEIMAGE_ROOT_DIR "${NV_SOURCE_DIR}/extern/FreeImage")
ENDIF(WIN32)
# Compiler check (needs -std:c++11 flag)
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
if(COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
else()
message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()
INCLUDE(${NV_CMAKE_DIR}/OptimalOptions.cmake)
MESSAGE(STATUS "Setting optimal options")
MESSAGE(STATUS " Processor: ${NV_SYSTEM_PROCESSOR}")
MESSAGE(STATUS " Compiler Flags: ${CMAKE_CXX_FLAGS}")
IF(NVTT_SHARED)
SET(NVCORE_SHARED TRUE)
SET(NVMATH_SHARED TRUE)
SET(NVIMAGE_SHARED TRUE)
ENDIF(NVTT_SHARED)
IF(CMAKE_BUILD_TYPE MATCHES "debug")
SET(CMAKE_DEBUG_POSTFIX "_d" CACHE STRING "Postfix for debug build libraries.")
ADD_DEFINITIONS(-D_DEBUG=1)
ENDIF()
ADD_SUBDIRECTORY(extern)
@ -36,9 +30,8 @@ ADD_SUBDIRECTORY(src)
# These files should only be installed when creating packages.
INSTALL(FILES
NVIDIA_Texture_Tools_LICENSE.txt
NVIDIA_Texture_Tools_README.txt
ChangeLog
LICENSE
README.md
DESTINATION share/doc/nvtt)
# Add packaging support
@ -51,20 +44,20 @@ ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
SET(CPACK_PACKAGE_NAME "nvidia-texture-tools")
SET(CPACK_PACKAGE_VERSION_MAJOR "2")
SET(CPACK_PACKAGE_VERSION_MINOR "1")
SET(CPACK_PACKAGE_VERSION_PATCH "0")
SET(CPACK_PACKAGE_VERSION "2.1.0")
SET(CPACK_PACKAGE_CONTACT "Ignacio Casta<74>o <icastano@nvidia.com>")
SET(CPACK_PACKAGE_VENDOR "NVIDIA Corporation")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "GPU-accelerated Texture Tools with support for DirectX 10 texture formats")
SET(CPACK_PACKAGE_VERSION_PATCH "2")
SET(CPACK_PACKAGE_VERSION "2.1.2")
SET(CPACK_PACKAGE_CONTACT "Ignacio Casta<74>o <castano@gmail.com>")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Texture processing tools with support for Direct3D 10 and 11 formats.")
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${NV_SOURCE_DIR}/NVIDIA_Texture_Tools_README.txt")
SET(CPACK_RESOURCE_FILE_LICENSE "${NV_SOURCE_DIR}/NVIDIA_Texture_Tools_LICENSE.txt")
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${NV_SOURCE_DIR}/README.md")
SET(CPACK_RESOURCE_FILE_LICENSE "${NV_SOURCE_DIR}/LICENSE")
# NSIS options:
IF(WIN32)
SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_VENDOR}\\\\NVIDIA Texture Tools 2.1")
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}\\\\NVIDIA Texture Tools 2.1")
SET(CPACK_PACKAGE_ICON "${NV_SOURCE_DIR}\\\\project\\\\vc8\\\\nvcompress\\\\nvidia.ico")
SET(CPACK_PACKAGE_ICON "${NV_SOURCE_DIR}\\\\project\\\\vc2017\\\\nvcompress\\\\nvidia.ico")
ENDIF(WIN32)
INCLUDE(CPack)

View File

@ -1,4 +1,12 @@
NVIDIA Texture Tools version 2.1.2
* Use ICBC as the main BC1 compressor.
* Various fixes.
NVIDIA Texture Tools version 2.1.1
* Various fixes.
NVIDIA Texture Tools version 2.1.0
* Too many changes to list here.
* CTX1 CUDA compressor.
* DXT1n CUDA compressor.
* Support alpha premultiplication by Charles Nicholson. See issue 30.

View File

@ -1,6 +1,7 @@
NVIDIA Texture Tools 2.0 is licensed under the MIT license.
NVIDIA Texture Tools is licensed under the MIT license.
Copyright (c) 2007 NVIDIA Corporation
Copyright (c) 2009-2020 Ignacio Castaño
Copyright (c) 2007-2009 NVIDIA Corporation
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation

View File

@ -1,187 +0,0 @@
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
NVIDIA Texture Tools
README.txt
Version 2.1
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
TABLE OF CONTENTS
--------------------------------------------------------------------------------
I. Instructions
II. Contents
III. Compilation Instructions
IV. Using NVIDIA Texture Tools in your own applications
V. Known Issues
VI. Frequently Asked Questions
--------------------------------------------------------------------------------
I. Introduction
--------------------------------------------------------------------------------
The NVIDIA Texture Tools is a collection of image processing and texture
manipulation tools, designed to be integrated in game tools and asset
conditioning pipelines.
The primary features of the library are mipmap and normal map generation, format
conversion and DXT compression.
DXT compression is based on Simon Brown's squish library. The library also
contains an alternative GPU-accelerated compressor that uses CUDA and on some
GPUs is one order of magnitude faster.
You can obtain CUDA from our developer site at:
http://developer.nvidia.com/object/cuda.html
The source code of the Texture Tools is being released under the terms of
the MIT license.
The latest installer is available at the official website:
http://developer.nvidia.com/object/texture_tools.html
Documentation and additional information can be found at the development site:
http://code.google.com/p/nvidia-texture-tools/
II. Contents
--------------------------------------------------------------------------------
This release contains only the source code of the texture compression library
and several command line applications that serve as examples of how to use the
library.
Documentation for the texture compression library is available at:
http://code.google.com/p/nvidia-texture-tools/wiki/ApiDocumentation
A brief description of the command line tools can be found at:
http://code.google.com/p/nvidia-texture-tools/wiki/CommandLineTools
III. Compilation Instructions
--------------------------------------------------------------------------------
The compression library and the example can be compiled with Visual Studio 8 on
Windows using the following solution file:
project\vc8\nvtt.sln
On most other platforms you can also use cmake. For more information about
cmake, visit:
http://www.cmake.org/
On unix systems you can use the standard build procedure (assuming cmake is
installed on your system):
$ ./configure
$ make
$ sudo make install
IV. Using NVIDIA Texture Tools
--------------------------------------------------------------------------------
To use the NVIDIA Texture Tools in your own applications you just have to
include the following header file:
src/nvimage/nvtt/nvtt.h
And include the nvtt library in your projects.
The following file contains a simple example that shows how to use the library:
src/nvimage/nvtt/compress.cpp
Detailed documentation of the API can be found at:
http://code.google.com/p/nvidia-texture-tools/wiki/ApiDocumentation
The usage of the commandline compression tool is the following:
$ nvcompress [options] infile [outfile]
where 'infile' is and TGA, PNG, PSD, DDS or JPG file, 'outfile' is a DDS file
and 'options' is one or more of the following:
Input options:
-color The input image is a color map (default).
-alpha The input image has an alpha channel used for transparency.
-normal The input image is a normal map.
-tonormal Convert input to normal map.
-clamp Clamp wrapping mode (default).
-repeat Repeat wrapping mode.
-nomips Disable mipmap generation.
-premula Premultiply alpha into color channel.
-mipfilter Mipmap filter. One of the following: box, triangle, kaiser.
Compression options:
-fast Fast compression.
-nocuda Do not use cuda compressor.
-rgb RGBA format
-bc1 BC1 format (DXT1)
-bc1n BC1 normal map format (DXT1nm)
-bc1a BC1 format with binary alpha (DXT1a)
-bc2 BC2 format (DXT3)
-bc3 BC3 format (DXT5)
-bc3n BC3 normal map format (DXT5nm)
-bc4 BC4 format (ATI1)
-bc5 BC5 format (3Dc/ATI2)
Output options:
-silent Do not output progress messages
-dds10 Use DirectX 10 DDS format
In order to run the compiled example on a PC that doesn't have Microsoft Visual
Studio 2003 installed, you will have to install the Microsoft Visual Studio 2003
redistributable package that you can download at:
http://go.microsoft.com/fwlink/?linkid=65127&clcid=0x409
V. Known Issues
--------------------------------------------------------------------------------
None so far. Please file suggestions and bug reports at:
http://code.google.com/p/nvidia-texture-tools/issues/list
or contact us directly:
TextureTools@nvidia.com
VI. Frequently Asked Questions
--------------------------------------------------------------------------------
=== Where can I ask questions? How can I get support? ===
You can ask questions about the usage of the Texture Tools at the [http://developer.nvidia.com/forums/index.php?showforum=9 NVIDIA developer forums]. You can report bugs and request new features in our [http://code.google.com/p/nvidia-texture-tools/issues/list issue database]. If you are a developer and have questions about the API or the source code, feel free to drop by the [http://groups.google.com/group/nvidia-texture-tools developer's mailing list]. If you would like to contact us privately, please send an email to [mailto:TextureTools@nvidia.com TextureTools@nvidia.com].
=== Why is feature XYZ not supported? ===
In order to keep the code small and reduce maintenance costs we have limited the features available in our new texture tools. For this reason, we have also open sourced the code, so that people can modify it and add their own custom features.
=== What platforms do the NVIDIA Texture Tools support? ===
The tools are compiled and tested regularly on Linux, OSX, and Windows. Some platforms are tested more frequently than others and there may be bugs on some uncommon configurations.
=== Is CUDA required? ===
No. The Visual Studio solution file contains a configuration that allows you to compile the texture tools without CUDA support. The cmake scripts automatically detect the CUDA installation and use it only when available.
Even if the texture tools are compiled with CUDA support it's possible to use them on systems that do not support CUDA or that do not have a valid CUDA driver installed.
=== Where can I get CUDA? ===
At [http://developer.nvidia.com/object/cuda.html]
=== Can I use the NVIDIA Texture Tools in my commercial application? ===
Yes, the NVIDIA Texture Tools are licensed under the MIT license.
=== Can I use the NVIDIA Texture Tools in my GPL application? ===
Yes, the MIT license is compatible with the GPL and LGPL licenses.
=== Can I use the NVIDIA Texture Tools in the US? Do I have to obtain a license of the S3TC patent (US patent 5,956,431)? ===
NVIDIA has a license of the S3TC patent that covers all our products, including our Texture Tools. You don't have to obtain a license of the S3TC patent to use any of NVIDIA's products, but certain uses of NVIDIA Texture Tools source code cannot be considered NVIDIA products anymore. Keep in mind that the NVIDIA Texture Tools are licensed under the MIT license and thus are provided without warranty of any kind.

43
README.md Normal file
View File

@ -0,0 +1,43 @@
# NVIDIA Texture Tools [![Actions Status](https://github.com/castano/nvidia-texture-tools/workflows/build/badge.svg)](https://github.com/castano/nvidia-texture-tools/actions) ![MIT](https://img.shields.io/badge/license-MIT-blue.svg) [![GitHub](https://img.shields.io/badge/repo-github-green.svg)](https://github.com/castano/nvidia-texture-tools)
The NVIDIA Texture Tools is a collection of image processing and texture
manipulation tools, designed to be integrated in game tools and asset
processing pipelines.
The primary features of the library are mipmap and normal map generation, format
conversion, and DXT compression.
### How to build (Windows)
Use the provided Visual Studio 2017 solution `project/vc2017/thekla.sln`.
### How to build (Linux/OSX)
Use [cmake](http://www.cmake.org/) and the provided configure script:
```bash
$ ./configure
$ make
$ sudo make install
```
### Using NVIDIA Texture Tools
To use the NVIDIA Texture Tools in your own applications you just have to
include the following header file:
[src/nvtt/nvtt.h](https://github.com/castano/nvidia-texture-tools/blob/master/src/nvtt/nvtt.h)
And include the nvtt library in your projects.
The following file contains a simple example that shows how to use the library:
[src/nvtt/tools/compress.cpp](https://github.com/castano/nvidia-texture-tools/blob/master/src/nvtt/tools/compress.cpp)
Detailed documentation of the API can be found at:
https://github.com/castano/nvidia-texture-tools/wiki/ApiDocumentation

View File

@ -1 +1 @@
2.1.0
2.1.2

View File

@ -1,7 +0,0 @@
#!/bin/sh
tar zcvf nvidia-texture-tools-`cat VERSION`.tar.gz \
--exclude '.*' --exclude debian --exclude '*~' --exclude buildpkg \
--exclude 'build-*' --exclude data --exclude tags --exclude Makefile \
--exclude qtcreator-build --exclude 'nvidia-texture-tools-*.tar.gz' \
--exclude '*.user' --transform 's,^,nvidia-texture-tools/,' *

View File

@ -1,68 +0,0 @@
# Assume i586 by default.
SET(NV_SYSTEM_PROCESSOR "i586")
IF(UNIX)
FIND_PROGRAM(CMAKE_UNAME uname /bin /usr/bin /usr/local/bin )
IF(CMAKE_UNAME)
EXEC_PROGRAM(uname ARGS -p OUTPUT_VARIABLE NV_SYSTEM_PROCESSOR RETURN_VALUE val)
IF("${val}" GREATER 0 OR NV_SYSTEM_PROCESSOR STREQUAL "unknown")
EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE NV_SYSTEM_PROCESSOR RETURN_VALUE val)
ENDIF("${val}" GREATER 0 OR NV_SYSTEM_PROCESSOR STREQUAL "unknown")
# processor may have double quote in the name, and that needs to be removed
STRING(REGEX REPLACE "\"" "" NV_SYSTEM_PROCESSOR "${NV_SYSTEM_PROCESSOR}")
STRING(REGEX REPLACE "/" "_" NV_SYSTEM_PROCESSOR "${NV_SYSTEM_PROCESSOR}")
ENDIF(CMAKE_UNAME)
#~ # Get extended processor information from /proc/cpuinfo
#~ IF(EXISTS "/proc/cpuinfo")
#~ FILE(READ /proc/cpuinfo PROC_CPUINFO)
#~ SET(VENDOR_ID_RX "vendor_id[ \t]*:[ \t]*([a-zA-Z]+)\n")
#~ STRING(REGEX MATCH "${VENDOR_ID_RX}" VENDOR_ID "${PROC_CPUINFO}")
#~ STRING(REGEX REPLACE "${VENDOR_ID_RX}" "\\1" VENDOR_ID "${VENDOR_ID}")
#~ SET(CPU_FAMILY_RX "cpu family[ \t]*:[ \t]*([0-9]+)")
#~ STRING(REGEX MATCH "${CPU_FAMILY_RX}" CPU_FAMILY "${PROC_CPUINFO}")
#~ STRING(REGEX REPLACE "${CPU_FAMILY_RX}" "\\1" CPU_FAMILY "${CPU_FAMILY}")
#~ SET(MODEL_RX "model[ \t]*:[ \t]*([0-9]+)")
#~ STRING(REGEX MATCH "${MODEL_RX}" MODEL "${PROC_CPUINFO}")
#~ STRING(REGEX REPLACE "${MODEL_RX}" "\\1" MODEL "${MODEL}")
#~ SET(FLAGS_RX "flags[ \t]*:[ \t]*([a-zA-Z0-9 _]+)\n")
#~ STRING(REGEX MATCH "${FLAGS_RX}" FLAGS "${PROC_CPUINFO}")
#~ STRING(REGEX REPLACE "${FLAGS_RX}" "\\1" FLAGS "${FLAGS}")
#~ # Debug output.
#~ IF(LINUX_CPUINFO)
#~ MESSAGE(STATUS "LinuxCPUInfo.cmake:")
#~ MESSAGE(STATUS "VENDOR_ID : ${VENDOR_ID}")
#~ MESSAGE(STATUS "CPU_FAMILY : ${CPU_FAMILY}")
#~ MESSAGE(STATUS "MODEL : ${MODEL}")
#~ MESSAGE(STATUS "FLAGS : ${FLAGS}")
#~ ENDIF(LINUX_CPUINFO)
#~ ENDIF(EXISTS "/proc/cpuinfo")
#~ # Information on how to decode CPU_FAMILY and MODEL:
#~ # http://balusc.xs4all.nl/srv/har-cpu-int-pm.php
ELSE(UNIX)
IF(WIN32)
# It's not OK to trust $ENV{PROCESSOR_ARCHITECTURE}: its value depends on the type of executable being run,
# so a 32-bit cmake (the default binary distribution) will always say "x86" regardless of the actual target.
IF (CMAKE_SIZEOF_VOID_P EQUAL 8)
SET (NV_SYSTEM_PROCESSOR "AMD64")
ELSE(CMAKE_SIZEOF_VOID_P EQUAL 8)
SET (NV_SYSTEM_PROCESSOR "x86")
ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8)
ENDIF(WIN32)
ENDIF(UNIX)

File diff suppressed because it is too large Load Diff

View File

@ -1,172 +0,0 @@
#
# Try to find NVIDIA's Cg compiler, runtime libraries, and include path.
# Once done this will define
#
# CG_FOUND =system has NVIDIA Cg and it can be used.
# CG_INCLUDE_PATH = directory where cg.h resides
# CG_LIBRARY = full path to libCg.so (Cg.DLL on win32)
# CG_GL_LIBRARY = full path to libCgGL.so (CgGL.dll on win32)
# CG_COMPILER = full path to cgc (cgc.exe on win32)
#
# On OSX default to using the framework version of Cg.
IF (APPLE)
INCLUDE(${CMAKE_ROOT}/Modules/CMakeFindFrameworks.cmake)
SET(CG_FRAMEWORK_INCLUDES)
CMAKE_FIND_FRAMEWORKS(Cg)
IF (Cg_FRAMEWORKS)
FOREACH(dir ${Cg_FRAMEWORKS})
SET(CG_FRAMEWORK_INCLUDES ${CG_FRAMEWORK_INCLUDES}
${dir}/Headers ${dir}/PrivateHeaders)
ENDFOREACH(dir)
# Find the include dir
FIND_PATH(CG_INCLUDE_PATH cg.h
${CG_FRAMEWORK_INCLUDES}
)
# Since we are using Cg framework, we must link to it.
# Note, we use weak linking, so that it works even when Cg is not available.
SET(CG_LIBRARY "-weak_framework Cg" CACHE STRING "Cg library")
SET(CG_GL_LIBRARY "-weak_framework Cg" CACHE STRING "Cg GL library")
ENDIF (Cg_FRAMEWORKS)
FIND_PROGRAM(CG_COMPILER cgc
/usr/bin
/usr/local/bin
DOC "The Cg compiler"
)
ELSE (APPLE)
IF (WIN32)
# When compiling 64-bit programs, the binaries and libs are in bin.x64 and lib.x64 directories,
# This will have only effect for 64bit versions of cmake, when running the default 32bit version
# both ProgramFiles and ProgramFiles(x86) point to the same place in Win64
SET(PFx86_VARNAME "ProgramFiles(x86)")
SET(PFx86 $ENV{${PFx86_VARNAME}})
# Let's play safe in case we are cross compiling to 64 bit: for cgc it doesn't really matter
FIND_PROGRAM( CG_COMPILER cgc
$ENV{CG_BIN64_PATH}
$ENV{CG_BIN_PATH}
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/bin
$ENV{PFx86}/NVIDIA\ Corporation/Cg/bin
$ENV{PROGRAMFILES}/Cg
${PROJECT_SOURCE_DIR}/../Cg
DOC "The Cg Compiler"
)
IF (CG_COMPILER)
GET_FILENAME_COMPONENT(CG_COMPILER_DIR ${CG_COMPILER} PATH)
GET_FILENAME_COMPONENT(CG_COMPILER_SUPER_DIR ${CG_COMPILER_DIR} PATH)
ELSE (CG_COMPILER)
SET (CG_COMPILER_DIR .)
SET (CG_COMPILER_SUPER_DIR ..)
ENDIF (CG_COMPILER)
FIND_PATH( CG_INCLUDE_PATH Cg/cg.h
$ENV{CG_INC_PATH}
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/include
$ENV{PROGRAMFILES}/Cg
${PROJECT_SOURCE_DIR}/../Cg
${CG_COMPILER_SUPER_DIR}/include
${CG_COMPILER_DIR}
DOC "The directory where Cg/cg.h resides"
)
IF (NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
FIND_LIBRARY( CG_LIBRARY
NAMES Cg
PATHS
$ENV{CG_LIB64_PATH}
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/lib.x64
$ENV{PFx86}/NVIDIA\ Corporation/Cg/lib.x64
$ENV{PROGRAMFILES}/Cg
$ENV{PFx86}/Cg
${PROJECT_SOURCE_DIR}/../Cg
${CG_COMPILER_SUPER_DIR}/lib.x64
${CG_COMPILER_DIR}
DOC "The Cg runtime library (64-bit)"
)
FIND_LIBRARY( CG_GL_LIBRARY
NAMES CgGL
PATHS
$ENV{CG_LIB64_PATH}
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/lib.x64
$ENV{PFx86}/NVIDIA\ Corporation/Cg/lib.x64
$ENV{PROGRAMFILES}/Cg
$ENV{PFx86}/Cg
${PROJECT_SOURCE_DIR}/../Cg
${CG_COMPILER_SUPER_DIR}/lib.x64
${CG_COMPILER_DIR}
DOC "The Cg GL runtime library (64-bit)"
)
ELSE(NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
FIND_LIBRARY( CG_LIBRARY
NAMES Cg
PATHS
$ENV{CG_LIB_PATH}
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/lib
$ENV{PROGRAMFILES}/Cg
${PROJECT_SOURCE_DIR}/../Cg
${CG_COMPILER_SUPER_DIR}/lib
${CG_COMPILER_DIR}
DOC "The Cg runtime library"
)
FIND_LIBRARY( CG_GL_LIBRARY
NAMES CgGL
PATHS
$ENV{CG_LIB_PATH}
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/lib
$ENV{PROGRAMFILES}/Cg
${PROJECT_SOURCE_DIR}/../Cg
${CG_COMPILER_SUPER_DIR}/lib
${CG_COMPILER_DIR}
DOC "The Cg GL runtime library"
)
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
ELSE (WIN32)
FIND_PROGRAM( CG_COMPILER cgc
/usr/bin
/usr/local/bin
DOC "The Cg Compiler"
)
GET_FILENAME_COMPONENT(CG_COMPILER_DIR "${CG_COMPILER}" PATH)
GET_FILENAME_COMPONENT(CG_COMPILER_SUPER_DIR "${CG_COMPILER_DIR}" PATH)
FIND_PATH( CG_INCLUDE_PATH Cg/cg.h
/usr/include
/usr/local/include
${CG_COMPILER_SUPER_DIR}/include
DOC "The directory where Cg/cg.h resides"
)
FIND_LIBRARY( CG_LIBRARY Cg
PATHS
/usr/lib64
/usr/lib
/usr/local/lib64
/usr/local/lib
${CG_COMPILER_SUPER_DIR}/lib64
${CG_COMPILER_SUPER_DIR}/lib
DOC "The Cg runtime library"
)
SET(CG_LIBRARY ${CG_LIBRARY} -lpthread)
FIND_LIBRARY( CG_GL_LIBRARY CgGL
PATHS
/usr/lib64
/usr/lib
/usr/local/lib64
/usr/local/lib
${CG_COMPILER_SUPER_DIR}/lib64
${CG_COMPILER_SUPER_DIR}/lib
DOC "The Cg runtime library"
)
ENDIF (WIN32)
ENDIF (APPLE)
IF (CG_INCLUDE_PATH)
SET( CG_FOUND 1 CACHE STRING "Set to 1 if CG is found, 0 otherwise")
ELSE (CG_INCLUDE_PATH)
SET( CG_FOUND 0 CACHE STRING "Set to 1 if CG is found, 0 otherwise")
ENDIF (CG_INCLUDE_PATH)
MARK_AS_ADVANCED( CG_FOUND )

View File

@ -1,38 +0,0 @@
IF (WIN32)
FIND_PATH(DX9_INCLUDE_PATH d3d9.h
PATHS
"$ENV{DXSDK_DIR}/Include"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Include"
DOC "The directory where D3D9.h resides")
FIND_PATH(DX10_INCLUDE_PATH D3D10.h
PATHS
"$ENV{DXSDK_DIR}/Include"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Include"
DOC "The directory where D3D10.h resides")
FIND_LIBRARY(D3D10_LIBRARY d3d10.lib
PATHS
"$ENV{DXSDK_DIR}/Lib/x86"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Lib/x86"
DOC "The directory where d3d10.lib resides")
FIND_LIBRARY(D3DX10_LIBRARY d3dx10.lib
PATHS
"$ENV{DXSDK_DIR}/Lib/x86"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Lib/x86"
DOC "The directory where d3dx10.lib resides")
SET(DX10_LIBRARIES ${D3D10_LIBRARY} ${D3DX10_LIBRARY})
ENDIF (WIN32)
IF (DX10_INCLUDE_PATH)
SET( DX10_FOUND 1 CACHE STRING "Set to 1 if CG is found, 0 otherwise")
ELSE (DX10_INCLUDE_PATH)
SET( DX10_FOUND 0 CACHE STRING "Set to 1 if CG is found, 0 otherwise")
ENDIF (DX10_INCLUDE_PATH)
MARK_AS_ADVANCED( DX10_FOUND )

View File

@ -1,53 +0,0 @@
#
# Try to find the FreeImage library and include path.
# Once done this will define
#
# FREEIMAGE_FOUND
# FREEIMAGE_INCLUDE_PATH
# FREEIMAGE_LIBRARY
#
IF (WIN32)
FIND_PATH( FREEIMAGE_INCLUDE_PATH FreeImage.h
${FREEIMAGE_ROOT_DIR}/include
${FREEIMAGE_ROOT_DIR}
DOC "The directory where FreeImage.h resides")
FIND_LIBRARY( FREEIMAGE_LIBRARY
NAMES FreeImage freeimage
PATHS
${FREEIMAGE_ROOT_DIR}/lib
${FREEIMAGE_ROOT_DIR}
DOC "The FreeImage library")
ELSE (WIN32)
FIND_PATH( FREEIMAGE_INCLUDE_PATH FreeImage.h
/usr/include
/usr/local/include
/sw/include
/opt/local/include
DOC "The directory where FreeImage.h resides")
FIND_LIBRARY( FREEIMAGE_LIBRARY
NAMES FreeImage freeimage
PATHS
/usr/lib64
/usr/lib
/usr/local/lib64
/usr/local/lib
/sw/lib
/opt/local/lib
DOC "The FreeImage library")
ENDIF (WIN32)
SET(FREEIMAGE_LIBRARIES ${FREEIMAGE_LIBRARY})
IF (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)
SET( FREEIMAGE_FOUND TRUE CACHE BOOL "Set to TRUE if FreeImage is found, FALSE otherwise")
ELSE (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)
SET( FREEIMAGE_FOUND FALSE CACHE BOOL "Set to TRUE if FreeImage is found, FALSE otherwise")
ENDIF (FREEIMAGE_INCLUDE_PATH AND FREEIMAGE_LIBRARY)
MARK_AS_ADVANCED(
FREEIMAGE_FOUND
FREEIMAGE_LIBRARY
FREEIMAGE_LIBRARIES
FREEIMAGE_INCLUDE_PATH)

View File

@ -1,62 +0,0 @@
#
# Try to find GLEW library and include path.
# Once done this will define
#
# GLEW_FOUND
# GLEW_INCLUDE_PATH
# GLEW_LIBRARY
#
IF (WIN32)
FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h
$ENV{PROGRAMFILES}/GLEW/include
${GLEW_ROOT_DIR}/include
DOC "The directory where GL/glew.h resides")
IF (NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
FIND_LIBRARY( GLEW_LIBRARY
NAMES glew64 glew64s
PATHS
$ENV{PROGRAMFILES}/GLEW/lib
${PROJECT_SOURCE_DIR}/src/nvgl/glew/bin
${PROJECT_SOURCE_DIR}/src/nvgl/glew/lib
DOC "The GLEW library (64-bit)"
)
ELSE(NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
FIND_LIBRARY( GLEW_LIBRARY
NAMES glew GLEW glew32 glew32s
PATHS
$ENV{PROGRAMFILES}/GLEW/lib
${PROJECT_SOURCE_DIR}/src/nvgl/glew/bin
${PROJECT_SOURCE_DIR}/src/nvgl/glew/lib
DOC "The GLEW library"
)
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "AMD64")
ELSE (WIN32)
FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h
/usr/include
/usr/local/include
/sw/include
/opt/local/include
${GLEW_ROOT_DIR}/include
DOC "The directory where GL/glew.h resides")
FIND_LIBRARY( GLEW_LIBRARY
NAMES GLEW glew
PATHS
/usr/lib64
/usr/lib
/usr/local/lib64
/usr/local/lib
/sw/lib
/opt/local/lib
${GLEW_ROOT_DIR}/lib
DOC "The GLEW library")
ENDIF (WIN32)
SET(GLEW_FOUND "NO")
IF (GLEW_INCLUDE_PATH AND GLEW_LIBRARY)
SET(GLEW_LIBRARIES ${GLEW_LIBRARY})
SET(GLEW_FOUND "YES")
ENDIF (GLEW_INCLUDE_PATH AND GLEW_LIBRARY)

View File

@ -1,67 +0,0 @@
IF (WIN32)
# Maya plugins can only be compiled with msvc
IF (MSVC)
FIND_PATH(MAYA_INCLUDE_PATH maya/MTypes.h
PATHS
"$ENV{PROGRAMFILES}/Autodesk/Maya8.5/include"
"$ENV{MAYA_LOCATION}/include"
DOC "The directory where MTypes.h resides")
# Find maya version!
FIND_LIBRARY(MAYA_FOUNDATION_LIBRARY Foundation
PATHS
"$ENV{PROGRAMFILES}/Autodesk/Maya8.5/lib"
"$ENV{MAYA_LOCATION}/lib"
DOC "The directory where Foundation.lib resides")
FIND_LIBRARY(MAYA_OPENMAYA_LIBRARY OpenMaya
PATHS
"$ENV{PROGRAMFILES}/Autodesk/Maya8.5/lib"
"$ENV{MAYA_LOCATION}/lib"
DOC "The directory where OpenMaya.lib resides")
FIND_LIBRARY(MAYA_OPENMAYAANIM_LIBRARY OpenMayaAnim
PATHS
"$ENV{PROGRAMFILES}/Autodesk/Maya8.5/lib"
"$ENV{MAYA_LOCATION}/lib"
DOC "The directory where OpenMayaAnim.lib resides")
SET(MAYA_LIBRARIES
${MAYA_FOUNDATION_LIBRARY}
${MAYA_OPENMAYA_LIBRARY}
${MAYA_OPENMAYAANIM_LIBRARY})
SET(MAYA_EXTENSION ".mll")
ENDIF (MSVC)
ELSE (WIN32)
# On linux, check gcc version.
# OSX and Linux
FIND_PATH(MAYA_INCLUDE_PATH maya/MTypes.h
PATHS
/usr/autodesk/maya/include
$ENV{MAYA_LOCATION}/include
DOC "The directory where MTypes.h resides")
# TODO
ENDIF (WIN32)
IF (MAYA_INCLUDE_PATH)
SET( MAYA_FOUND 1 CACHE STRING "Set to 1 if Maya is found, 0 otherwise")
ELSE (MAYA_INCLUDE_PATH)
SET( MAYA_FOUND 0 CACHE STRING "Set to 1 if Maya is found, 0 otherwise")
ENDIF (MAYA_INCLUDE_PATH)
MARK_AS_ADVANCED( MAYA_FOUND )

View File

@ -1,79 +0,0 @@
#
# Try to find OpenEXR's libraries, and include path.
# Once done this will define:
#
# OPENEXR_FOUND = OpenEXR found.
# OPENEXR_INCLUDE_PATHS = OpenEXR include directories.
# OPENEXR_LIBRARIES = libraries that are needed to use OpenEXR.
#
INCLUDE(FindZLIB)
IF(ZLIB_FOUND)
SET(LIBRARY_PATHS
/usr/lib
/usr/local/lib
/sw/lib
/opt/local/lib
$ENV{PROGRAM_FILES}/OpenEXR/lib/static)
FIND_PATH(OPENEXR_INCLUDE_PATH ImfRgbaFile.h
PATH_SUFFIXES OpenEXR
/usr/include
/usr/local/include
/sw/include
/opt/local/include)
FIND_LIBRARY(OPENEXR_HALF_LIBRARY
NAMES Half
PATHS ${LIBRARY_PATHS})
FIND_LIBRARY(OPENEXR_IEX_LIBRARY
NAMES Iex
PATHS ${LIBRARY_PATHS})
FIND_LIBRARY(OPENEXR_IMATH_LIBRARY
NAMES Imath
PATHS ${LIBRARY_PATHS})
FIND_LIBRARY(OPENEXR_ILMIMF_LIBRARY
NAMES IlmImf
PATHS ${LIBRARY_PATHS})
FIND_LIBRARY(OPENEXR_ILMTHREAD_LIBRARY
NAMES IlmThread
PATHS ${LIBRARY_PATHS})
ENDIF(ZLIB_FOUND)
#MESSAGE(STATUS ${OPENEXR_IMATH_LIBRARY} ${OPENEXR_ILMIMF_LIBRARY} ${OPENEXR_IEX_LIBRARY} ${OPENEXR_HALF_LIBRARY} ${OPENEXR_ILMTHREAD_LIBRARY} ${ZLIB_LIBRARY})
IF (OPENEXR_INCLUDE_PATH AND OPENEXR_IMATH_LIBRARY AND OPENEXR_ILMIMF_LIBRARY AND OPENEXR_IEX_LIBRARY AND OPENEXR_HALF_LIBRARY)
SET(OPENEXR_FOUND TRUE)
SET(OPENEXR_INCLUDE_PATHS ${OPENEXR_INCLUDE_PATH} CACHE STRING "The include paths needed to use OpenEXR")
SET(OPENEXR_LIBRARIES ${OPENEXR_IMATH_LIBRARY} ${OPENEXR_ILMIMF_LIBRARY} ${OPENEXR_IEX_LIBRARY} ${OPENEXR_HALF_LIBRARY} ${ZLIB_LIBRARY} CACHE STRING "The libraries needed to use OpenEXR")
IF(OPENEXR_ILMTHREAD_LIBRARY)
SET(OPENEXR_LIBRARIES ${OPENEXR_LIBRARIES} ${OPENEXR_ILMTHREAD_LIBRARY})
ENDIF(OPENEXR_ILMTHREAD_LIBRARY)
ENDIF (OPENEXR_INCLUDE_PATH AND OPENEXR_IMATH_LIBRARY AND OPENEXR_ILMIMF_LIBRARY AND OPENEXR_IEX_LIBRARY AND OPENEXR_HALF_LIBRARY)
IF(OPENEXR_FOUND)
IF(NOT OPENEXR_FIND_QUIETLY)
MESSAGE(STATUS "Found OpenEXR: ${OPENEXR_ILMIMF_LIBRARY}")
ENDIF(NOT OPENEXR_FIND_QUIETLY)
ELSE(OPENEXR_FOUND)
IF(OPENEXR_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find OpenEXR library")
ENDIF(OPENEXR_FIND_REQUIRED)
ENDIF(OPENEXR_FOUND)
MARK_AS_ADVANCED(
OPENEXR_INCLUDE_PATHS
OPENEXR_LIBRARIES
OPENEXR_ILMIMF_LIBRARY
OPENEXR_IMATH_LIBRARY
OPENEXR_IEX_LIBRARY
OPENEXR_HALF_LIBRARY)

View File

@ -1,49 +1,11 @@
INCLUDE(${NV_CMAKE_DIR}/DetermineProcessor.cmake)
# Set optimal options for gcc:
IF(CMAKE_COMPILER_IS_GNUCXX)
IF(NV_SYSTEM_PROCESSOR STREQUAL "i586")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i586")
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "i586")
IF(NV_SYSTEM_PROCESSOR STREQUAL "i686")
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i686")
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpmath=sse -mtune=i686 -msse3")
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=pentium4")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=prescott")
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "i686")
IF(NV_SYSTEM_PROCESSOR STREQUAL "x86_64")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=athlon64")
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=athlon64 -msse3")
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "x86_64")
IF(NV_SYSTEM_PROCESSOR STREQUAL "powerpc")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=powerpc -faltivec -maltivec -mabi=altivec -mpowerpc-gfxopt")
# ibook G4:
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=7450 -mtune=7450 -faltivec -maltivec -mabi=altivec -mpowerpc-gfxopt")
# G5
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=G5 -faltivec -maltivec -mabi=altivec -mpowerpc-gfxopt")
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "powerpc")
# IF(DARWIN)
# SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk")
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.5 -isysroot /Developer/SDKs/MacOSX10.5.sdk")
# ENDIF(DARWIN)
IF(CMAKE_BUILD_TYPE STREQUAL "debug")
ADD_DEFINITIONS(-D_DEBUG)
ENDIF(CMAKE_BUILD_TYPE STREQUAL "debug")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
ENDIF()
IF(MSVC)
# @@ Some of these might only be available in VC8.
# Code generation flags.
# SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /arch:SSE2 /fp:fast")
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:SSE2 /fp:fast")

View File

@ -1,61 +0,0 @@
# For more information, please see: http://software.sci.utah.edu
#
# The MIT License
#
# Copyright (c) 2007
# Scientific Computing and Imaging Institute, University of Utah
#
# License for the specific language governing rights and limitations under
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
# Make2cmake CMake Script
# Abe Stephens and James Bigler
# (c) 2007 Scientific Computing and Imaging Institute, University of Utah
# Note that the REGEX expressions may need to be tweaked for different dependency generators.
file(READ ${input_file} depend_text)
if (${depend_text} MATCHES ".+")
# message("FOUND DEPENDS")
# Remember, four backslashes is escaped to one backslash in the string.
string(REGEX REPLACE "\\\\ " " " depend_text ${depend_text})
# This works for the nvcc -M generated dependency files.
string(REGEX REPLACE "^.* : " "" depend_text ${depend_text})
string(REGEX REPLACE "[ \\\\]*\n" ";" depend_text ${depend_text})
foreach(file ${depend_text})
string(REGEX REPLACE "^ +" "" file ${file})
if(NOT IS_DIRECTORY ${file})
set(cuda_nvcc_depend "${cuda_nvcc_depend} \"${file}\"\n")
endif(NOT IS_DIRECTORY ${file})
endforeach(file)
else()
# message("FOUND NO DEPENDS")
endif()
file(WRITE ${output_file} "# Generated by: make2cmake.cmake\nSET(CUDA_NVCC_DEPEND\n ${cuda_nvcc_depend})\n\n")

View File

@ -1,105 +0,0 @@
# For more information, please see: http://software.sci.utah.edu
#
# The MIT License
#
# Copyright (c) 2007
# Scientific Computing and Imaging Institute, University of Utah
#
# License for the specific language governing rights and limitations under
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
# .cubin Parsing CMake Script
# Abe Stephens
# (c) 2007 Scientific Computing and Imaging Institute, University of Utah
file(READ ${input_file} file_text)
if (${file_text} MATCHES ".+")
# Remember, four backslashes is escaped to one backslash in the string.
string(REGEX REPLACE ";" "\\\\;" file_text ${file_text})
string(REGEX REPLACE "\ncode" ";code" file_text ${file_text})
list(LENGTH file_text len)
foreach(line ${file_text})
# Only look at "code { }" blocks.
if(line MATCHES "^code")
# Break into individual lines.
string(REGEX REPLACE "\n" ";" line ${line})
foreach(entry ${line})
# Extract kernel names.
if (${entry} MATCHES "[^g]name = ([^ ]+)")
string(REGEX REPLACE ".* = ([^ ]+)" "\\1" entry ${entry})
# Check to see if the kernel name starts with "_"
set(skip FALSE)
# if (${entry} MATCHES "^_")
# Skip the rest of this block.
# message("Skipping ${entry}")
# set(skip TRUE)
# else (${entry} MATCHES "^_")
message("Kernel: ${entry}")
# endif (${entry} MATCHES "^_")
endif(${entry} MATCHES "[^g]name = ([^ ]+)")
# Skip the rest of the block if necessary
if(NOT skip)
# Registers
if (${entry} MATCHES "reg = ([^ ]+)")
string(REGEX REPLACE ".* = ([^ ]+)" "\\1" entry ${entry})
message("Registers: ${entry}")
endif(${entry} MATCHES "reg = ([^ ]+)")
# Local memory
if (${entry} MATCHES "lmem = ([^ ]+)")
string(REGEX REPLACE ".* = ([^ ]+)" "\\1" entry ${entry})
message("Local: ${entry}")
endif(${entry} MATCHES "lmem = ([^ ]+)")
# Shared memory
if (${entry} MATCHES "smem = ([^ ]+)")
string(REGEX REPLACE ".* = ([^ ]+)" "\\1" entry ${entry})
message("Shared: ${entry}")
endif(${entry} MATCHES "smem = ([^ ]+)")
if (${entry} MATCHES "^}")
message("")
endif(${entry} MATCHES "^}")
endif(NOT skip)
endforeach(entry)
endif(line MATCHES "^code")
endforeach(line)
else()
# message("FOUND NO DEPENDS")
endif()

View File

@ -1,227 +0,0 @@
# This file runs the nvcc commands to produce the desired output file along with
# the dependency file needed by CMake to compute dependencies. In addition the
# file checks the output of each command and if the command fails it deletes the
# output files.
# Input variables
#
# verbose:BOOL=<> OFF: Be as quiet as possible (default)
# ON : Describe each step
#
# build_configuration:STRING=<> Typically one of Debug, MinSizeRel, Release, or
# RelWithDebInfo, but it should match one of the
# entries in CUDA_HOST_FLAGS. This is the build
# configuration used when compiling the code. If
# blank or unspecified Debug is assumed as this is
# what CMake does.
#
# generated_file:STRING=<> File to generate. This argument must be passed in.
#
# generated_cubin_file:STRING=<> File to generate. This argument must be passed
# in if build_cubin is true.
if(NOT generated_file)
message(FATAL_ERROR "You must specify generated_file on the command line")
endif()
# Set these up as variables to make reading the generated file easier
set(CMAKE_COMMAND "@CMAKE_COMMAND@")
set(source_file "@source_file@")
set(NVCC_generated_dependency_file "@NVCC_generated_dependency_file@")
set(cmake_dependency_file "@cmake_dependency_file@")
set(CUDA_make2cmake "@CUDA_make2cmake@")
set(CUDA_parse_cubin "@CUDA_parse_cubin@")
set(build_cubin @build_cubin@)
# We won't actually use these variables for now, but we need to set this, in
# order to force this file to be run again if it changes.
set(generated_file_path "@generated_file_path@")
set(generated_file_internal "@generated_file@")
set(generated_cubin_file_internal "@generated_cubin_file@")
set(CUDA_NVCC_EXECUTABLE "@CUDA_NVCC_EXECUTABLE@")
set(CUDA_NVCC_FLAGS "@CUDA_NVCC_FLAGS@;@CUDA_WRAP_OPTION_NVCC_FLAGS@")
@CUDA_NVCC_FLAGS_CONFIG@
set(nvcc_flags "@nvcc_flags@")
set(CUDA_NVCC_INCLUDE_ARGS "@CUDA_NVCC_INCLUDE_ARGS@")
set(format_flag "@format_flag@")
if(build_cubin AND NOT generated_cubin_file)
message(FATAL_ERROR "You must specify generated_cubin_file on the command line")
endif()
# This is the list of host compilation flags. It C or CXX should already have
# been chosen by FindCUDA.cmake.
@CUDA_HOST_FLAGS@
# Take the compiler flags and package them up to be sent to the compiler via -Xcompiler
set(nvcc_host_compiler_flags "")
# If we weren't given a build_configuration, use Debug.
if(NOT build_configuration)
set(build_configuration Debug)
endif()
string(TOUPPER "${build_configuration}" build_configuration)
#message("CUDA_NVCC_HOST_COMPILER_FLAGS = ${CUDA_NVCC_HOST_COMPILER_FLAGS}")
foreach(flag ${CMAKE_HOST_FLAGS} ${CMAKE_HOST_FLAGS_${build_configuration}})
# Extra quotes are added around each flag to help nvcc parse out flags with spaces.
set(nvcc_host_compiler_flags "${nvcc_host_compiler_flags},\"${flag}\"")
endforeach()
if (nvcc_host_compiler_flags)
set(nvcc_host_compiler_flags "-Xcompiler" ${nvcc_host_compiler_flags})
endif()
#message("nvcc_host_compiler_flags = \"${nvcc_host_compiler_flags}\"")
# Add the build specific configuration flags
list(APPEND CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS_${build_configuration}})
if(DEFINED CCBIN)
set(CCBIN -ccbin "${CCBIN}")
endif()
# cuda_execute_process - Executes a command with optional command echo and status message.
#
# status - Status message to print if verbose is true
# command - COMMAND argument from the usual execute_process argument structure
# ARGN - Remaining arguments are the command with arguments
#
# CUDA_result - return value from running the command
#
# Make this a macro instead of a function, so that things like RESULT_VARIABLE
# and other return variables are present after executing the process.
macro(cuda_execute_process status command)
set(_command ${command})
if(NOT _command STREQUAL "COMMAND")
message(FATAL_ERROR "Malformed call to cuda_execute_process. Missing COMMAND as second argument. (command = ${command})")
endif()
if(verbose)
execute_process(COMMAND "${CMAKE_COMMAND}" -E echo -- ${status})
# Now we need to build up our command string. We are accounting for quotes
# and spaces, anything else is left up to the user to fix if they want to
# copy and paste a runnable command line.
set(cuda_execute_process_string)
foreach(arg ${ARGN})
# If there are quotes, excape them, so they come through.
string(REPLACE "\"" "\\\"" arg ${arg})
# Args with spaces need quotes around them to get them to be parsed as a single argument.
if(arg MATCHES " ")
list(APPEND cuda_execute_process_string "\"${arg}\"")
else()
list(APPEND cuda_execute_process_string ${arg})
endif()
endforeach()
# Echo the command
execute_process(COMMAND ${CMAKE_COMMAND} -E echo ${cuda_execute_process_string})
endif(verbose)
# Run the command
execute_process(COMMAND ${ARGN} RESULT_VARIABLE CUDA_result )
endmacro()
# Delete the target file
cuda_execute_process(
"Removing ${generated_file}"
COMMAND "${CMAKE_COMMAND}" -E remove "${generated_file}"
)
# Generate the dependency file
cuda_execute_process(
"Generating dependency file: ${NVCC_generated_dependency_file}"
COMMAND "${CUDA_NVCC_EXECUTABLE}"
"${source_file}"
${CUDA_NVCC_FLAGS}
${nvcc_flags}
${CCBIN}
${nvcc_host_compiler_flags}
-DNVCC
-M
-o "${NVCC_generated_dependency_file}"
${CUDA_NVCC_INCLUDE_ARGS}
)
if(CUDA_result)
message(FATAL_ERROR "Error generating ${generated_file}")
endif()
# Generate the cmake readable dependency file to a temp file. Don't put the
# quotes just around the filenames for the input_file and output_file variables.
# CMake will pass the quotes through and not be able to find the file.
cuda_execute_process(
"Generating temporary cmake readable file: ${cmake_dependency_file}.tmp"
COMMAND "${CMAKE_COMMAND}"
-D "input_file:FILEPATH=${NVCC_generated_dependency_file}"
-D "output_file:FILEPATH=${cmake_dependency_file}.tmp"
-P "${CUDA_make2cmake}"
)
if(CUDA_result)
message(FATAL_ERROR "Error generating ${generated_file}")
endif()
# Copy the file if it is different
cuda_execute_process(
"Copy if different ${cmake_dependency_file}.tmp to ${cmake_dependency_file}"
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${cmake_dependency_file}.tmp" "${cmake_dependency_file}"
)
if(CUDA_result)
message(FATAL_ERROR "Error generating ${generated_file}")
endif()
# Delete the temporary file
cuda_execute_process(
"Removing ${cmake_dependency_file}.tmp and ${NVCC_generated_dependency_file}"
COMMAND "${CMAKE_COMMAND}" -E remove "${cmake_dependency_file}.tmp" "${NVCC_generated_dependency_file}"
)
if(CUDA_result)
message(FATAL_ERROR "Error generating ${generated_file}")
endif()
# Generate the code
cuda_execute_process(
"Generating ${generated_file}"
COMMAND "${CUDA_NVCC_EXECUTABLE}"
"${source_file}"
${CUDA_NVCC_FLAGS}
${nvcc_flags}
${CCBIN}
${nvcc_host_compiler_flags}
-DNVCC
${format_flag} -o "${generated_file}"
${CUDA_NVCC_INCLUDE_ARGS}
)
if(CUDA_result)
# Since nvcc can sometimes leave half done files make sure that we delete the output file.
cuda_execute_process(
"Removing ${generated_file}"
COMMAND "${CMAKE_COMMAND}" -E remove "${generated_file}"
)
message(FATAL_ERROR "Error generating file ${generated_file}")
else()
message("Generated ${generated_file} successfully.")
endif()
# Cubin resource report commands.
if( build_cubin )
# Run with -cubin to produce resource usage report.
cuda_execute_process(
"Generating ${generated_cubin_file}"
COMMAND "${CUDA_NVCC_EXECUTABLE}"
"${source_file}"
${CUDA_NVCC_FLAGS}
${nvcc_flags}
${CCBIN}
${nvcc_host_compiler_flags}
-DNVCC
-cubin
-o "${generated_cubin_file}"
${CUDA_NVCC_INCLUDE_ARGS}
)
# Execute the parser script.
cuda_execute_process(
"Executing the parser script"
COMMAND "${CMAKE_COMMAND}"
-D "input_file:STRING=${generated_cubin_file}"
-P "${CUDA_parse_cubin}"
)
endif( build_cubin )

19
configure vendored
View File

@ -18,7 +18,7 @@ fi
help=false
build="Debug" # release
build="debug" # release
prefix=/usr/local
# Parse the args
@ -26,9 +26,8 @@ for i in "$@"
do
case $i in
--help ) help=true ;;
--debug ) build="Debug" ;;
--release ) build="Release" ;;
--prefix=* ) prefix="${i#--prefix=}" ;;
--debug ) build="debug" ;;
--release ) build="release" ;;
--prefix=* ) prefix="${i#--prefix=}" ;;
* ) echo "Unrecognised argument $i" ;;
esac
@ -53,7 +52,7 @@ echo "-- Configuring nvidia-texture-tools "`cat VERSION`
mkdir -p ./build-$build
cd ./build-$build
$CMAKE .. -DNVTT_SHARED=1 -DCMAKE_BUILD_TYPE=$build -DCMAKE_INSTALL_PREFIX=$prefix -G "Unix Makefiles" || exit 1
$CMAKE .. -DNVTT_SHARED=0 -DCMAKE_BUILD_TYPE=$build -DCMAKE_INSTALL_PREFIX=$prefix -G "Unix Makefiles" || exit 1
cd ..
echo ""
@ -62,15 +61,15 @@ echo ""
cat > Makefile << EOF
all:
@make --no-print-directory -C build-$build/
@+make --no-print-directory -C build-$build/
install:
@make install --no-print-directory -C build-$build/
@+make install --no-print-directory -C build-$build/
package:
@make package --no-print-directory -C build-$build/
@+make package --no-print-directory -C build-$build/
test:
@make test --no-print-directory -C build-$build/
@+make test --no-print-directory -C build-$build/
clean:
@make clean --no-print-directory -C build-$build/
@+make clean --no-print-directory -C build-$build/
distclean:
@rm -Rf build-$build/
EOF

Binary file not shown.

BIN
data/luma/testpat_orig.1k.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

Before

Width:  |  Height:  |  Size: 154 KiB

After

Width:  |  Height:  |  Size: 154 KiB

View File

Before

Width:  |  Height:  |  Size: 828 B

After

Width:  |  Height:  |  Size: 828 B

View File

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 140 KiB

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

Before

Width:  |  Height:  |  Size: 155 KiB

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 415 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View File

Before

Width:  |  Height:  |  Size: 719 KiB

After

Width:  |  Height:  |  Size: 719 KiB

View File

Before

Width:  |  Height:  |  Size: 604 KiB

After

Width:  |  Height:  |  Size: 604 KiB

View File

Before

Width:  |  Height:  |  Size: 491 KiB

After

Width:  |  Height:  |  Size: 491 KiB

View File

Before

Width:  |  Height:  |  Size: 622 KiB

After

Width:  |  Height:  |  Size: 622 KiB

View File

Before

Width:  |  Height:  |  Size: 767 KiB

After

Width:  |  Height:  |  Size: 767 KiB

View File

Before

Width:  |  Height:  |  Size: 604 KiB

After

Width:  |  Height:  |  Size: 604 KiB

View File

Before

Width:  |  Height:  |  Size: 553 KiB

After

Width:  |  Height:  |  Size: 553 KiB

View File

Before

Width:  |  Height:  |  Size: 770 KiB

After

Width:  |  Height:  |  Size: 770 KiB

View File

Before

Width:  |  Height:  |  Size: 569 KiB

After

Width:  |  Height:  |  Size: 569 KiB

View File

Before

Width:  |  Height:  |  Size: 580 KiB

After

Width:  |  Height:  |  Size: 580 KiB

View File

Before

Width:  |  Height:  |  Size: 606 KiB

After

Width:  |  Height:  |  Size: 606 KiB

View File

Before

Width:  |  Height:  |  Size: 519 KiB

After

Width:  |  Height:  |  Size: 519 KiB

View File

Before

Width:  |  Height:  |  Size: 803 KiB

After

Width:  |  Height:  |  Size: 803 KiB

View File

Before

Width:  |  Height:  |  Size: 676 KiB

After

Width:  |  Height:  |  Size: 676 KiB

View File

Before

Width:  |  Height:  |  Size: 598 KiB

After

Width:  |  Height:  |  Size: 598 KiB

View File

Before

Width:  |  Height:  |  Size: 522 KiB

After

Width:  |  Height:  |  Size: 522 KiB

View File

Before

Width:  |  Height:  |  Size: 588 KiB

After

Width:  |  Height:  |  Size: 588 KiB

View File

Before

Width:  |  Height:  |  Size: 763 KiB

After

Width:  |  Height:  |  Size: 763 KiB

View File

Before

Width:  |  Height:  |  Size: 656 KiB

After

Width:  |  Height:  |  Size: 656 KiB

View File

Before

Width:  |  Height:  |  Size: 481 KiB

After

Width:  |  Height:  |  Size: 481 KiB

View File

Before

Width:  |  Height:  |  Size: 622 KiB

After

Width:  |  Height:  |  Size: 622 KiB

View File

Before

Width:  |  Height:  |  Size: 686 KiB

After

Width:  |  Height:  |  Size: 686 KiB

View File

Before

Width:  |  Height:  |  Size: 544 KiB

After

Width:  |  Height:  |  Size: 544 KiB

View File

Before

Width:  |  Height:  |  Size: 690 KiB

After

Width:  |  Height:  |  Size: 690 KiB

Binary file not shown.

Binary file not shown.

BIN
data/testsuite/lightmap/tower.dds Executable file

Binary file not shown.

View File

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 7.7 KiB

View File

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 98 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View File

Before

Width:  |  Height:  |  Size: 256 KiB

After

Width:  |  Height:  |  Size: 256 KiB

View File

Before

Width:  |  Height:  |  Size: 256 KiB

After

Width:  |  Height:  |  Size: 256 KiB

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

Before

Width:  |  Height:  |  Size: 256 KiB

After

Width:  |  Height:  |  Size: 256 KiB

View File

Before

Width:  |  Height:  |  Size: 256 KiB

After

Width:  |  Height:  |  Size: 256 KiB

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Some files were not shown because too many files have changed in this diff Show More