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,180 @@
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %gl_FragCoord %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 310
OpName %main "main"
OpName %data "data"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "_GLF_uniform_float_values"
OpName %_ ""
OpName %b "b"
OpName %buf1 "buf1"
OpMemberName %buf1 0 "_GLF_uniform_int_values"
OpName %__0 ""
OpName %y "y"
OpName %gl_FragCoord "gl_FragCoord"
OpName %i "i"
OpName %_GLF_color "_GLF_color"
OpDecorate %_arr_float_uint_1 ArrayStride 16
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_arr_int_uint_4 ArrayStride 16
OpMemberDecorate %buf1 0 Offset 0
OpDecorate %buf1 Block
OpDecorate %__0 DescriptorSet 0
OpDecorate %__0 Binding 1
OpDecorate %gl_FragCoord BuiltIn FragCoord
OpDecorate %_GLF_color Location 0
%void = OpTypeVoid
%16 = OpTypeFunction %void
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%uint = OpTypeInt 32 0
%uint_2 = OpConstant %uint 2
%_arr_v4float_uint_2 = OpTypeArray %v4float %uint_2
%_ptr_Function__arr_v4float_uint_2 = OpTypePointer Function %_arr_v4float_uint_2
%uint_1 = OpConstant %uint 1
%_arr_float_uint_1 = OpTypeArray %float %uint_1
%buf0 = OpTypeStruct %_arr_float_uint_1
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%_ptr_Function_int = OpTypePointer Function %int
%uint_4 = OpConstant %uint 4
%_arr_int_uint_4 = OpTypeArray %int %uint_4
%buf1 = OpTypeStruct %_arr_int_uint_4
%_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1
%__0 = OpVariable %_ptr_Uniform_buf1 Uniform
%int_1 = OpConstant %int 1
%_ptr_Uniform_int = OpTypePointer Uniform %int
%_ptr_Input_v4float = OpTypePointer Input %v4float
%gl_FragCoord = OpVariable %_ptr_Input_v4float Input
%_ptr_Input_float = OpTypePointer Input %float
%bool = OpTypeBool
%int_2 = OpConstant %int 2
%int_3 = OpConstant %int 3
%_ptr_Function_v4float = OpTypePointer Function %v4float
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%main = OpFunction %void None %16
%40 = OpLabel
%data = OpVariable %_ptr_Function__arr_v4float_uint_2 Function
%b = OpVariable %_ptr_Function_int Function
%y = OpVariable %_ptr_Function_int Function
%i = OpVariable %_ptr_Function_int Function
%41 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
%42 = OpLoad %float %41
%43 = OpCompositeConstruct %v4float %42 %42 %42 %42
%44 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
%45 = OpLoad %float %44
%46 = OpCompositeConstruct %v4float %45 %45 %45 %45
%47 = OpCompositeConstruct %_arr_v4float_uint_2 %43 %46
OpStore %data %47
%48 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1
%49 = OpLoad %int %48
OpStore %b %49
%50 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_1
%51 = OpLoad %float %50
%52 = OpConvertFToS %int %51
%53 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1
%54 = OpLoad %int %53
%55 = OpAccessChain %_ptr_Input_float %gl_FragCoord %uint_1
%56 = OpLoad %float %55
%57 = OpConvertFToS %int %56
%58 = OpBitwiseOr %int %54 %57
%59 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1
%60 = OpLoad %int %59
%61 = OpExtInst %int %1 SClamp %52 %58 %60
OpStore %y %61
%62 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1
%63 = OpLoad %int %62
OpStore %i %63
OpBranch %64
%64 = OpLabel
OpLoopMerge %65 %66 None
OpBranch %67
%67 = OpLabel
%68 = OpLoad %int %i
%69 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_0
%70 = OpLoad %int %69
%71 = OpSLessThan %bool %68 %70
OpBranchConditional %71 %72 %65
%72 = OpLabel
%73 = OpLoad %int %b
%74 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_0
%75 = OpLoad %int %74
%76 = OpSGreaterThan %bool %73 %75
OpSelectionMerge %77 None
OpBranchConditional %76 %78 %77
%78 = OpLabel
%79 = OpLoad %int %y
%80 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1
%81 = OpLoad %int %80
%82 = OpSGreaterThan %bool %79 %81
OpBranch %77
%77 = OpLabel
%83 = OpPhi %bool %76 %72 %82 %78
OpSelectionMerge %84 None
OpBranchConditional %83 %85 %84
%85 = OpLabel
OpBranch %65
%84 = OpLabel
%86 = OpLoad %int %b
%87 = OpIAdd %int %86 %int_1
OpStore %b %87
OpBranch %66
%66 = OpLabel
%88 = OpLoad %int %i
%89 = OpIAdd %int %88 %int_1
OpStore %i %89
OpBranch %64
%65 = OpLabel
%90 = OpLoad %int %b
%91 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_0
%92 = OpLoad %int %91
%93 = OpIEqual %bool %90 %92
OpSelectionMerge %94 None
OpBranchConditional %93 %95 %94
%95 = OpLabel
%96 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_2
%97 = OpLoad %int %96
%98 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1
%99 = OpLoad %int %98
%100 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_3
%101 = OpLoad %int %100
%102 = OpExtInst %int %1 SClamp %97 %99 %101
%103 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1
%104 = OpLoad %int %103
%105 = OpConvertSToF %float %104
%106 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_2
%107 = OpLoad %int %106
%108 = OpConvertSToF %float %107
%109 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_2
%110 = OpLoad %int %109
%111 = OpConvertSToF %float %110
%112 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1
%113 = OpLoad %int %112
%114 = OpConvertSToF %float %113
%115 = OpCompositeConstruct %v4float %105 %108 %111 %114
%116 = OpAccessChain %_ptr_Function_v4float %data %102
OpStore %116 %115
OpBranch %94
%94 = OpLabel
%117 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_1
%118 = OpLoad %int %117
%119 = OpAccessChain %_ptr_Function_v4float %data %118
%120 = OpLoad %v4float %119
%121 = OpCompositeExtract %float %120 0
%122 = OpCompositeExtract %float %120 1
%123 = OpCompositeExtract %float %120 2
%124 = OpCompositeExtract %float %120 3
%125 = OpCompositeConstruct %v4float %121 %122 %123 %124
OpStore %_GLF_color %125
OpReturn
OpFunctionEnd

View File

@@ -0,0 +1,3 @@
SKIP: FAILED
exit status 0xc00000fd

View File

@@ -0,0 +1,97 @@
type Arr = @stride(16) array<f32, 1>;
struct buf0 {
x_GLF_uniform_float_values : Arr;
};
type Arr_1 = @stride(16) array<i32, 4>;
struct buf1 {
x_GLF_uniform_int_values : Arr_1;
};
@group(0) @binding(0) var<uniform> x_7 : buf0;
@group(0) @binding(1) var<uniform> x_10 : buf1;
var<private> gl_FragCoord : vec4<f32>;
var<private> x_GLF_color : vec4<f32>;
fn main_1() {
var data : array<vec4<f32>, 2>;
var b : i32;
var y : i32;
var i : i32;
let x_42 : f32 = x_7.x_GLF_uniform_float_values[0];
let x_45 : f32 = x_7.x_GLF_uniform_float_values[0];
data = array<vec4<f32>, 2>(vec4<f32>(x_42, x_42, x_42, x_42), vec4<f32>(x_45, x_45, x_45, x_45));
let x_49 : i32 = x_10.x_GLF_uniform_int_values[1];
b = x_49;
let x_51 : f32 = gl_FragCoord.y;
let x_54 : i32 = x_10.x_GLF_uniform_int_values[1];
let x_56 : f32 = gl_FragCoord.y;
let x_60 : i32 = x_10.x_GLF_uniform_int_values[1];
y = clamp(i32(x_51), (x_54 | i32(x_56)), x_60);
let x_63 : i32 = x_10.x_GLF_uniform_int_values[1];
i = x_63;
loop {
var x_82 : bool;
var x_83_phi : bool;
let x_68 : i32 = i;
let x_70 : i32 = x_10.x_GLF_uniform_int_values[0];
if ((x_68 < x_70)) {
} else {
break;
}
let x_73 : i32 = b;
let x_75 : i32 = x_10.x_GLF_uniform_int_values[0];
let x_76 : bool = (x_73 > x_75);
x_83_phi = x_76;
if (x_76) {
let x_79 : i32 = y;
let x_81 : i32 = x_10.x_GLF_uniform_int_values[1];
x_82 = (x_79 > x_81);
x_83_phi = x_82;
}
let x_83 : bool = x_83_phi;
if (x_83) {
break;
}
let x_86 : i32 = b;
b = (x_86 + 1);
continuing {
let x_88 : i32 = i;
i = (x_88 + 1);
}
}
let x_90 : i32 = b;
let x_92 : i32 = x_10.x_GLF_uniform_int_values[0];
if ((x_90 == x_92)) {
let x_97 : i32 = x_10.x_GLF_uniform_int_values[2];
let x_99 : i32 = x_10.x_GLF_uniform_int_values[1];
let x_101 : i32 = x_10.x_GLF_uniform_int_values[3];
let x_104 : i32 = x_10.x_GLF_uniform_int_values[1];
let x_107 : i32 = x_10.x_GLF_uniform_int_values[2];
let x_110 : i32 = x_10.x_GLF_uniform_int_values[2];
let x_113 : i32 = x_10.x_GLF_uniform_int_values[1];
data[clamp(x_97, x_99, x_101)] = vec4<f32>(f32(x_104), f32(x_107), f32(x_110), f32(x_113));
}
let x_118 : i32 = x_10.x_GLF_uniform_int_values[1];
let x_120 : vec4<f32> = data[x_118];
x_GLF_color = vec4<f32>(x_120.x, x_120.y, x_120.z, x_120.w);
return;
}
struct main_out {
@location(0)
x_GLF_color_1 : vec4<f32>;
};
@stage(fragment)
fn main(@builtin(position) gl_FragCoord_param : vec4<f32>) -> main_out {
gl_FragCoord = gl_FragCoord_param;
main_1();
return main_out(x_GLF_color);
}

View File

@@ -0,0 +1,3 @@
SKIP: FAILED
exit status 0xc00000fd