mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 07:06:11 +00:00
Migrate more tests from Ignore() to phony-assignment
The `Ignore()` intrinsic is about to be deprecated, so don't use it for testing. Bug: tint:1213 Change-Id: I314ecaeb9a9c337c7b6980189054120a74807ebd Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/67066 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: David Neto <dneto@google.com> Reviewed-by: James Price <jrprice@google.com>
This commit is contained in:
committed by
Tint LUCI CQ
parent
cc7c4f309b
commit
c2fa68e551
@@ -2,5 +2,5 @@ var<private> v : array<i32, 3>;
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,5 @@ static int v[3] = (int[3])0;
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
v;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,6 @@ struct tint_array_wrapper {
|
||||
|
||||
kernel void tint_symbol() {
|
||||
thread tint_array_wrapper tint_symbol_1 = {};
|
||||
(void) tint_symbol_1;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 13
|
||||
; Bound: 12
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
|
||||
@@ -2,5 +2,5 @@ var<private> v : array<i32, 3>;
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -2,5 +2,5 @@ var<private> v : mat2x3<f32>;
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,5 @@ static float2x3 v = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
v;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
using namespace metal;
|
||||
kernel void tint_symbol() {
|
||||
thread float2x3 tint_symbol_1 = float2x3(0.0f);
|
||||
(void) tint_symbol_1;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 12
|
||||
; Bound: 11
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
|
||||
@@ -2,5 +2,5 @@ var<private> v : mat2x3<f32>;
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -2,5 +2,5 @@ var<private> v : i32;
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,5 @@ static int v = 0;
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
v;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
using namespace metal;
|
||||
kernel void tint_symbol() {
|
||||
thread int tint_symbol_1 = 0;
|
||||
(void) tint_symbol_1;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 10
|
||||
; Bound: 9
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
|
||||
@@ -2,5 +2,5 @@ var<private> v : i32;
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -7,5 +7,5 @@ var<private> v : S;
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -7,6 +7,5 @@ static S v = (S)0;
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
v;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@ struct S {
|
||||
|
||||
kernel void tint_symbol() {
|
||||
thread S tint_symbol_1 = {};
|
||||
(void) tint_symbol_1;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 12
|
||||
; Bound: 11
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
|
||||
@@ -7,5 +7,5 @@ var<private> v : S;
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -2,5 +2,5 @@ var<private> v : vec3<i32>;
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,5 @@ static int3 v = int3(0, 0, 0);
|
||||
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
v;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
using namespace metal;
|
||||
kernel void tint_symbol() {
|
||||
thread int3 tint_symbol_1 = 0;
|
||||
(void) tint_symbol_1;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 11
|
||||
; Bound: 10
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
|
||||
@@ -2,5 +2,5 @@ var<private> v : vec3<i32>;
|
||||
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user