Commit graph

88 commits

Author SHA1 Message Date
Stephen Gutekanst
39959dd615 Revert "gpu-dawn: update to latest binary release"
This reverts commit 958664bb0b.
2023-06-05 08:44:51 -07:00
Release automation
958664bb0b gpu-dawn: update to latest binary release 2023-06-04 20:09:07 +00:00
Stephen Gutekanst
4d4b3f1ec0 Revert "gpu-dawn: update to latest binary release"
This reverts commit aac0cd6b35.
2023-06-01 09:50:06 -07:00
Stephen Gutekanst
e051314a75 Revert "gpu-dawn: update to latest binary release"
This reverts commit ada4f4134c.
2023-06-01 09:49:54 -07:00
Release automation
ada4f4134c gpu-dawn: update to latest binary release 2023-06-01 06:23:10 +00:00
Release automation
aac0cd6b35 gpu-dawn: update to latest binary release 2023-06-01 05:54:02 +00:00
Stephen Gutekanst
61b6f29bea Revert "gpu-dawn: update to latest binary release"
This reverts commit 0ab84711f1.
2023-05-28 20:43:32 -07:00
Release automation
0ab84711f1 gpu-dawn: update to latest binary release 2023-05-29 03:06:55 +00:00
Stephen Gutekanst
98e580b030 all: update to latest std.fs.openIterableDir API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-05-28 17:23:23 -07:00
Stephen Gutekanst
ebda6409c0 Revert "gpu-dawn: update to latest binary release"
This reverts commit fbdc4dc242.
2023-05-25 18:29:16 -07:00
Release automation
fbdc4dc242 gpu-dawn: update to latest binary release 2023-05-26 00:56:57 +00:00
Stephen Gutekanst
c6f6a4fa3a gpu-dawn: update to latest std.json API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-05-25 16:55:05 -07:00
Stephen Gutekanst
8fbc36999f Revert "gpu-dawn: update to latest binary release"
This reverts commit af010d99f7.
2023-04-28 18:21:05 -07:00
Release automation
af010d99f7 gpu-dawn: update to latest binary release 2023-04-29 00:27:50 +00:00
Stephen Gutekanst
366abd1b26 Revert "gpu-dawn: update to latest binary release"
This reverts commit bc8692d62a.
2023-04-27 07:26:06 -07:00
Release automation
bc8692d62a gpu-dawn: update to latest binary release 2023-04-25 23:58:18 +00:00
Vivek Roy
ff0258f27d all: use std.Build.installArtifact 2023-04-25 15:06:11 -07:00
Release automation
64b19d559e gpu-dawn: update to latest binary release 2023-03-25 07:06:12 +00:00
Release automation
1e3c0667ba gpu-dawn: update to latest binary release 2023-03-16 17:53:05 +00:00
Release automation
b5f0669bda gpu-dawn: update to latest binary release 2023-03-05 19:53:43 +00:00
Release automation
6ebeb5ea85 gpu-dawn: update to latest binary release 2023-02-13 14:29:03 +00:00
Release automation
f334bd1519 gpu-dawn: update to latest binary release 2023-02-13 05:37:22 +00:00
Stephen Gutekanst
f23108fd27 gpu-dawn: fix linux build
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-02-12 20:17:02 -07:00
Stephen Gutekanst
0f71895634 gpu-dawn: update to latest Zig build API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-02-12 10:05:03 -07:00
Lue
35ae2d7ac7 gpu-dawn: fix git error when fetching Dawn source
Previously, when the gpu-dawn SDK attempted to fetch Dawn sources, Git
failed with this error:

```
fatal: ambiguous argument 'generated-*': unknown revision or path not
in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
```

This caused the whole build to fail as the gpu-dawn SDK is unable to
check out the intended revision of the generated Dawn sources. This
commit fixes the issue by using `git checkout --force` instead of
`git reset --hard`, which works because you can checkout to a detached
commit hash (used by DirectXShaderCompiler, for example) as well as an
actual branch.

The alternative would be to do `git reset --hard origin/generated-*`
rather than `git reset --hard generated-*`, but that would require
modifying Wrench unlike this solution.
2023-01-31 23:14:30 -07:00
Wrench[bot]
79a16f2ad7 gpu-dawn: update to latest version origin/generated-2023-01-28.1674950134
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-01-28 17:02:29 -07:00
Kim Shrier
18ab6c12c1
gpu-dawn: update gzip decompression to use latest stdlib API (#696) 2023-01-28 16:47:55 -07:00
Wrench[bot]
5267233347 gpu-dawn: update to latest version origin/generated-2023-01-20.1674251751
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2023-01-20 16:20:36 -07:00
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