tint->dawn: Shuffle source tree in preperation of merging repos

docs/    -> docs/tint/
fuzzers/ -> src/tint/fuzzers/
samples/ -> src/tint/cmd/
src/     -> src/tint/
test/    -> test/tint/

BUG=tint:1418,tint:1433

Change-Id: Id2aa79f989aef3245b80ef4aa37a27ff16cd700b
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/80482
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
Ryan Harrison
2022-02-21 15:19:07 +00:00
committed by Tint LUCI CQ
parent 38f1e9c75c
commit dbc13af287
12231 changed files with 4897 additions and 4871 deletions

View File

@@ -0,0 +1,5 @@
@stage(compute) @workgroup_size(1)
fn main() {
var v : array<i32, 3>;
_ = v;
}

View File

@@ -0,0 +1,11 @@
#version 310 es
void tint_symbol() {
int v[3] = int[3](0, 0, 0);
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
tint_symbol();
return;
}

View File

@@ -0,0 +1,5 @@
[numthreads(1, 1, 1)]
void main() {
int v[3] = (int[3])0;
return;
}

View File

@@ -0,0 +1,12 @@
#include <metal_stdlib>
using namespace metal;
struct tint_array_wrapper {
int arr[3];
};
kernel void tint_symbol() {
tint_array_wrapper v = {};
return;
}

View File

@@ -0,0 +1,25 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 12
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main "main"
OpName %v "v"
OpDecorate %_arr_int_uint_3 ArrayStride 4
%void = OpTypeVoid
%1 = OpTypeFunction %void
%int = OpTypeInt 32 1
%uint = OpTypeInt 32 0
%uint_3 = OpConstant %uint 3
%_arr_int_uint_3 = OpTypeArray %int %uint_3
%_ptr_Function__arr_int_uint_3 = OpTypePointer Function %_arr_int_uint_3
%11 = OpConstantNull %_arr_int_uint_3
%main = OpFunction %void None %1
%4 = OpLabel
%v = OpVariable %_ptr_Function__arr_int_uint_3 Function %11
OpReturn
OpFunctionEnd

View File

@@ -0,0 +1,5 @@
@stage(compute) @workgroup_size(1)
fn main() {
var v : array<i32, 3>;
_ = v;
}

View File

@@ -0,0 +1,5 @@
@stage(compute) @workgroup_size(1)
fn main() {
var v : mat2x3<f32>;
_ = v;
}

View File

@@ -0,0 +1,11 @@
#version 310 es
void tint_symbol() {
mat2x3 v = mat2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
tint_symbol();
return;
}

View File

@@ -0,0 +1,5 @@
[numthreads(1, 1, 1)]
void main() {
float2x3 v = float2x3(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
return;
}

View File

@@ -0,0 +1,8 @@
#include <metal_stdlib>
using namespace metal;
kernel void tint_symbol() {
float2x3 v = float2x3(0.0f);
return;
}

View File

@@ -0,0 +1,23 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 11
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main "main"
OpName %v "v"
%void = OpTypeVoid
%1 = OpTypeFunction %void
%float = OpTypeFloat 32
%v3float = OpTypeVector %float 3
%mat2v3float = OpTypeMatrix %v3float 2
%_ptr_Function_mat2v3float = OpTypePointer Function %mat2v3float
%10 = OpConstantNull %mat2v3float
%main = OpFunction %void None %1
%4 = OpLabel
%v = OpVariable %_ptr_Function_mat2v3float Function %10
OpReturn
OpFunctionEnd

View File

@@ -0,0 +1,5 @@
@stage(compute) @workgroup_size(1)
fn main() {
var v : mat2x3<f32>;
_ = v;
}

View File

@@ -0,0 +1,5 @@
@stage(compute) @workgroup_size(1)
fn main() {
var v : i32;
_ = v;
}

View File

@@ -0,0 +1,11 @@
#version 310 es
void tint_symbol() {
int v = 0;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
tint_symbol();
return;
}

View File

@@ -0,0 +1,5 @@
[numthreads(1, 1, 1)]
void main() {
int v = 0;
return;
}

View File

@@ -0,0 +1,8 @@
#include <metal_stdlib>
using namespace metal;
kernel void tint_symbol() {
int v = 0;
return;
}

View File

@@ -0,0 +1,21 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 9
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main "main"
OpName %v "v"
%void = OpTypeVoid
%1 = OpTypeFunction %void
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%8 = OpConstantNull %int
%main = OpFunction %void None %1
%4 = OpLabel
%v = OpVariable %_ptr_Function_int Function %8
OpReturn
OpFunctionEnd

View File

@@ -0,0 +1,5 @@
@stage(compute) @workgroup_size(1)
fn main() {
var v : i32;
_ = v;
}

View File

@@ -0,0 +1,10 @@
struct S {
a : i32;
b : f32;
};
@stage(compute) @workgroup_size(1)
fn main() {
var v : S;
_ = v;
}

View File

@@ -0,0 +1,16 @@
#version 310 es
struct S {
int a;
float b;
};
void tint_symbol() {
S v = S(0, 0.0f);
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
tint_symbol();
return;
}

View File

@@ -0,0 +1,10 @@
struct S {
int a;
float b;
};
[numthreads(1, 1, 1)]
void main() {
S v = (S)0;
return;
}

View File

@@ -0,0 +1,13 @@
#include <metal_stdlib>
using namespace metal;
struct S {
int a;
float b;
};
kernel void tint_symbol() {
S v = {};
return;
}

View File

@@ -0,0 +1,28 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 11
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main "main"
OpName %S "S"
OpMemberName %S 0 "a"
OpMemberName %S 1 "b"
OpName %v "v"
OpMemberDecorate %S 0 Offset 0
OpMemberDecorate %S 1 Offset 4
%void = OpTypeVoid
%1 = OpTypeFunction %void
%int = OpTypeInt 32 1
%float = OpTypeFloat 32
%S = OpTypeStruct %int %float
%_ptr_Function_S = OpTypePointer Function %S
%10 = OpConstantNull %S
%main = OpFunction %void None %1
%4 = OpLabel
%v = OpVariable %_ptr_Function_S Function %10
OpReturn
OpFunctionEnd

View File

@@ -0,0 +1,10 @@
struct S {
a : i32;
b : f32;
}
@stage(compute) @workgroup_size(1)
fn main() {
var v : S;
_ = v;
}

View File

@@ -0,0 +1,5 @@
@stage(compute) @workgroup_size(1)
fn main() {
var v : vec3<i32>;
_ = v;
}

View File

@@ -0,0 +1,11 @@
#version 310 es
void tint_symbol() {
ivec3 v = ivec3(0, 0, 0);
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
tint_symbol();
return;
}

View File

@@ -0,0 +1,5 @@
[numthreads(1, 1, 1)]
void main() {
int3 v = int3(0, 0, 0);
return;
}

View File

@@ -0,0 +1,8 @@
#include <metal_stdlib>
using namespace metal;
kernel void tint_symbol() {
int3 v = 0;
return;
}

View File

@@ -0,0 +1,22 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 10
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %main "main"
OpName %v "v"
%void = OpTypeVoid
%1 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v3int = OpTypeVector %int 3
%_ptr_Function_v3int = OpTypePointer Function %v3int
%9 = OpConstantNull %v3int
%main = OpFunction %void None %1
%4 = OpLabel
%v = OpVariable %_ptr_Function_v3int Function %9
OpReturn
OpFunctionEnd

View File

@@ -0,0 +1,5 @@
@stage(compute) @workgroup_size(1)
fn main() {
var v : vec3<i32>;
_ = v;
}