Commit Graph

107 Commits

Author SHA1 Message Date
Richard Geldreich
33c4966491 comment typo fix 2026-02-14 21:11:50 -05:00
Richard Geldreich
554aad81bf fixing total_used_bc XUASTC LDR summary debug statistic (the per-CEM Blue Contraction/BC metrics were fine however) 2026-02-13 23:15:30 -05:00
Richard Geldreich
03d2057014 adjusting comments for clarity 2026-02-12 20:44:17 -05:00
Richard Geldreich
afb855a90d Removing dead function definition 2026-01-29 20:10:39 -05:00
Richard Geldreich
396b242fb7 Fixing BASISD_SUPPORT_KTX2_ZSTD macro so it can be set to 0 - this disables XUASTC Zstd/hybrid profiles for encoding 2026-01-28 13:35:52 -05:00
Richard Geldreich
e93d3beb36 merging v2.0 from xuastc_private 2026-01-19 01:59:54 -05:00
Richard Geldreich
ea6778b2b5 adding new files 2026-01-19 01:59:35 -05:00
Richard Geldreich
fc59cab71d unbreaking the purposely broken build for testing purposes 2025-11-23 15:37:58 -05:00
Richard Geldreich
593b1146d3 purposely breaking the build for testing purposes 2025-11-23 15:35:46 -05:00
Rich Geldreich
fbb7de77f2 Merge pull request #412 from Skullheadx/Fix-Missing-cfloat-Include
Fix missing cfloat include in basisu_astc_hdr_6x6_enc.cpp
2025-11-21 21:34:55 -05:00
Richard Geldreich
204d7525ad fixing merge issues 2025-11-21 21:30:58 -05:00
Aaron Franke
f3a63a3f54 Remove trailing space characters 2025-11-21 11:52:38 -08:00
Skullheadx
67886898e6 Add missing cfloat include 2025-11-19 09:51:47 -05:00
Richard Geldreich
6000fedf62 compressor fuzzing: fixing rare overflow in RDO candidate picker 2025-11-18 21:54:27 -05:00
Richard Geldreich
d7ef7030a0 Porting ETC1S colorspace very rare calculation overflow fix into OpenCL program 2025-11-18 17:38:20 -05:00
Richard Geldreich
5a1ae5d65d Fixing a very rare 1-bit overflow in ETC1S SSE optimized colorspace error calculations (which are 32-bit vs. the plain C++ code's 64-bit). Ultimately the output would still be correct and transcodable, but this could cause a compressor assertion check to fail. Found during compressor fuzz testing. 2025-11-18 17:27:51 -05:00
Richard Geldreich
6e54503437 adding compressor validate output flag from XUASTC branch 2025-11-18 17:25:32 -05:00
Richard Geldreich
f7d0925f96 Adding rel tolerance to this assert, found during compressor fuzzing 2025-11-18 17:25:06 -05:00
Richard Geldreich
221d2230e5 yet another warning fix 2025-11-08 12:55:41 -05:00
Richard Geldreich
cbb8ebefa4 Fixing ftell() error handling issue introduced by warning merge from PR 408 2025-11-08 11:28:34 -05:00
Richard Geldreich
196db8cbe2 Merging as much of PR #408 as we safely can.
PR 408's cmakelists.txt file has too many issues (OpenCL breaks on Windows/OSX) and changing our options to have the "BASISU_" prefix will break upstream builds.
2025-11-06 13:19:40 -05:00
Richard Geldreich
2c6712697c Fixing thread pool shutdown so the kill flag is set inside the mutex, preventing a race. This could cause very rare lockups on the previous code.
Also for more safety to prevent lockups on buggy C run-times, adding a 1s timeout in the thread pool condition variable wait.
2025-09-05 21:13:04 -04:00
Richard Geldreich
dcb7db72d2 Very minor fix/improvement to HDR 6x6 encoder (channel pair min correlation check). On blocks with all channels active (by far the most common case in practice), there's no difference. 2025-09-05 21:08:02 -04:00
Richard Geldreich
69ad18e035 removing unnecessary debug prints 2025-09-02 17:33:13 -04:00
Richard Geldreich
5d64f944f5 Fixing BASISU_OPENCL_ASSERT_ON_ANY_ERRORS so it's 0 by default 2025-07-17 12:18:18 -04:00
Richard Geldreich
100ace82d2 emcc warning fixes, fixing warnings in WASM cmakelists.txt files, changing ETC1S encoder to use std::map vs. std::unordered_map for hopefully more cross platform determinism 2025-06-24 17:22:05 -04:00
Jakub Marcowski
4855a3e338 Change ² (U+00B2) to ^2 2025-04-25 15:54:31 +02:00
Richard Geldreich, Jr.
b7ce25fd02 Windows ARM fixes 2025-02-19 15:09:52 -05:00
Richard Geldreich
ac02bea0a5 adding empty line at end of file 2025-01-21 12:14:47 -05:00
Richard Geldreich
1ba75b4e34 ASTC 6x6 HDR/6x6 HDR intermediate update 2025-01-21 11:01:08 -05:00
Richard Geldreich
acdf7620a8 new files 2025-01-21 10:08:45 -05:00
Richard Geldreich
3093d8bba6 removing renamed files 2025-01-21 10:07:55 -05:00
Richard Geldreich
6588a8a443 fixing load_png() so it checks the correct pointer 2024-11-15 04:02:04 -05:00
Rich Geldreich
7c046f89b2 Merge pull request #380 from zeux/fix-exrwarn
Fix gcc's calloc-transposed-args warning
2024-10-08 12:47:11 -04:00
Arseny Kapoulkine
660d897848 Fix gcc's calloc-transposed-args warning
calloc takes sizeof as the second argument.
2024-10-05 15:27:00 -07:00
Arseny Kapoulkine
23791a55f5 Fix verbose printfs when m_status_output = false
Regression since HDR merge; m_status_output = false should result in no
prints outside of error cases.
2024-10-05 15:23:53 -07:00
Richard Geldreich
59d28d60e9 Fixing UASTC HDR DFD 2024-09-10 23:37:07 -04:00
Richard Geldreich
1d56bfd544 Modifying UASTC HDR DFD 2024-09-10 20:48:20 -04:00
Richard Geldreich
14c52fc02c fixing build warning 2024-09-10 17:16:54 -04:00
Richard Geldreich
fb721b9e62 UASTC HDR merge 2024-09-10 14:44:59 -04:00
Richard Geldreich
3cab5169dc new files for UASTC HDR merge 2024-09-10 14:44:11 -04:00
Richard Geldreich
ac8898a466 UASTC HDR merge 2024-09-10 14:43:47 -04:00
Richard Geldreich
3f14dea423 Visual Studio 2022 (v143) compiler bug workaround. Test works now. Only impacted this compiler, not v142 or clang/gcc. 2023-04-12 17:45:30 -04:00
Ș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
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