Commit graph

60 commits

Author SHA1 Message Date
Stephen Gutekanst
1b375f70ce Revert "gpu-dawn: update to latest binary release"
This reverts commit 2edfa729ec.
2023-01-20 04:46:27 -07:00
Stephen Gutekanst
0e9746d2e2 gpu-dawn: pin Dawn version using branch name not SHA
so that Wrench can automatically update it (and because branch name is already
versioned)

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-01-19 20:47:25 -07:00
Release automation
2edfa729ec gpu-dawn: update to latest binary release 2023-01-20 02:30:57 +00:00
Release automation
9873ec5c1c gpu-dawn: update to latest binary release 2023-01-20 02:15:28 +00:00
Stephen Gutekanst
988b5c0da8 Revert "gpu-dawn: update to latest version origin/generated-2023-01-19.1674151689"
This reverts commit 858003f6e4.
2023-01-19 18:38:26 -07:00
Wrench[bot]
858003f6e4 gpu-dawn: update to latest version origin/generated-2023-01-19.1674151689
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-01-19 18:34:30 -07:00
Release automation
c694f50295 gpu-dawn: update to latest binary release 2023-01-18 18:15:58 +00:00
Release automation
24132ad4d9 gpu-dawn: update to latest binary release 2023-01-15 16:09:14 +00:00
Ali Chraghi
ac133f52af gpu-dawn: fix {linux,windows}->macos cross-compilation 2023-01-15 08:31:26 -07:00
Release automation
30d614c377 gpu-dawn: update to latest binary release 2023-01-14 19:47:46 +00:00
Ali Chraghi
9f6020e545 {gpu,gpu-dawn}: add X11 linkage back; update to latest WebGPU API 2023-01-14 12:12:00 -07:00
Ali Chraghi
8a15fcd694 gpu-dawn: update for building latest dawn 2023-01-14 12:12:00 -07:00
Wrench[bot]
e4f2f08431
gpu-dawn: update to latest Dawn version (#656)
* gpu-dawn: update to latest version generated-2023-01-12.1673546526

Signed-off-by: Wrench[bot] <wrench@hexops.com>
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
2023-01-14 08:26:48 -07:00
Release automation
340e886e78 gpu-dawn: update to latest binary release 2023-01-12 18:43:13 +00:00
Ali Chraghi
a97a33334c {mach, gpu-dawn}: don't hardcode linux window manager to X11 2023-01-12 10:51:16 -07:00
Ali Chraghi
8a645fa1bf gpu-dawn: fix binary revision 2023-01-12 10:51:16 -07:00
Release automation
772071c095 gpu-dawn: update to latest binary release 2023-01-12 10:04:11 +00:00
Release automation
f990d6761b gpu-dawn: update to latest binary release 2023-01-12 09:36:21 +00:00
Ali Chraghi
9364c8b6c2 gpu-dawn: append -g0 when debug mode is disabled
most binaries size will be reduced to half now
2023-01-12 01:54:48 -07:00
Release automation
779359a519 gpu-dawn: update to latest binary release 2023-01-10 09:35:27 +00:00
Stephen Gutekanst
a750e31d11 Revert "all: build: fix sdkPath for relative @src.file / fix autocompletion with ZLS / IDEs (#661)"
This reverts commit a1fe671db8.

Lue suggested reverting #661 because ZLS worked around the issue of @src
being relative in that environment: https://github.com/zigtools/zls/pull/898

This is not a perfect solution (what zls did seems to be a workaround), but
is good enough for us until Zig gets an official package manager.
2023-01-10 01:57:52 -07:00
Lue
a1fe671db8
all: build: fix sdkPath for relative @src.file / fix autocompletion with ZLS / IDEs (#661)
* all: build: fix sdkPath for relative @src.file

Prior to this commit, the build system heavily assumed that the result
`@src.file` would always be absolute, but this is no longer
guaranteed, likely due to there being no such thing as an "absolute
path" in WASI.

It appears that for normal invocations of `zig build`, it is safe to
assume that `@src.file` is absolute. However, when ZLS uses a custom
`build_runner.zig` to collect build configuration, `@src.file` is
actually relative to the current working directory, at least on my
system. For a while, this led to ZLS completions breaking entirely,
but presently it actually causes ZLS to crash!

The solution is not as simple as using relative `sdkPath` results
as-is, because the build system may attempt to resolve these paths
relative to build root, when the paths are actually relative to the
current working directory.

This leads to a sticky situation: the current working directory is a
runtime concept, but `@src.file` is resolved at compile time. However,
it appears that the build runner does not change current working
directory in between compilation and execution, so it is probably safe
to calculate `sdkPath` using runtime current working directory.

Still, this requires major changes with how `sdkPath` works, since
runtime computation and allocations are required. So pretty much
anything that relied on `sdkPath` being comptime-known has been
refactored in this commit.

The most severe result of this is that, for example, `gpu.pkg` can no
longer be a comptime-known constant: it has to be a runtime function
that takes a `*Builder` and returns a `Pkg`.

This commit deals with usages of `*.pkg` and `sdkPath` within Mach
itself, but projects that depend on Mach such as `mach-examples` will
almost certainly require changes as well.

* all: update README to reflect change in pkg usage

For details on updating your code to use this version, see: 88b1106953

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
2023-01-02 01:23:46 -07:00
Release automation
3e353f0eaf gpu-dawn: update to latest binary release 2023-01-01 10:22:21 +00:00
Release automation
77184877d4 gpu-dawn: update to latest binary release 2022-12-30 20:35:10 +00:00
Release automation
fe590407d2 gpu-dawn: update to latest binary release 2022-12-29 11:20:42 +00:00
Stephen Gutekanst
653f4eb573 Revert "gpu-dawn: update to latest binary release"
This reverts commit 502bfd62e5.
2022-12-27 15:20:12 -07:00
Release automation
502bfd62e5 gpu-dawn: update to latest binary release 2022-12-27 21:49:11 +00:00
Ali Chraghi
f14536f5f0 gpu-dawn: utilize linux-aarch64 binary releases 2022-12-27 12:53:00 -07:00
Stephen Gutekanst
b94bc1fd47 Revert "gpu-dawn: update to latest binary release"
This reverts commit db9a929940.
2022-12-26 00:28:15 -07:00
Release automation
db9a929940 gpu-dawn: update to latest binary release 2022-12-25 21:18:50 +00:00
Stephen Gutekanst
997f38bd0c Revert "gpu-dawn: update to latest binary release"
This reverts commit c3e05651bd.

Our M1 runner is not active right now due to the work going on with
Wrench, so this gpu-dawn version is missing macos-aarch64 builds at
the moment.
2022-12-22 11:01:46 -07:00
Release automation
c3e05651bd gpu-dawn: update to latest binary release 2022-12-19 02:03:53 +00:00
Release automation
864b376d97 gpu-dawn: update to latest binary release 2022-10-28 17:59:03 +00:00
Release automation
2d50c9b648 gpu-dawn: update to latest binary release 2022-10-28 00:51:45 +00:00
Release automation
219f4de460 gpu-dawn: update to latest binary release 2022-10-22 17:00:22 +00:00
Release automation
934590e48a gpu-dawn: update to latest binary release 2022-10-22 15:23:05 +00:00
Release automation
4ff4da0790 gpu-dawn: update to latest binary release 2022-10-21 00:07:09 +00:00
Ali Chraghi
06ff56b36e gpu-dawn: strip debug info for release builds 2022-10-20 16:05:42 -07:00
Release automation
d7d0aa116c gpu-dawn: update to latest binary release 2022-10-18 19:33:45 +00:00
Stephen Gutekanst
802b7cd6b0 gpu-dawn: do not build webgpu.h Dawn symbols in by default
Helps hexops/mach#580

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-18 09:40:25 -07:00
Release automation
1abf5d6c45 gpu-dawn: update to latest binary release 2022-10-17 13:50:58 +00:00
Stephen Gutekanst
d9efca0317 gpu-dawn: do not build webgpu.h symbols in by default
Helps hexops/mach#580

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-17 05:57:34 -07:00
Release automation
1cbef1f7e1 gpu-dawn: update to latest binary release 2022-10-16 16:28:47 +00:00
Stephen Gutekanst
5516060bb0 gpu-dawn: correct cloning of dawn sources
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-16 08:52:00 -07:00
Stephen Gutekanst
dfb62015f6 gpu-dawn: kick out large submodules from tree
This is a much simpler solution for solving hexops/mach#584

1. We continue using submodules everywhere (at least in the Mach codebase.)
2. `dawn` and `DirectXShaderCompiler` (the only two unwiedly submodules that are not needed by default since we use binary builds) are kicked out of the tree.
3. If you specify `-Ddawn-from-source=true`, `zig build` handles cloning those dependencies for you (using `git clone`, not as submodules.)

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-16 08:30:19 -07:00
Stephen Gutekanst
11df0e286b gpu-dawn: correct fmt of binary_version updates
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-16 08:30:19 -07:00
Release automation
d1601fd4ca gpu-dawn: update to latest binary release 2022-10-15 15:10:37 +00:00
Ali Chraghi
82e10f4f28
all: build: thisDir improvements (#570)
* build:all: thisDir improvements

more performant output, usage code reducement and compileError for wrong usage

* glfw: update deprecated code
2022-09-29 08:41:46 -07:00
Ali Chraghi
fcb82345d4
all: build: organize build files and reduce unreachables (#567) 2022-09-25 10:02:51 -07:00
Ali Chraghi
9f6c4bf7b1 build: fix compilation errors
this should make linux CI green
2022-09-20 02:30:45 -07:00