mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-10 22:17:51 +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
@@ -1,5 +1,5 @@
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
var v : array<i32, 3>;
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
int v[3] = (int[3])0;
|
||||
v;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,6 @@ struct tint_array_wrapper {
|
||||
|
||||
kernel void tint_symbol() {
|
||||
tint_array_wrapper v = {};
|
||||
(void) v;
|
||||
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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
var v : array<i32, 3>;
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
var v : mat2x3<f32>;
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
float2x3 v = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
|
||||
v;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
using namespace metal;
|
||||
kernel void tint_symbol() {
|
||||
float2x3 v = float2x3(0.0f);
|
||||
(void) v;
|
||||
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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
var v : mat2x3<f32>;
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
var v : i32;
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
int v = 0;
|
||||
v;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
using namespace metal;
|
||||
kernel void tint_symbol() {
|
||||
int v = 0;
|
||||
(void) v;
|
||||
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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
var v : i32;
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -6,5 +6,5 @@ struct S {
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
var v : S;
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -6,6 +6,5 @@ struct S {
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
S v = (S)0;
|
||||
v;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@ struct S {
|
||||
|
||||
kernel void tint_symbol() {
|
||||
S v = {};
|
||||
(void) v;
|
||||
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
|
||||
|
||||
@@ -6,5 +6,5 @@ struct S {
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
var v : S;
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
var v : vec3<i32>;
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
[numthreads(1, 1, 1)]
|
||||
void main() {
|
||||
int3 v = int3(0, 0, 0);
|
||||
v;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
using namespace metal;
|
||||
kernel void tint_symbol() {
|
||||
int3 v = 0;
|
||||
(void) v;
|
||||
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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[[stage(compute), workgroup_size(1)]]
|
||||
fn main() {
|
||||
var v : vec3<i32>;
|
||||
ignore(v);
|
||||
_ = v;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user