Commit Graph

690 Commits

Author SHA1 Message Date
Ștefan Talpalaru
e61fe1e4ff SIMD: disable compile time checks
SSE4.1 support is checked at runtime, so compile time checks are
redundant at best and harmful when compiling for a different machine.

Further more, a logic error prevented the use of SSE4.1 on systems with
any version of AVX available. This is fixed now.
2023-01-31 14:39:17 +01:00
Rich Geldreich
8903f6d698 Merge pull request #260 from lexaknyazev/patch-1
Disallow all-zero-length Huffman tables
2022-12-11 05:00:57 -05:00
Rich Geldreich
a91e94c849 Merge pull request #328 from walkingeyerobot/master
emscripten no longer provides sys/timex.h, but does provide sys/time.h
2022-10-07 19:41:09 -04:00
Richard Geldreich
c86a40c7e6 Adding -clbench command line option, and a new API basis_benchmark_etc1s_opencl() to determine if OpenCL encoding is worthwhile on the current machine/driver/GPU. 2022-10-07 19:33:34 -04:00
walkingeyerobot
18b4868d2c Update encoder/basisu_enc.cpp
Co-authored-by: Derek Schuff <dschuff@chromium.org>
2022-10-07 18:38:59 -04:00
Mitch Foley
53372fc512 emscripten no longer provides sys/timex.h, but does provide sys/time.h 2022-10-07 16:58:42 -04:00
Rich Geldreich
498bba430b Merge pull request #319 from zeux/timer-tsan
Ensure interval_timer is initialized from main thread
2022-08-21 00:23:41 -04:00
Arseny Kapoulkine
7270755488 Ensure interval_timer is initialized from main thread
This avoids the race condition in interval_timer::init which triggers
thread sanitizer errors.
2022-08-20 21:15:20 -07:00
Richard Geldreich
9009cae540 Fixing -format_only so the uncompressed formats aren't unpacked when this option is used. 2022-06-09 11:57:44 -05:00
Rich Geldreich
c163d635c2 Merge pull request #287 from dpwiz/only-format
Add `-format_only` option
2022-06-09 11:50:46 -05:00
Rich Geldreich
1f4b564ae0 Merge pull request #281 from cwoffenden/invalid-char
Minor: invalid char triggers Unicode error
2022-02-24 22:48:49 -08:00
Rich Geldreich
4e3d5ba7cb Merge pull request #282 from cwoffenden/faster-amalgamate
Replace the slow single-file shell script with a faster Python equivalent
2022-02-24 17:12:32 -08:00
Rich Geldreich
547cdf85aa Merge pull request #285 from zeux/macos-fix
Fix clang warnings
2022-02-24 16:58:26 -08:00
Richard Geldreich
1531cfaf9e Bumping version to 1.16.3
Fixing unused var warnings in MSVC
1.16.3
2022-02-24 19:46:57 -05:00
Richard Geldreich
7a2094b807 Adding SAN option to CMakeLists.txt, to make it easier to use clang's address/undefined behavior sanitizer on codebase
Fixing overflow issue on extreme colors in color_distance().
Explicitly disabling unaligned addressing in miniz and transcoder when UBSAN is enabled
Disabling a needless optimization in transcoder causing ubsan issues (that could have easily been worked around in a different way, but it was an unnecessary optimization to begin with)
Rebuild wasm builds
2022-02-24 19:45:01 -05:00
Richard Geldreich
44e1bcd3e1 Fixing some bugs related to changing the default from -tex_array to -individual:
- If -output_file is specified and there's more than 1 input, it errors out as this would overwrite the output file multiple times
- Tex types cubemap/3D default to tex_array mode
1.16.2
2022-02-11 21:28:52 -05:00
Richard Geldreich
19111ce77b Fixing glTypeSize so it's always 1, as the KTX spec requires. 2022-02-11 21:28:02 -05:00
IC Rainbow
65bbcddaf3 Add -format_only option
A more flexible variant of `-etc1_only`.

Works well with `-ktx_only` to produce a specific output.
2022-02-05 00:06:07 +03:00
Arseny Kapoulkine
4556b570d5 Fix macOS warnings 2022-01-29 18:44:34 -08:00
Richard Geldreich
43c4322a72 Merge remote-tracking branch 'origin/master' 2022-01-28 10:08:10 -05:00
Richard Geldreich
aa987502fe trying to shut up git diff 2022-01-28 10:08:07 -05:00
Rich Geldreich
d0a7df6473 Update README.md 2022-01-28 09:48:28 -05:00
Rich Geldreich
3a27c24f79 Update README.md 2022-01-28 09:47:40 -05:00
Rich Geldreich
9235bc5225 Update README.md 2022-01-28 09:47:27 -05:00
Richard Geldreich
5a72a332c1 Trying to disable format testing on basis_transcoder.js 2022-01-28 09:42:36 -05:00
Richard Geldreich
95c591d696 Merge remote-tracking branch 'origin/master' 2022-01-28 09:38:06 -05:00
Richard Geldreich
8ee9498d93 Adding newline to end of file 2022-01-28 09:38:03 -05:00
Rich Geldreich
249f09d5f2 Update README.md 1.16 2022-01-28 08:46:03 -05:00
Richard Geldreich
deeb5acb56 v1.16 release: OpenCL support, removing global selector palette code (it was unused/dead code), ETC1S encoding optimizations, -parallel command line option 2022-01-28 08:32:54 -05:00
Richard Geldreich
5d23f64073 New files 2022-01-28 08:30:50 -05:00
Richard Geldreich
fcbd0e7df1 New files 2022-01-28 08:30:40 -05:00
Richard Geldreich
c642296bc1 New files 2022-01-28 08:30:30 -05:00
Richard Geldreich
8a24e40265 New files 2022-01-28 08:30:14 -05:00
Rich Geldreich
962d4ac422 Update README.md 1.15_final 2022-01-23 06:32:02 -05:00
Rich Geldreich
32ab6e8aca Update README.md 2022-01-23 06:22:10 -05:00
Carl Woffenden
b1c70e9141 Minor docs 2022-01-19 17:10:30 +01:00
Carl Woffenden
df66ddd794 Replaced the slow shell script with a faster Python equivalent 2022-01-19 17:01:35 +01:00
Carl Woffenden
d7b22b6c1c Replaced invalid char 2022-01-19 16:24:32 +01:00
Rich Geldreich
928a0caa3e Fixing asserts on 1x1 jpeg's when chroma filtering is enabled. 2021-12-27 02:18:33 -05:00
Rich Geldreich
4e0c016c70 Update README.md 2021-12-18 20:54:43 -05:00
Rich Geldreich
865a5af02f Update README.md 2021-12-18 20:53:49 -05:00
Rich Geldreich
0da4c110b0 Merge pull request #233 from atteneder/sse4.2
fix: Allow building SSE kernels regardless of SSE 4.2 being (in)active
2021-12-18 17:39:44 -08:00
Rich Geldreich
3755515342 Merge pull request #265 from Calinou/fix-freebsd-build
Fix compilation on FreeBSD
2021-12-18 17:35:43 -08:00
Rich Geldreich
0ba72f4fb3 Update README.md 2021-11-27 01:30:32 -05:00
Rich Geldreich
a5cf5d88f0 Update README.md 2021-11-27 01:26:34 -05:00
Rich Geldreich
5d1335ec8a Update README.md 2021-11-27 01:26:09 -05:00
Rich Geldreich
840abafea4 Update README.md 2021-11-27 01:25:16 -05:00
Rich Geldreich
fcc30afcbc Update README.md 2021-11-27 01:23:13 -05:00
Hugo Locurcio
9ecbdaa7dd Fix compilation on FreeBSD
Linux's `<sys/timex.h>` header was used instead of
FreeBSD's <sys/time.h> due to missing preprocessor comparison.

Co-authored-by: robfram <robfram@gmail.com>
2021-11-19 20:47:26 +01:00
Alexey Knyazev
52214ab28d Disallow all-zero-length Huffman tables 2021-10-24 01:59:32 +04:00