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,13 @@
struct S {
v: vec3<f32>;
};
var<private> P : S;
fn f() {
P.v = vec3<f32>(1.0, 2.0, 3.0);
P.v.x = 1.0;
P.v.y = 2.0;
P.v.z = 3.0;
}

View File

@@ -0,0 +1,18 @@
#version 310 es
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void unused_entry_point() {
return;
}
struct S {
vec3 v;
};
S P = S(vec3(0.0f, 0.0f, 0.0f));
void f() {
P.v = vec3(1.0f, 2.0f, 3.0f);
P.v.x = 1.0f;
P.v.y = 2.0f;
P.v.z = 3.0f;
}

View File

@@ -0,0 +1,17 @@
[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
struct S {
float3 v;
};
static S P = (S)0;
void f() {
P.v = float3(1.0f, 2.0f, 3.0f);
P.v.x = 1.0f;
P.v.y = 2.0f;
P.v.z = 3.0f;
}

View File

@@ -0,0 +1,14 @@
#include <metal_stdlib>
using namespace metal;
struct S {
float3 v;
};
void f(thread S* const tint_symbol) {
(*(tint_symbol)).v = float3(1.0f, 2.0f, 3.0f);
(*(tint_symbol)).v[0] = 1.0f;
(*(tint_symbol)).v[1] = 2.0f;
(*(tint_symbol)).v[2] = 3.0f;
}

View File

@@ -0,0 +1,49 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 27
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %S "S"
OpMemberName %S 0 "v"
OpName %P "P"
OpName %unused_entry_point "unused_entry_point"
OpName %f "f"
OpMemberDecorate %S 0 Offset 0
%float = OpTypeFloat 32
%v3float = OpTypeVector %float 3
%S = OpTypeStruct %v3float
%_ptr_Private_S = OpTypePointer Private %S
%6 = OpConstantNull %S
%P = OpVariable %_ptr_Private_S Private %6
%void = OpTypeVoid
%7 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Private_v3float = OpTypePointer Private %v3float
%float_1 = OpConstant %float 1
%float_2 = OpConstant %float 2
%float_3 = OpConstant %float 3
%20 = OpConstantComposite %v3float %float_1 %float_2 %float_3
%_ptr_Private_float = OpTypePointer Private %float
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%unused_entry_point = OpFunction %void None %7
%10 = OpLabel
OpReturn
OpFunctionEnd
%f = OpFunction %void None %7
%12 = OpLabel
%16 = OpAccessChain %_ptr_Private_v3float %P %uint_0
OpStore %16 %20
%22 = OpAccessChain %_ptr_Private_float %P %uint_0 %uint_0
OpStore %22 %float_1
%24 = OpAccessChain %_ptr_Private_float %P %uint_0 %uint_1
OpStore %24 %float_2
%26 = OpAccessChain %_ptr_Private_float %P %uint_0 %uint_2
OpStore %26 %float_3
OpReturn
OpFunctionEnd

View File

@@ -0,0 +1,12 @@
struct S {
v : vec3<f32>;
}
var<private> P : S;
fn f() {
P.v = vec3<f32>(1.0, 2.0, 3.0);
P.v.x = 1.0;
P.v.y = 2.0;
P.v.z = 3.0;
}

View File

@@ -0,0 +1,13 @@
struct S {
v: vec3<i32>;
};
var<private> P : S;
fn f() {
P.v = vec3<i32>(1, 2, 3);
P.v.x = 1;
P.v.y = 2;
P.v.z = 3;
}

View File

@@ -0,0 +1,18 @@
#version 310 es
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void unused_entry_point() {
return;
}
struct S {
ivec3 v;
};
S P = S(ivec3(0, 0, 0));
void f() {
P.v = ivec3(1, 2, 3);
P.v.x = 1;
P.v.y = 2;
P.v.z = 3;
}

View File

@@ -0,0 +1,17 @@
[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
struct S {
int3 v;
};
static S P = (S)0;
void f() {
P.v = int3(1, 2, 3);
P.v.x = 1;
P.v.y = 2;
P.v.z = 3;
}

View File

@@ -0,0 +1,14 @@
#include <metal_stdlib>
using namespace metal;
struct S {
int3 v;
};
void f(thread S* const tint_symbol) {
(*(tint_symbol)).v = int3(1, 2, 3);
(*(tint_symbol)).v[0] = 1;
(*(tint_symbol)).v[1] = 2;
(*(tint_symbol)).v[2] = 3;
}

View File

@@ -0,0 +1,49 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 27
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %S "S"
OpMemberName %S 0 "v"
OpName %P "P"
OpName %unused_entry_point "unused_entry_point"
OpName %f "f"
OpMemberDecorate %S 0 Offset 0
%int = OpTypeInt 32 1
%v3int = OpTypeVector %int 3
%S = OpTypeStruct %v3int
%_ptr_Private_S = OpTypePointer Private %S
%6 = OpConstantNull %S
%P = OpVariable %_ptr_Private_S Private %6
%void = OpTypeVoid
%7 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Private_v3int = OpTypePointer Private %v3int
%int_1 = OpConstant %int 1
%int_2 = OpConstant %int 2
%int_3 = OpConstant %int 3
%20 = OpConstantComposite %v3int %int_1 %int_2 %int_3
%_ptr_Private_int = OpTypePointer Private %int
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%unused_entry_point = OpFunction %void None %7
%10 = OpLabel
OpReturn
OpFunctionEnd
%f = OpFunction %void None %7
%12 = OpLabel
%16 = OpAccessChain %_ptr_Private_v3int %P %uint_0
OpStore %16 %20
%22 = OpAccessChain %_ptr_Private_int %P %uint_0 %uint_0
OpStore %22 %int_1
%24 = OpAccessChain %_ptr_Private_int %P %uint_0 %uint_1
OpStore %24 %int_2
%26 = OpAccessChain %_ptr_Private_int %P %uint_0 %uint_2
OpStore %26 %int_3
OpReturn
OpFunctionEnd

View File

@@ -0,0 +1,12 @@
struct S {
v : vec3<i32>;
}
var<private> P : S;
fn f() {
P.v = vec3<i32>(1, 2, 3);
P.v.x = 1;
P.v.y = 2;
P.v.z = 3;
}

View File

@@ -0,0 +1,13 @@
struct S {
v: vec3<u32>;
};
var<private> P : S;
fn f() {
P.v = vec3<u32>(1u, 2u, 3u);
P.v.x = 1u;
P.v.y = 2u;
P.v.z = 3u;
}

View File

@@ -0,0 +1,18 @@
#version 310 es
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void unused_entry_point() {
return;
}
struct S {
uvec3 v;
};
S P = S(uvec3(0u, 0u, 0u));
void f() {
P.v = uvec3(1u, 2u, 3u);
P.v.x = 1u;
P.v.y = 2u;
P.v.z = 3u;
}

View File

@@ -0,0 +1,17 @@
[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
struct S {
uint3 v;
};
static S P = (S)0;
void f() {
P.v = uint3(1u, 2u, 3u);
P.v.x = 1u;
P.v.y = 2u;
P.v.z = 3u;
}

View File

@@ -0,0 +1,14 @@
#include <metal_stdlib>
using namespace metal;
struct S {
uint3 v;
};
void f(thread S* const tint_symbol) {
(*(tint_symbol)).v = uint3(1u, 2u, 3u);
(*(tint_symbol)).v[0] = 1u;
(*(tint_symbol)).v[1] = 2u;
(*(tint_symbol)).v[2] = 3u;
}

View File

@@ -0,0 +1,46 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 24
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %S "S"
OpMemberName %S 0 "v"
OpName %P "P"
OpName %unused_entry_point "unused_entry_point"
OpName %f "f"
OpMemberDecorate %S 0 Offset 0
%uint = OpTypeInt 32 0
%v3uint = OpTypeVector %uint 3
%S = OpTypeStruct %v3uint
%_ptr_Private_S = OpTypePointer Private %S
%6 = OpConstantNull %S
%P = OpVariable %_ptr_Private_S Private %6
%void = OpTypeVoid
%7 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_Private_v3uint = OpTypePointer Private %v3uint
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%uint_3 = OpConstant %uint 3
%19 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
%_ptr_Private_uint = OpTypePointer Private %uint
%unused_entry_point = OpFunction %void None %7
%10 = OpLabel
OpReturn
OpFunctionEnd
%f = OpFunction %void None %7
%12 = OpLabel
%15 = OpAccessChain %_ptr_Private_v3uint %P %uint_0
OpStore %15 %19
%21 = OpAccessChain %_ptr_Private_uint %P %uint_0 %uint_0
OpStore %21 %uint_1
%22 = OpAccessChain %_ptr_Private_uint %P %uint_0 %uint_1
OpStore %22 %uint_2
%23 = OpAccessChain %_ptr_Private_uint %P %uint_0 %uint_2
OpStore %23 %uint_3
OpReturn
OpFunctionEnd

View File

@@ -0,0 +1,12 @@
struct S {
v : vec3<u32>;
}
var<private> P : S;
fn f() {
P.v = vec3<u32>(1u, 2u, 3u);
P.v.x = 1u;
P.v.y = 2u;
P.v.z = 3u;
}