Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,13 @@ jobs:
tier: 2
kind: wgpu-only

# NetBSD
- name: NetBSD x86_64
os: ubuntu-24.04
target: x86_64-unknown-netbsd
tier: 2
kind: wgpu-only

# Android
- name: Android aarch64
os: ubuntu-24.04
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: Docs

on:
pull_request:
paths:
- ".github/workflows/docs.yml"
push:
branches:
- trunk
branches-ignore: [
# Renovate branches are always PRs, so they will be covered
# by the pull_request event.
"renovate/**",
# Branches with the `gh-readonly-queue` prefix are used by the
# merge queue, so they are already covered by the `merge_group` event.
"gh-readonly-queue/**",
]
pull_request:
merge_group:

env:
# This is the MSRV used by `wgpu` itself and all surrounding infrastructure.
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/lazy.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# Lazy jobs running on trunk post merges.
# Non-critical jobs
name: Lazy

on:
pull_request:
paths:
- ".github/workflows/lazy.yml"
push:
branches: [trunk]
branches-ignore: [
# Renovate branches are always PRs, so they will be covered
# by the pull_request event.
"renovate/**",
# Branches with the `gh-readonly-queue` prefix are used by the
# merge queue, so they are already covered by the `merge_group` event.
"gh-readonly-queue/**",
]
pull_request:
merge_group:

env:
CARGO_INCREMENTAL: false
Expand Down Expand Up @@ -96,12 +103,8 @@ jobs:
run: |
cargo build --release -p naga-cli

- name: Install `spirv-tools`
run: |
cd naga
wget -q https://storage.googleapis.com/spirv-tools/artifacts/prod/graphics_shader_compiler/spirv-tools/linux-clang-release/continuous/1489/20210629-121459/install.tgz
tar zxf install.tgz
./install/bin/spirv-as --version
- name: Install Vulkan SDK
uses: ./.github/actions/install-vulkan-sdk

- name: Compile `spv` from `spvasm`
run: |
Expand All @@ -111,7 +114,7 @@ jobs:
find "./spvasm" -name '*.spvasm' | while read fname;
do
echo "Convert to spv with spirv-as: $fname"
../install/bin/spirv-as --target-env spv1.3 $(realpath ${fname}) -o ./spv/$(basename ${fname}).spv
spirv-as --target-env spv1.3 $(realpath ${fname}) -o ./spv/$(basename ${fname}).spv
done;

- name: Validate `spv` and generate `wgsl`
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: Publish

on:
pull_request:
paths:
- ".github/workflows/publish.yml"
push:
branches:
- trunk
branches-ignore: [
# Renovate branches are always PRs, so they will be covered
# by the pull_request event.
"renovate/**",
# Branches with the `gh-readonly-queue` prefix are used by the
# merge queue, so they are already covered by the `merge_group` event.
"gh-readonly-queue/**",
]
pull_request:
merge_group:

env:
CARGO_INCREMENTAL: false
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Bottom level categories:

#### General

- BREAKING: Migrated from the `maxInterStageShaderComponents` limit to `maxInterStageShaderVariables`, which changes validation in a way that should not affect most programs. This follows the latest changes of the WebGPU spec. By @ErichDonGubler in [#8652](https://github.com/gfx-rs/wgpu/pull/8652).
- BREAKING: Migrated from the `maxInterStageShaderComponents` limit to `maxInterStageShaderVariables`, which changes validation in a way that should not affect most programs. This follows the latest changes of the WebGPU spec. By @ErichDonGubler in [#8652](https://github.com/gfx-rs/wgpu/pull/8652), [#8792](https://github.com/gfx-rs/wgpu/pull/8792).
- Fixed validation of the texture format in GPUDepthStencilState when neither depth nor stencil is actually enabled. By @andyleiserson in [#8766](https://github.com/gfx-rs/wgpu/pull/8766).

#### GLES
Expand Down
10 changes: 10 additions & 0 deletions cts_runner/test.lst
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,16 @@ webgpu:api,validation,render_pipeline,depth_stencil_state:stencil_write:*
webgpu:api,validation,render_pipeline,inter_stage:max_shader_variable_location:isAsync=false;*
//FAIL: webgpu:api,validation,render_pipeline,inter_stage:max_shader_variable_location:isAsync=true;*
// https://github.com/gfx-rs/wgpu/pull/8712
webgpu:api,validation,render_pipeline,inter_stage:max_variables_count,input:isAsync=false;numVariablesDelta=0;useExtraBuiltinInputs=false
webgpu:api,validation,render_pipeline,inter_stage:max_variables_count,input:isAsync=false;numVariablesDelta=0;useExtraBuiltinInputs=true
webgpu:api,validation,render_pipeline,inter_stage:max_variables_count,input:isAsync=false;numVariablesDelta=1;useExtraBuiltinInputs=false
//FAIL: webgpu:api,validation,render_pipeline,inter_stage:max_variables_count,input:isAsync=false;numVariablesDelta=-1;useExtraBuiltinInputs=true
// https://github.com/gpuweb/cts/pull/4546
webgpu:api,validation,render_pipeline,inter_stage:max_variables_count,input:isAsync=true;numVariablesDelta=0;useExtraBuiltinInputs=false
webgpu:api,validation,render_pipeline,inter_stage:max_variables_count,input:isAsync=true;numVariablesDelta=0;useExtraBuiltinInputs=true
webgpu:api,validation,render_pipeline,inter_stage:max_variables_count,input:isAsync=true;numVariablesDelta=1;useExtraBuiltinInputs=false
//FAIL: webgpu:api,validation,render_pipeline,inter_stage:max_variables_count,input:isAsync=true;numVariablesDelta=-1;useExtraBuiltinInputs=true
// https://github.com/gpuweb/cts/pull/4546
webgpu:api,validation,render_pipeline,inter_stage:max_variables_count,output:*
webgpu:api,validation,resource_usages,buffer,in_pass_encoder:*
// FAIL: 2 other cases in resource_usages,texture,in_pass_encoder. https://github.com/gfx-rs/wgpu/issues/3126
Expand Down
13 changes: 12 additions & 1 deletion deno_webgpu/byow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::ffi::c_void;
target_os = "linux",
target_os = "macos",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd"
))]
use std::ptr::NonNull;
Expand All @@ -29,6 +30,7 @@ pub enum ByowError {
target_os = "windows",
target_os = "linux",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd",
)))]
#[class(type)]
Expand Down Expand Up @@ -56,6 +58,7 @@ pub enum ByowError {
#[cfg(any(
target_os = "linux",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd"
))]
#[class(type)]
Expand All @@ -65,6 +68,7 @@ pub enum ByowError {
target_os = "windows",
target_os = "linux",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd"
))]
#[class(type)]
Expand All @@ -73,6 +77,7 @@ pub enum ByowError {
#[cfg(any(
target_os = "linux",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd"
))]
#[class(type)]
Expand Down Expand Up @@ -322,7 +327,12 @@ fn raw_window(
Ok((win_handle, display_handle))
}

#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd"))]
#[cfg(any(
target_os = "linux",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd"
))]
fn raw_window(
system: UnsafeWindowSurfaceSystem,
window: *const c_void,
Expand Down Expand Up @@ -364,6 +374,7 @@ fn raw_window(
target_os = "windows",
target_os = "linux",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd",
)))]
fn raw_window(
Expand Down
Loading
Loading