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
Silver
786d8181b4
gpu-dawn: fix formatting of .gitmodules
2022-04-08 11:03:00 -07:00
Release automation
3d0be5ad53
gpu-dawn: update to latest binary release
2022-03-31 17:58:16 +00:00
Stephen Gutekanst
f321651c62
gpu-dawn: fix bad merge
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-31 17:18:08 +00:00
Stephen Gutekanst
a361f807a9
gpu-dawn: fix error when curl is unavailable / not installed
...
Fixes hexops/mach#197
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-31 16:57:40 +00:00
Stephen Gutekanst
354df53523
gpu-dawn: expose dawn::native::Adapter->Get as C shim
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-31 16:50:09 +00:00
Release automation
263b9708fd
gpu-dawn: update to latest binary release
2022-03-31 01:35:53 +00:00