spirv-reader: Set workgroup size, but not specializable

The WorkgroupSize builtin decoration applies to a composite constant.
Because WGSL does not yet support specializable constants for this,
use the *default* values for that SPIR-V spec constant.

Update end-to-end test expectations.

Fixed: tint:503
Change-Id: I012b316d13544ab9282e3276b58906327adab133
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/41960
Auto-Submit: David Neto <dneto@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: David Neto <dneto@google.com>
Reviewed-by: Alan Baker <alanbaker@google.com>
This commit is contained in:
David Neto
2021-06-17 22:40:43 +00:00
committed by Tint LUCI CQ
parent 53829a5e42
commit 17287fcf1a
26 changed files with 617 additions and 39 deletions

View File

@@ -5,7 +5,7 @@ fn main_1() {
return;
}
[[stage(compute)]]
[[stage(compute), workgroup_size(1, 1, 1)]]
fn main() {
main_1();
}

View File

@@ -5,7 +5,7 @@ fn main_1() {
return;
}
[[stage(compute)]]
[[stage(compute), workgroup_size(1, 1, 1)]]
fn main() {
main_1();
}

View File

@@ -5,7 +5,7 @@ fn main_1() {
return;
}
[[stage(compute)]]
[[stage(compute), workgroup_size(1, 1, 1)]]
fn main() {
main_1();
}

View File

@@ -6,7 +6,7 @@ fn main_1() {
return;
}
[[stage(compute)]]
[[stage(compute), workgroup_size(1, 1, 1)]]
fn main() {
main_1();
}

View File

@@ -11,7 +11,7 @@ fn main_1() {
return;
}
[[stage(compute)]]
[[stage(compute), workgroup_size(1, 1, 1)]]
fn main() {
main_1();
}

View File

@@ -6,7 +6,7 @@ fn main_1() {
return;
}
[[stage(compute)]]
[[stage(compute), workgroup_size(1, 1, 1)]]
fn main() {
main_1();
}

View File

@@ -10,7 +10,7 @@ fn main_1() {
return;
}
[[stage(compute)]]
[[stage(compute), workgroup_size(1, 1, 1)]]
fn main() {
main_1();
}

View File

@@ -11,7 +11,7 @@ fn main_1() {
return;
}
[[stage(compute)]]
[[stage(compute), workgroup_size(1, 1, 1)]]
fn main() {
main_1();
}

View File

@@ -6,7 +6,7 @@ fn main_1() {
return;
}
[[stage(compute)]]
[[stage(compute), workgroup_size(1, 1, 1)]]
fn main() {
main_1();
}

View File

@@ -9,7 +9,7 @@ fn main_1() {
return;
}
[[stage(compute)]]
[[stage(compute), workgroup_size(1, 1, 1)]]
fn main() {
main_1();
}

View File

@@ -6,7 +6,7 @@ fn main_1() {
return;
}
[[stage(compute)]]
[[stage(compute), workgroup_size(1, 1, 1)]]
fn main() {
main_1();
}

View File

@@ -8,7 +8,7 @@ fn main_1() {
return;
}
[[stage(compute)]]
[[stage(compute), workgroup_size(1, 1, 1)]]
fn main() {
main_1();
}

View File

@@ -10,7 +10,7 @@ fn main_1() {
return;
}
[[stage(compute)]]
[[stage(compute), workgroup_size(1, 1, 1)]]
fn main() {
main_1();
}