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,112 @@
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 %func_ "func("
OpName %i "i"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "_GLF_uniform_int_values"
OpName %_ ""
OpName %_GLF_color "_GLF_color"
OpDecorate %_arr_int_uint_3 ArrayStride 16
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%10 = OpTypeFunction %void
%int = OpTypeInt 32 1
%12 = OpTypeFunction %int
%_ptr_Function_int = OpTypePointer Function %int
%uint = OpTypeInt 32 0
%uint_3 = OpConstant %uint 3
%_arr_int_uint_3 = OpTypeArray %int %uint_3
%buf0 = OpTypeStruct %_arr_int_uint_3
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%int_0 = OpConstant %int 0
%_ptr_Uniform_int = OpTypePointer Uniform %int
%int_1 = OpConstant %int 1
%bool = OpTypeBool
%true = OpConstantTrue %bool
%int_2 = OpConstant %int 2
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%main = OpFunction %void None %10
%26 = OpLabel
%27 = OpFunctionCall %int %func_
%28 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%29 = OpLoad %int %28
%30 = OpIEqual %bool %27 %29
OpSelectionMerge %31 None
OpBranchConditional %30 %32 %33
%32 = OpLabel
%34 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%35 = OpLoad %int %34
%36 = OpConvertSToF %float %35
%37 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%38 = OpLoad %int %37
%39 = OpConvertSToF %float %38
%40 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%41 = OpLoad %int %40
%42 = OpConvertSToF %float %41
%43 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%44 = OpLoad %int %43
%45 = OpConvertSToF %float %44
%46 = OpCompositeConstruct %v4float %36 %39 %42 %45
OpStore %_GLF_color %46
OpBranch %31
%33 = OpLabel
%47 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%48 = OpLoad %int %47
%49 = OpConvertSToF %float %48
%50 = OpCompositeConstruct %v4float %49 %49 %49 %49
OpStore %_GLF_color %50
OpBranch %31
%31 = OpLabel
OpReturn
OpFunctionEnd
%func_ = OpFunction %int None %12
%51 = OpLabel
%i = OpVariable %_ptr_Function_int Function
%52 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%53 = OpLoad %int %52
OpStore %i %53
OpBranch %54
%54 = OpLabel
OpLoopMerge %55 %56 None
OpBranch %57
%57 = OpLabel
%58 = OpLoad %int %i
%59 = OpIAdd %int %58 %int_1
OpStore %i %59
OpSelectionMerge %60 None
OpBranchConditional %true %61 %60
%61 = OpLabel
OpSelectionMerge %62 None
OpBranchConditional %true %63 %62
%63 = OpLabel
%64 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%65 = OpLoad %int %64
OpReturnValue %65
%62 = OpLabel
OpBranch %60
%60 = OpLabel
OpBranch %56
%56 = OpLabel
%66 = OpLoad %int %i
%67 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%68 = OpLoad %int %67
%69 = OpSLessThan %bool %66 %68
OpBranchConditional %69 %54 %55
%55 = OpLabel
%70 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
%71 = OpLoad %int %70
OpReturnValue %71
OpFunctionEnd

View File

@@ -0,0 +1,64 @@
type Arr = @stride(16) array<i32, 3>;
struct buf0 {
x_GLF_uniform_int_values : Arr;
};
@group(0) @binding(0) var<uniform> x_7 : buf0;
var<private> x_GLF_color : vec4<f32>;
fn func_() -> i32 {
var i : i32;
let x_53 : i32 = x_7.x_GLF_uniform_int_values[0];
i = x_53;
loop {
let x_58 : i32 = i;
i = (x_58 + 1);
if (true) {
if (true) {
let x_65 : i32 = x_7.x_GLF_uniform_int_values[2];
return x_65;
}
}
continuing {
let x_66 : i32 = i;
let x_68 : i32 = x_7.x_GLF_uniform_int_values[1];
if ((x_66 < x_68)) {
} else {
break;
}
}
}
let x_71 : i32 = x_7.x_GLF_uniform_int_values[0];
return x_71;
}
fn main_1() {
let x_27 : i32 = func_();
let x_29 : i32 = x_7.x_GLF_uniform_int_values[2];
if ((x_27 == x_29)) {
let x_35 : i32 = x_7.x_GLF_uniform_int_values[2];
let x_38 : i32 = x_7.x_GLF_uniform_int_values[0];
let x_41 : i32 = x_7.x_GLF_uniform_int_values[0];
let x_44 : i32 = x_7.x_GLF_uniform_int_values[2];
x_GLF_color = vec4<f32>(f32(x_35), f32(x_38), f32(x_41), f32(x_44));
} else {
let x_48 : i32 = x_7.x_GLF_uniform_int_values[0];
let x_49 : f32 = f32(x_48);
x_GLF_color = vec4<f32>(x_49, x_49, x_49, x_49);
}
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);
}