Commit Graph
100 Commits
Author SHA1 Message Date
Laytan Laats eac58fc640 sys/info: populate cpu.physical_cores and cpu.logical_cores on Darwin 2025-05-26 20:41:18 +02:00
LaytanandGitHub f1da10469e Merge pull request #5212 from sven-strothoff/glfw-bool-returns
Use b32 for GLFW functions that return GLFW_TRUE or GLFW_FALSE
2025-05-26 20:19:46 +02:00
Laytan Laats 88908d7f78 wgpu: update to 25.0.2.1 2025-05-26 20:06:11 +02:00
Laytan Laats 478c923e2c fix another type alias issue with mini cycle 2025-05-26 19:48:28 +02:00
LaytanandGitHub 1886c7df0a Merge pull request #5203 from mothfuzz/patch-3
Correct mipmapFilter field name in wgpu.js
2025-05-23 07:48:52 +02:00
Laytan Laats eab3e2be22 os2: remove libc use on Linux 2025-05-20 19:48:06 +02:00
LaytanandGitHub d3221425a7 Merge pull request #5172 from krnowak/krnowak/sys-linux-dirent-docs
sys/linux: Improve documentation for Dirent and related procedures
2025-05-18 17:47:41 +02:00
Laytan Laats c35a45e823 fix global and static any
Fixes #4627
2025-05-17 16:49:30 +02:00
Laytan 326454f0f0 generate xlib package docs on linux 2025-05-16 22:14:26 +02:00
Laytan 53a9ecb577 vendor/miniaudio: update to 0.11.22 2025-05-16 15:58:27 +02:00
LaytanandGitHub d3159f74cd Merge pull request #4944 from dozn/master
[core:encoding/json] When Unmarshalling, Only Match On Struct Tags If Present
2025-05-15 22:31:34 +02:00
Laytan Laats 2d00f8d69d fix compat with earlier llvm versions 2025-05-15 19:20:04 +02:00
Laytan Laats ebc63a7355 add hexfloat (0h) parsing to strconv 2025-05-10 15:11:52 +02:00
Laytan Laats 8374854dd5 use brew clang instead of system clang 2025-05-09 23:13:06 +02:00
Laytan Laats 221dea76a4 Run MacOS CI with -sanitize:address 2025-05-09 23:12:59 +02:00
Laytan Laats f9b9e9e7dc some ABI fixups and improvements
Started with trying to enable asan in the CI for MacOS, noticed it wasn't enabled on the `tests/internal`
folder, it came up with a couple of issues with the abi/OdinLLVMBuildTransmute that this also solves.

- Looking at clang output for arm64, we should be promoting `{ i64, i32 }` to `{ i64, i64 }`
- after doing the previous point, I noticed this is not handled well in OdinLLVMBuildTransmute
  which was emitting loads and stores into the space of a value that was alignment, asan does not want this,
  looking at clang output again, a memcpy is the appropriate way of handling this.
- Having done this we don't need the hacky "return is packed" set anymore in the amd64 sysv ABI anymore either
2025-05-09 23:03:17 +02:00
Laytan Laats 4d08b76372 require the __asan_unpoison_memory_region runtime symbol so empty projects with asan enabled build 2025-05-09 22:26:49 +02:00
Laytan Laats cacb9f9f54 os2: better copy_directory, and add native copy_file and copy_directory variants on MacOS 2025-05-08 19:32:30 +02:00
Laytan Laats ad4866653a fix disposing builder when not created
Fixes #5128

p->builder is created in lb_begin_procedure_body, but that isn't called
if there is no body, and we were still calling dispose at that point.

Moved it into lb_end_procedure_body to match.
2025-05-07 14:39:51 +02:00
LaytanandGitHub 7c1a9f1e7a Merge pull request #5127 from laytan/fix-process-windows-handles-handling
Fix process windows handles handling
2025-05-06 22:31:54 +02:00
laytan 9b218a2922 don't need to hang on to the null handle 2025-05-06 19:42:52 +02:00
Laytan bf5206968a close null_handle 2025-05-06 20:57:26 +02:00
Laytan 2bce446d08 ifs wrong way around 2025-05-06 20:47:51 +02:00
Laytan 814a500e83 Windows was defaulting to the std handles of the current process, which is wrong 2025-05-06 20:43:02 +02:00
LaytanandGitHub e228ef221b Merge pull request #5125 from brian-hmn/fix-set-env
[core:os/os2] Fix: Correct value cloning in os2._set_env for POSIX
2025-05-06 12:24:17 +02:00
LaytanandGitHub 93f80f60fb Merge pull request #5112 from blob1807/master
`core:bufio`: Fix typo from `b.w-b.w` to `b.w-b.r`
2025-05-05 03:00:46 +02:00
LaytanandGitHub dd0b8d5757 Merge pull request #5099 from laytan/add-alias-issue-tests-to-ci
adds the cases of #5043 and #5097 to the CI
2025-04-30 20:20:43 +02:00
Laytan Laats d2f8cb1306 adds the cases of #5043 and #5097 to the CI 2025-04-30 20:13:21 +02:00
Laytan Laats 396a18efce fix variable NaN comparisons 2025-04-30 20:04:24 +02:00
LaytanandGitHub c74f777b1b Merge pull request #5097 from laytan/fix-pointer-alias-type-check
fixes assigning null as a type if it's an alias but the base type is null
2025-04-30 19:54:48 +02:00
Laytan Laats 9fb9382449 fixes assigning null as a type if it's an alias but the base type isn't resolved yet
It's a bit of a band aid fix because the field will get the type of the
alias, not the base type, but that was already the case before #5045 so
it's forward progression.

Closes #5092
Fixes #5061
2025-04-30 19:39:38 +02:00
Laytan Laats 6c1a3c4f0c box2d: fix World_CollideMover 2025-04-25 18:24:41 +02:00
laytan 38f56c0ede box2d: update windows libs to 3.1.0 and call thread.yield in vendor/libc 2025-04-23 16:59:54 +02:00
Laytan Laats e086151fcd box2d: update to 3.1.0 2025-04-22 22:38:15 +02:00
LaytanandGitHub 2dedb199b8 Merge pull request #5052 from harold-b/hb/fix-ns-dictionary-selectors
Fix 2 selectors in NSDictionary
2025-04-17 21:28:10 +02:00
LaytanandGitHub 09c8477bd3 Merge pull request #5041 from mtarik34b/remove-redundant-code-in-string-justify
Remove redundant `builder_init()` calls from `strings.left_justify()` and `strings.right_justify()`
2025-04-17 00:01:59 +02:00
Laytan 8efeaef40b fix not resolving to alias in a recursive declaration 2025-04-16 22:55:25 +02:00
Laytan 990cc56974 sdl3: fix not allowing nil for SetWindowMouseRect 2025-04-15 20:13:51 +02:00
Laytan 11da543f26 net: add ECONNRESET to the error handling of recv 2025-04-14 21:17:22 +02:00
LaytanandGitHub ddcd7a368b Merge pull request #5033 from jasonKercher/fix-dirent-name
Fix linux.dirent_name
2025-04-13 18:14:02 +02:00
Laytan Laats 74a66f7794 os2: fix get_executable_path() on FreeBSD including the nil-terminator 2025-04-12 21:33:44 +02:00
LaytanandGitHub 23a2821353 Merge pull request #5028 from Feoramund/fix-macos-version-reporting
Fix Darwin version reporting for older macOS
2025-04-10 22:37:45 +02:00
Laytan Laats ff7d55a8e1 net: rework errors to be cross-platform 2025-04-05 17:35:19 +02:00
LaytanandGitHub c77131dd7a Merge pull request #4992 from laytan/llvm20-releases
ci: update to LLVM 20 on MacOS and Linux CI and releases
2025-04-02 21:51:37 +02:00
Laytan 4eef57c6f1 ci: ok, had to brew update, can we now request @20 directly? 2025-04-02 21:24:12 +02:00
Laytan 85b3a79a25 ci: brew update? 2025-04-02 21:22:18 +02:00
Laytan cab3239760 ci: fix macos llvm 20 2025-04-02 21:17:45 +02:00
Laytan b0316b7076 ci: update to LLVM 20 on MacOS and Linux CI and releases 2025-04-02 21:13:10 +02:00
LaytanandGitHub cc61fdd90e Merge pull request #4989 from SlateyDev/patch-1
Fix depth stencil not working on wgpu wasm_js build
2025-04-01 16:40:21 +02:00
Laytan Laats 327d9f134d net: drop core:os dependency for Darwin 2025-03-29 23:27:03 +01:00
LaytanandGitHub 2e64f5f639 Merge pull request #4960 from jimhub/wgpu-js-fixes
Bug fixes for wgpu.js
2025-03-23 17:01:49 +01:00
LaytanandGitHub 7ffbb68fff Merge pull request #4955 from wisonye/master
Fixed #4892: 'EPoll_Event.events' should be bit set.
2025-03-22 12:59:32 +01:00
Laytan Laats e4bc9677af fix unmarshalling bit sets in json
Fixes #4761
2025-03-22 00:20:00 +01:00
Laytan Laats cf0f73e0cf fix typo for freebsd arm64 MINSIGSTKSZ
Fixes #4878
2025-03-21 23:52:52 +01:00
Laytan Laats 73fd564634 fix tabs 2025-03-21 23:02:00 +01:00
Laytan Laats f85db012b8 fix off by one temp cstring and put objc names on permanent allocator to be safe
Fixes #4922
2025-03-21 22:56:19 +01:00
Laytan Laats 057144dea3 fix linux release trying to use non-existant llvm 20 package 2025-03-21 21:47:40 +01:00
Laytan Laats badd2c90f9 drop llvm 19 feature/microarch table
There was a bug in LLVM 19 introduced in https://github.com/llvm/llvm-project/pull/96249 and fixed in https://github.com/llvm/llvm-project/pull/118581.

Lets just use the LLVM 18 table for LLVM 19.
2025-03-20 16:51:27 +01:00
Laytan Laats f80e73e036 few llvm 20 changes 2025-03-19 21:22:55 +01:00
Laytan Laats 140c902eff vendor/libc: a bunch of additions
All these additions are to allow Dear ImGui to be compiled natively.
2025-03-12 19:25:35 +01:00
Laytan Laats 6691acfa03 core/sys/wasm/js: add open binding to window.open 2025-03-12 18:43:03 +01:00
Laytan Laats b76fd84084 webgl: add BlendEquationSeparate and GetParameter4i
`GetParameter4i` can be used to retrieve the current scissor rect, or
the curent viewport, which was previously impossible.

Also adds `BlendEquationSeparate` which seemed to be missing.

Also removes an instance of `do`.
2025-03-12 18:39:57 +01:00
Laytan Laats 00ac48c06c core/sys/wasm/js: add pointer event info and add charCode to keyboard events 2025-03-12 18:37:42 +01:00
Laytan Laats d349c96071 core/sys/wasm/js: improve gamepad API
1. Properly set `id` and `mapping` on the `get_gamepad_state` result
2. Increase `id` limit to 96 bytes, connecting my DualShock 4 made it crash
3. If an `id` or `mapping` is longer than the limits, slice it and add `...`
2025-03-12 18:32:51 +01:00
LaytanandGitHub 7d26edb83c Merge pull request #4910 from Feoramund/fix-strings-clone-2x-slice
Remove unneeded slicing in `strings.clone`
2025-03-05 20:15:30 +01:00
Laytan Laats 71eb26ef15 wgpu: fix link in doc.odin 2025-03-03 22:18:44 +01:00
Laytan Laats 52dd651aed wgpu: device lost callback device by pointer in JS 2025-03-03 22:15:35 +01:00
LaytanandGitHub 19d176c2c7 Merge pull request #4899 from Valakor/wgpu
wgpu: Some small fixes after update to v24.0.0.2
2025-03-03 21:58:27 +01:00
LaytanandGitHub 2dbf8d0f37 Merge pull request #4904 from laytan/move-wgpu-examples-to-examples-repo
wgpu: move examples to examples repo
2025-03-03 21:30:23 +01:00
Laytan Laats 7fc55eb92a wgpu: move examples to examples repo 2025-03-03 21:22:59 +01:00
Laytan Laats 189b4782fb dynlib: fix initialize_symbols when there is no field for the handle in the struct 2025-03-03 20:33:33 +01:00
Laytan Laats 05add96fc8 sys/windows: fix tabs 2025-03-03 19:30:22 +01:00
Laytan Laats 66540b75f5 fix hidden linkage applied to foreign symbols 2025-03-01 16:06:32 +01:00
LaytanandGitHub bb20b03f2e Merge pull request #4887 from Skytrias/skytrias-orca-ui-update
Update to newest orca bindings (UI Update)
2025-03-01 13:58:55 +01:00
Laytan Laats 76bf7875f5 wgpu: update to v24.0.0.2 2025-02-28 18:38:51 +01:00
Laytan Laats 94152ca701 misc/featuregen: fix script 2025-02-27 22:45:34 +01:00
Laytan Laats a9d4cb96b0 wgpu: stringView -> StringView typo 2025-02-27 22:29:51 +01:00
Laytan Laats 1223b3e260 wgpu: fix mode which is u64 not unwrapping big int 2025-02-27 22:29:32 +01:00
Laytan Laats b6f34332fe wgpu: copy over gpu contents to cpu side when mapping 2025-02-27 22:28:49 +01:00
Laytan Laats 19b70f5ef7 wgpu: layout left blank should set it to "auto" in JS 2025-02-27 22:28:15 +01:00
Laytan Laats 1942a538d8 wgpu: fix wrapper and add more wrappers 2025-02-27 18:39:29 +01:00
Laytan Laats 1cb28f7f73 wgpu: remove mode field of uncaptured error callback info 2025-02-27 18:31:32 +01:00
Laytan Laats 30f65372de wgpu: add missing libs on Windows 2025-02-27 18:27:31 +01:00
Laytan Laats 22ab8935c4 slice: use card in bitset_to_enum_slice_with_make
Fixes #4870
2025-02-24 21:10:12 +01:00
Laytan Laats 77c7087de3 wgpu: update release 2025-02-24 20:52:14 +01:00
Laytan Laats 0e4140a602 os/os2: recursive directory walker, expose errors in read_directory, file clone
Adds a directory walker, a method of exposing and retrieving errors from
the existing read directory iterator, allows reusing of the existing
read directory iterator, and adds a file clone procedure
2025-02-24 20:40:44 +01:00
Laytan Laats cae3f13d9f mem/virtual: specify max protection on mmap call in NetBSD and FreeBSD 2025-02-18 18:33:19 +01:00
Laytan Laats ae9388c013 wgpu: update to v24.0.0 2025-02-17 19:55:44 +01:00
LaytanandGitHub f0b1357132 Merge pull request #4848 from dozn/master
[core:flags] Add Missing `allocator` and `loc` Params on Call to `parse()`
2025-02-15 18:02:19 +01:00
Laytan Laats 435f77b16b fix space indentations 2025-02-12 19:33:41 +01:00
Laytan Laats 55302280d8 fix addrinfo struct def
Fixes #4816
2025-02-12 19:24:27 +01:00
Laytan Laats ae0f69fbe2 cleanup test arenas 2025-02-12 19:13:16 +01:00
Laytan Laats 7df5be2131 fix wrong out of memory in edge cases, just try allocate from block for one source of truth 2025-02-12 19:09:21 +01:00
Laytan Laats 5defddffd0 reorganize tests and handle endian 2025-02-06 21:44:34 +01:00
Laytan Laats 9241d7c698 add tests for abs() on floats 2025-02-06 21:20:15 +01:00
Laytan Laats de83ad2a25 apply abs fix to constant system too 2025-02-06 21:19:54 +01:00
Laytan Laats 1053ec3051 make corrected linkage with -use-separate-modules apply hidden visibility
Fixes #4798

The DLL was using the type info of the host/exe, causing crashes.
This PR tries fixing by applying hidden visibility to these corrected
symbols which makes sure that the DLL can't see the type table of the host/exe.
2025-02-06 20:45:58 +01:00
Laytan Laats 80d09774b4 fix not using RTLD_LOCAL on darwin 2025-02-06 19:15:12 +01:00
Laytan Laats b1068c7f2e improve abs() on floats for more correct and faster results 2025-02-05 21:17:48 +01:00
Laytan Laats b86d2c30b6 fix odin report macos version reporting unknown when release isn't a 3 point 2025-02-05 20:16:24 +01:00