Commit graph

257 commits

Author SHA1 Message Date
Stephen Gutekanst
028b7d8034 gpu-dawn: CI: upload headers.json + tarball
Fixes hexops/mach#171
Helps hexops/mach#109

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 19:29:58 -07:00
Stephen Gutekanst
262422edde gpu-dawn: remove now-unused spirv-cross compilation
Dawn no longer uses spirv-cross for OpenGL backends:

a52abab38c

Hence, we no longer need to compile it.

Helps #124

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 16:48:33 -07:00
Release automation
983edf7c07 gpu-dawn: update to latest binary release 2022-02-27 23:42:22 +00:00
Stephen Gutekanst
6a227db2a8 gpu-dawn: CI: correct potential race condition pointing to wrong binary release
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 16:20:21 -07:00
Stephen Gutekanst
f44bb0673e gpu-dawn: remove include that is no longer necessary
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 15:51:56 -07:00
Stephen Gutekanst
805de702ee gpu-dawn: rename -Dfrom-source to -Ddawn-from-source
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 15:51:56 -07:00
Stephen Gutekanst
4860240e4e gpu-dawn: if binaries are unavailable, exit with error
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 15:51:56 -07:00
Release automation
54772dd98c gpu-dawn: update to latest binary release 2022-02-27 22:27:06 +00:00
Release automation
2d30e20afd gpu-dawn: update to latest binary release 2022-02-27 22:18:51 +00:00
Stephen Gutekanst
1de670ef9a gpu-dawn: correct binary target triple we download
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 14:59:17 -07:00
Stephen Gutekanst
4ba7172626 gpu-dawn: explicitly target <arch>-macos.12
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 14:53:53 -07:00
Stephen Gutekanst
00ec15a4b0 gpu-dawn: correct macOS binary availability check
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 14:39:21 -07:00
Stephen Gutekanst
f48a040446 gpu-dawn: log when binaries are not available for clarity
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 14:38:40 -07:00
Release automation
636ce5becd gpu-dawn: update to latest binary release 2022-02-27 21:13:53 +00:00
Stephen Gutekanst
85dbc406ff gpu-dawn: abide by GitHub release filename restrictions
GitHub releases impose [some weird restrictions on uploaded filenames](https://twitter.com/slimsag/status/1498025997987315713),
so we now abide by those.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 13:48:16 -07:00
Release automation
d5682a2cd3 gpu-dawn: update to latest binary release 2022-02-27 07:55:16 +00:00
Release automation
d58c947e23 gpu-dawn: update to latest binary release 2022-02-27 07:49:13 +00:00
Release automation
3897d52e26 gpu-dawn: update to latest binary release 2022-02-27 07:35:30 +00:00
Stephen Gutekanst
a74aa06764 gpu-dawn: CI: build release/debug binaries in parallel
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 00:27:14 -07:00
Stephen Gutekanst
b749e23fe2 gpu-dawn: include full target triple in binary releases
Fixes hexops/mach#170

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-27 00:02:26 -07:00
Stephen Gutekanst
51f14596db gpu-dawn: correct kernel32.GetModuleHandleW call
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-26 23:34:17 -07:00
Stephen Gutekanst
daadef1e7d gpu-dawn: example: reuse framebuffer size
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-26 23:34:17 -07:00
Stephen Gutekanst
8ce8429cb3 gpu-dawn: correctly build Surface API for X11
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-26 23:34:17 -07:00
Stephen Gutekanst
57fb84c569 gpu-dawn: use new WGPUSurface API in example
Not yet used by OpenGL backends as Dawn does not support the new API there yet.

Fixes hexops/mach#121

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-26 23:34:17 -07:00
Stephen Gutekanst
bab338d160 gpu-dawn: port newer createSurfaceForWindow API
Helps hexops/mach#121

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-26 23:34:17 -07:00
Stephen Gutekanst
0925dc2e24 gpu-dawn: note legacy methods replaced by new Surface API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-26 23:34:17 -07:00
Stephen Gutekanst
bb8a8c3631 gpu-dawn: add ability to get C WGPUInstance
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-26 23:34:17 -07:00
Stephen Gutekanst
412023ef1e gpu-dawn: cleanup hello_triangle example
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-26 23:34:17 -07:00
Release automation
ef2288309e gpu-dawn: update to latest binary release 2022-02-21 03:51:09 +00:00
Stephen Gutekanst
69b2551378 gpu-dawn: add NO_ENSURE_SUBMODULES=true env var for development
If you're working on changes to source files in `gpu-dawn/libs/dawn/`,
it's annoying to have the build system constantly reset your revision to
the desired one.

`NO_ENSURE_SUBMODULES=true` will now disable this behavior.

Helps hexops/mach#86

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-20 20:08:42 -07:00
Stephen Gutekanst
1bc6a7e829 gpu-dawn: remove source division workaround
I've fixed the issue in Zig upstream: ziglang/zig#10950

Helps hexops/mach#86

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-20 20:08:42 -07:00
Stephen Gutekanst
e451e4acb8 gpu-dawn: use cross-platform process.getEnvVarOwned
Helps hexops/mach#86

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-20 20:08:42 -07:00
Stephen Gutekanst
918bc61187 gpu-dawn: clarify desktop_gl support
Helps hexops/mach#86

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-20 20:08:42 -07:00
Stephen Gutekanst
53e85b8dac gpu-dawn: prevent abseil from using pthread on Windows
Helps hexops/mach#86

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-20 20:08:42 -07:00
Release automation
d32cc38a57 gpu-dawn: update to latest binary release 2022-02-18 09:13:36 +00:00
Stephen Gutekanst
19790baf98 gpu-dawn: fix x86_64-linux build
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-18 01:36:37 -07:00
Stephen Gutekanst
83f3f3452e gpu-dawn: update to generated-2022-02-17
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-18 01:36:37 -07:00
Stephen Gutekanst
0b5b832549 gpu-dawn: update build.zig for generated-2022-02-17
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-18 01:36:37 -07:00
Stephen Gutekanst
86d7c7ce11 gpu-dawn: update libs/dawn to generated-2022-02-17
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-18 01:36:37 -07:00
Release automation
83aceaae8d gpu-dawn: update to latest binary release 2022-02-13 20:26:22 +00:00
Stephen Gutekanst
ca200ff5d5 gpu-dawn: fix linux build (duplicate symbol main)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 19:39:37 +00:00
Stephen Gutekanst
d23147b653 gpu-dawn: CI: publish release after linux+x86 macos instead of m1
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 02:11:51 -07:00
Stephen Gutekanst
0d6443e8de gpu-dawn: divide sources into <30,000 characters per zig invocation
On Windows, process creation has a limit on the length of process
arguments and so without limiting the length of our `zig` compiler
invocations we would fail to compile there.

This should probably be fixed in the Zig build system itself, not worked
around here, but it works for now.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 02:08:04 -07:00
Release automation
f4c1007265 gpu-dawn: update to latest binary release 2022-02-13 09:06:01 +00:00
Stephen Gutekanst
39109c9389 gpu-dawn: use source scanning for dawn_common target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Stephen Gutekanst
8f593e25d2 gpu-dawn: use source scanning for dawn_native_vulkan target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Stephen Gutekanst
be61c31b57 gpu-dawn: use source scanning for dawn_native_opengl target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Stephen Gutekanst
3cd8fcaa59 gpu-dawn: use source scanning for dawn_native_d3d12 target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Stephen Gutekanst
fc1f37ef2f gpu-dawn: use source scanning for dawn_native_metal target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00
Stephen Gutekanst
e15c91a8b7 gpu-dawn: use source scanning for dawn_native_gen target
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-13 01:58:17 -07:00