Commit graph

266 commits

Author SHA1 Message Date
Stephen Gutekanst
7dd1818e70 all: update to Zig 0.10.0-dev.3551+92568a009
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 14:45:21 -07:00
Release automation
98a61dc01c gpu-dawn: update to latest binary release 2022-08-08 05:43:06 +00:00
Stephen Gutekanst
d4fb7bf42a gpu-dawn: fix duplicate symbol main on x86_64-linux
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-07 22:04:54 -07:00
Stephen Gutekanst
38ebec0a1f gpu-dawn: build: update to latest Dawn revision
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 20:16:28 -07:00
Stephen Gutekanst
9b30005283 gpu-dawn: update Dawn to latest revision as of 2022-08-06
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 20:16:28 -07:00
Stephen Gutekanst
5aa692b4e5 gpu-dawn: workaround missing pthread issue in abseil-cpp
abseil-cpp now depends on `pthread.h`, it previously didn't. But this appears to
be a bug in abseil of sorts, because if you have `ABSL_FORCE_THREAD_IDENTITY_MODE` set
to `ABSL_THREAD_IDENTITY_MODE_USE_CPP11` it doesn't appear to be used/needed.

[Zig doesn't ship with pthread for the MinGW / `x86_64-windows-gnu` target](https://github.com/ziglang/zig/issues/10989),
and so the header is missing - but we don't actually need it, so we just add an
empty file to prevent the missing include error.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 20:16:28 -07:00
Stephen Gutekanst
fbfd2f336b remove Zig example in favor of mach/gpu one
`mach/gpu` has an example of how to use the bindings: https://github.com/hexops/mach/tree/main/gpu/examples

The example here is largely duplicative of that, and doesn't currently build. It would need to be updated
to reflect the latest Dawn example code.

Instead, let's keep `mach/gpu-dawn` just scoped to building Dawn with Zig. `mach/gpu` will deal with using it.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 01:46:19 -07:00
Stephen Gutekanst
0e68ba36eb gpu-dawn: remove Mach C shims
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 01:25:52 -07:00
Stephen Gutekanst
70ee58c904 gpu-dawn: update build.zig to build latest version of Dawn
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 01:18:01 -07:00
Stephen Gutekanst
55cac7efee gpu-dawn: update to latest upstream revision as of 2022-07-10
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 01:17:54 -07:00
Release automation
e6d7faaaba gpu-dawn: update to latest binary release 2022-07-30 17:54:01 +00:00
Ali Chraghi
b500b04c41 all: build: install tests exe 2022-07-25 11:21:37 -07:00
alichraghi
e6adc3e350 build: add mode paramater to testStep functions 2022-07-20 18:55:59 -07:00
alichraghi
d194dafb79 build: add test-mach step to test src/ and test for testing all sub-projects 2022-07-19 09:25:55 -07:00
Stephen Gutekanst
0ff83ba517 gpu-dawn: update to Zig 0.10.0-dev.3027+0e26c6149 (iterate / OpenDirOptions stdlib change)
This breaking change in the Zig stdlib is not available as a nightly build yet, so our CI will
be broken for the next day or so until that becomes available and we can update it.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-17 09:20:48 -07:00
Stephen Gutekanst
bbb276854b all: update to Zig 0.10.0-dev.3027+0e26c6149
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-17 09:20:48 -07:00
Release automation
b8a7c4ba94 gpu-dawn: update to latest binary release 2022-06-27 06:54:48 +00:00
PiergiorgioZagaria
e9bdf86ef9 gpu-dawn: support compiling with stage2 (-fno-stage1) 2022-06-26 23:11:19 -07:00
Release automation
6bfb16554a gpu-dawn: update to latest binary release 2022-05-31 18:14:26 +00:00
Stephen Gutekanst
85ce4b22bd gpu-dawn: update macOS binary check from -gnu to -none ABI
Reflecting the breaking change in latest Zig master.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 10:28:27 -07:00
Release automation
ee7eca280c gpu-dawn: update to latest binary release 2022-05-31 12:46:56 +00:00
Stephen Gutekanst
322ead9218 CI: ZIG_VERSION=0.10.0-dev.2439+c84f5a5f9 ./dev/update-zig.sh
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 05:02:04 -07:00
Stephen Gutekanst
1eab0539d1 CI: correct M1 runner Zig version
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 04:11:43 -07:00
Stephen Gutekanst
c2111e0691 CI: ZIG_VERSION=0.10.0-dev.2439+c84f5a5f9 ./dev/update-zig.sh
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 03:39:45 -07:00
Stephen Gutekanst
539b643267 CI: rename macos-gnu target -> macos-none
Reflecting breaking change in latest version of Zig

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 03:24:34 -07:00
Stephen Gutekanst
3a81754973 CI: ZIG_VERSION=0.10.0-dev.2439+c84f5a5f9 ./dev/update-zig.sh
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 03:24:34 -07:00
Stephen Gutekanst
257d4a92f2 gpu-dawn: CI: always upgrade Zig M1 CI version
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 03:24:34 -07:00
Stephen Gutekanst
0be7b091a5 gpu-dawn: CI: standardize M1 CI name
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 03:24:34 -07:00
Stephen Gutekanst
7ea0d84218 Revert "gpu-dawn: update to latest binary release" (CI broken)
This reverts commit c02424c435.
2022-05-05 12:35:35 -07:00
Release automation
c02424c435 gpu-dawn: update to latest binary release 2022-05-04 19:55:25 +00:00
Lee Cannon
4570838304
Update to latest Zig master (0.10.0-dev.2017+a0a2ce92c) (#261)
* use `@ceil` instead of `std.math.ceil`
* `ChildProcess.init` does not allocate anymore
* update CI zig version
* examples: temporarily switch to fork of zigimg compatible with zig-master

Commands executed:

```
git submodule set-url -- examples/libs/zigimg https://github.com/slimsag/zigimg
git submodule set-branch --branch zig-master -- examples/libs/zigimg
git submodule update --init --remote examples/libs/zigimg
```

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-01 11:44:27 -07:00
Release automation
118a3468ae gpu-dawn: update to latest binary release 2022-04-22 07:47:44 +00:00
Stephen Gutekanst
53e57e8e78
gpu-dawn: update Dawn to latest revision as of 2022-04-21 (#250)
upstream @ c2f9fea56bee11cf573fe90b08a296a38202500b

Includes fix for UB on Linux/Vulkan: https://github.com/hexops/dawn/pull/11

Closes hexops/mach#239

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-21 23:58:21 -07:00
Release automation
538af3e6df gpu-dawn: update to latest binary release 2022-04-21 11:28:09 +00:00
Stephen Gutekanst
c600431244 gpu-dawn: clarify how to build as separate repository
Fixes hexops/mach#203

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-21 03:48:36 -07:00
Stephen Gutekanst
a863bde72f Revert "gpu-dawn: update to latest binary release"
This reverts commit c930f4b913.

Helps hexops/mach#248
2022-04-21 03:41:49 -07:00
Stephen Gutekanst
89c9c6c8e1 CI: correct YAML syntax / regression
Helps hexops/mach#248

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-21 03:41:38 -07:00
Release automation
c930f4b913 gpu-dawn: update to latest binary release 2022-04-21 07:03:52 +00:00
iddev5
bb65083561 CI: dont run aarch64-mac workflow on forks
The workflow uses a self hosted runner which is only available for
hexops/mach* repositories. Without this commit, whenever a fork of mach
or mach-* were pushed, it would queue an aarch64-mac job and then crash
after one day due to no machines being found.
2022-04-19 20:12:22 -07:00
Release automation
c9ac61c1c4 gpu-dawn: update to latest binary release 2022-04-19 04:26:30 +00:00
Stephen Gutekanst
954a5d3cc0 gpu-dawn: fix compilation on Linux
Helps hexops/mach#236

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-18 20:47:23 -07:00
Stephen Gutekanst
a127378b19 gpu-dawn: update Dawn to latest revision as of 2022-04-18
Effectively a redo of hexops/mach#231 where I messed up the submodule update by accident.

Updates Dawn to latest revision as of 2022-04-18 c7b7b6def6

* Followed https://github.com/hexops/dawn/tree/main/mach#updating
* The UB issue should now actually get fixed (once CI builds the binary releases.)
* Verified example runs on macOS.

Helps hexops/mach#221

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-18 11:38:32 -07:00
Stephen Gutekanst
7285fa0f03 gpu-dawn: correct update to latest Dawn revision
In e673e6c5d4 I failed to update the submodule correctly, this
commit fixes that and actually updates us to the latest Dawn revision.

Helps hexops/mach#221

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-18 06:47:00 -07:00
Release automation
3b92e9f2cf gpu-dawn: update to latest binary release 2022-04-18 07:30:07 +00:00
Stephen Gutekanst
e673e6c5d4
gpu-dawn: update Dawn to latest revision as of 2022-04-17 (#231)
Updates Dawn to latest revision as of 2022-04-17 69daaab759

* Followed https://github.com/hexops/dawn/tree/main/mach#updating
* Includes a fix for UB issue https://github.com/hexops/dawn/pull/9 (I will send a CL for this upstream soon.)
* Verified examples run on macOS (other OSes will get built by CI and verified later)

Closes hexops/mach#221

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-17 23:39:34 -07:00
Release automation
2496b50b16 gpu-dawn: update to latest binary release 2022-04-12 19:48:01 +00:00
Isaac Freund
02e357ab44
build: never use pkg-config to link system libraries (#217)
Every library we want to link against is either provided by the Zig
toolchain or part of our SDK. Therefore, using pkg-config to link
against libraries on the host system is never what we intend.

To fix this, use linkSystemLibraryName() everywhere instead of
linkSystemLibrary() as the latter integrates with pkg-config while the
former just passes -lfoo to the zig compiler.

In combination with Zig commit 38d6e1d8a8 fixing an std.build bug,
this change fixes the linking of the necessary X11 libraries on my
x86_64 glibc based Void Linux system.
2022-04-12 12:08:30 -07:00
Release automation
6d8e39a247 gpu-dawn: update to latest binary release 2022-04-09 01:14:08 +00:00
Stephen Gutekanst
ea93eea21f gpu-dawn: use buffered reader (reduce gzip extraction time 76s -> 5.5s)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-08 17:23:12 -07:00
Release automation
5c194cfc07 gpu-dawn: update to latest binary release 2022-04-08 18:45:23 +00:00