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,145 @@
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 320
OpName %main "main"
OpName %m "m"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "_GLF_uniform_int_values"
OpName %_ ""
OpName %a "a"
OpName %buf1 "buf1"
OpMemberName %buf1 0 "_GLF_uniform_float_values"
OpName %__0 ""
OpName %arr "arr"
OpName %v "v"
OpName %_GLF_color "_GLF_color"
OpDecorate %_arr_int_uint_4 ArrayStride 16
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_arr_float_uint_2 ArrayStride 16
OpMemberDecorate %buf1 0 Offset 0
OpDecorate %buf1 Block
OpDecorate %__0 DescriptorSet 0
OpDecorate %__0 Binding 1
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%15 = OpTypeFunction %void
%float = OpTypeFloat 32
%v3float = OpTypeVector %float 3
%mat3v3float = OpTypeMatrix %v3float 3
%_ptr_Function_mat3v3float = OpTypePointer Function %mat3v3float
%int = OpTypeInt 32 1
%uint = OpTypeInt 32 0
%uint_4 = OpConstant %uint 4
%_arr_int_uint_4 = OpTypeArray %int %uint_4
%buf0 = OpTypeStruct %_arr_int_uint_4
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%int_0 = OpConstant %int 0
%_ptr_Uniform_int = OpTypePointer Uniform %int
%float_1 = OpConstant %float 1
%float_0 = OpConstant %float 0
%_ptr_Function_int = OpTypePointer Function %int
%uint_2 = OpConstant %uint 2
%_arr_float_uint_2 = OpTypeArray %float %uint_2
%buf1 = OpTypeStruct %_arr_float_uint_2
%_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1
%__0 = OpVariable %_ptr_Uniform_buf1 Uniform
%_ptr_Uniform_float = OpTypePointer Uniform %float
%_ptr_Function_float = OpTypePointer Function %float
%_arr_v3float_uint_2 = OpTypeArray %v3float %uint_2
%_ptr_Function__arr_v3float_uint_2 = OpTypePointer Function %_arr_v3float_uint_2
%int_1 = OpConstant %int 1
%_ptr_Function_v3float = OpTypePointer Function %v3float
%int_2 = OpConstant %int 2
%bool = OpTypeBool
%v3bool = OpTypeVector %bool 3
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%int_3 = OpConstant %int 3
%main = OpFunction %void None %15
%43 = OpLabel
%m = OpVariable %_ptr_Function_mat3v3float Function
%a = OpVariable %_ptr_Function_int Function
%arr = OpVariable %_ptr_Function__arr_v3float_uint_2 Function
%v = OpVariable %_ptr_Function_v3float Function
%44 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%45 = OpLoad %int %44
%46 = OpConvertSToF %float %45
%47 = OpCompositeConstruct %v3float %46 %float_0 %float_0
%48 = OpCompositeConstruct %v3float %float_0 %46 %float_0
%49 = OpCompositeConstruct %v3float %float_0 %float_0 %46
%50 = OpCompositeConstruct %mat3v3float %47 %48 %49
OpStore %m %50
%51 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%52 = OpLoad %int %51
OpStore %a %52
%53 = OpLoad %int %a
%54 = OpLoad %int %a
%55 = OpAccessChain %_ptr_Uniform_float %__0 %int_0 %int_0
%56 = OpLoad %float %55
%57 = OpAccessChain %_ptr_Function_float %m %53 %54
OpStore %57 %56
%58 = OpAccessChain %_ptr_Function_v3float %m %int_1
%59 = OpLoad %v3float %58
%60 = OpAccessChain %_ptr_Function_v3float %m %int_1
%61 = OpLoad %v3float %60
%62 = OpCompositeConstruct %_arr_v3float_uint_2 %59 %61
OpStore %arr %62
%63 = OpAccessChain %_ptr_Uniform_float %__0 %int_0 %int_1
%64 = OpLoad %float %63
%65 = OpCompositeConstruct %v3float %64 %64 %64
OpStore %v %65
%66 = OpLoad %int %a
%67 = OpAccessChain %_ptr_Function_v3float %arr %66
%68 = OpLoad %v3float %67
%69 = OpLoad %v3float %v
%70 = OpFAdd %v3float %69 %68
OpStore %v %70
%71 = OpLoad %v3float %v
%72 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%73 = OpLoad %int %72
%74 = OpConvertSToF %float %73
%75 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%76 = OpLoad %int %75
%77 = OpConvertSToF %float %76
%78 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%79 = OpLoad %int %78
%80 = OpConvertSToF %float %79
%81 = OpCompositeConstruct %v3float %74 %77 %80
%82 = OpFOrdEqual %v3bool %71 %81
%83 = OpAll %bool %82
OpSelectionMerge %84 None
OpBranchConditional %83 %85 %86
%85 = OpLabel
%87 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%88 = OpLoad %int %87
%89 = OpConvertSToF %float %88
%90 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_3
%91 = OpLoad %int %90
%92 = OpConvertSToF %float %91
%93 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_3
%94 = OpLoad %int %93
%95 = OpConvertSToF %float %94
%96 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%97 = OpLoad %int %96
%98 = OpConvertSToF %float %97
%99 = OpCompositeConstruct %v4float %89 %92 %95 %98
OpStore %_GLF_color %99
OpBranch %84
%86 = OpLabel
%100 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_3
%101 = OpLoad %int %100
%102 = OpConvertSToF %float %101
%103 = OpCompositeConstruct %v4float %102 %102 %102 %102
OpStore %_GLF_color %103
OpBranch %84
%84 = OpLabel
OpReturn
OpFunctionEnd

View File

@@ -0,0 +1,69 @@
type Arr = @stride(16) array<i32, 4>;
struct buf0 {
x_GLF_uniform_int_values : Arr;
};
type Arr_1 = @stride(16) array<f32, 2>;
struct buf1 {
x_GLF_uniform_float_values : Arr_1;
};
@group(0) @binding(0) var<uniform> x_6 : buf0;
@group(0) @binding(1) var<uniform> x_9 : buf1;
var<private> x_GLF_color : vec4<f32>;
fn main_1() {
var m : mat3x3<f32>;
var a : i32;
var arr : array<vec3<f32>, 2>;
var v : vec3<f32>;
let x_45 : i32 = x_6.x_GLF_uniform_int_values[0];
let x_46 : f32 = f32(x_45);
m = mat3x3<f32>(vec3<f32>(x_46, 0.0, 0.0), vec3<f32>(0.0, x_46, 0.0), vec3<f32>(0.0, 0.0, x_46));
let x_52 : i32 = x_6.x_GLF_uniform_int_values[0];
a = x_52;
let x_53 : i32 = a;
let x_54 : i32 = a;
let x_56 : f32 = x_9.x_GLF_uniform_float_values[0];
m[x_53][x_54] = x_56;
let x_59 : vec3<f32> = m[1];
let x_61 : vec3<f32> = m[1];
arr = array<vec3<f32>, 2>(x_59, x_61);
let x_64 : f32 = x_9.x_GLF_uniform_float_values[1];
v = vec3<f32>(x_64, x_64, x_64);
let x_66 : i32 = a;
let x_68 : vec3<f32> = arr[x_66];
let x_69 : vec3<f32> = v;
v = (x_69 + x_68);
let x_71 : vec3<f32> = v;
let x_73 : i32 = x_6.x_GLF_uniform_int_values[1];
let x_76 : i32 = x_6.x_GLF_uniform_int_values[2];
let x_79 : i32 = x_6.x_GLF_uniform_int_values[1];
if (all((x_71 == vec3<f32>(f32(x_73), f32(x_76), f32(x_79))))) {
let x_88 : i32 = x_6.x_GLF_uniform_int_values[0];
let x_91 : i32 = x_6.x_GLF_uniform_int_values[3];
let x_94 : i32 = x_6.x_GLF_uniform_int_values[3];
let x_97 : i32 = x_6.x_GLF_uniform_int_values[0];
x_GLF_color = vec4<f32>(f32(x_88), f32(x_91), f32(x_94), f32(x_97));
} else {
let x_101 : i32 = x_6.x_GLF_uniform_int_values[3];
let x_102 : f32 = f32(x_101);
x_GLF_color = vec4<f32>(x_102, x_102, x_102, x_102);
}
return;
}
struct main_out {
@location(0)
x_GLF_color_1 : vec4<f32>;
};
@stage(fragment)
fn main() -> main_out {
main_1();
return main_out(x_GLF_color);
}