mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 23:56:16 +00:00
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:
committed by
Tint LUCI CQ
parent
38f1e9c75c
commit
dbc13af287
@@ -0,0 +1,91 @@
|
||||
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 %buf0 "buf0"
|
||||
OpMemberName %buf0 0 "_GLF_uniform_int_values"
|
||||
OpName %_ ""
|
||||
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 %_GLF_color Location 0
|
||||
%void = OpTypeVoid
|
||||
%8 = OpTypeFunction %void
|
||||
%int = OpTypeInt 32 1
|
||||
%int_1 = OpConstant %int 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
|
||||
%int_3 = OpConstant %int 3
|
||||
%_ptr_Uniform_int = OpTypePointer Uniform %int
|
||||
%bool = OpTypeBool
|
||||
%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 %8
|
||||
%22 = OpLabel
|
||||
%23 = OpBitReverse %int %int_1
|
||||
%24 = OpExtInst %int %1 SMin %int_1 %23
|
||||
%25 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_3
|
||||
%26 = OpLoad %int %25
|
||||
OpBranch %27
|
||||
%27 = OpLabel
|
||||
%28 = OpPhi %int %26 %22 %29 %30
|
||||
%31 = OpPhi %int %int_1 %22 %32 %30
|
||||
%33 = OpISub %int %24 %int_1
|
||||
%34 = OpSLessThanEqual %bool %31 %33
|
||||
OpLoopMerge %35 %30 None
|
||||
OpBranchConditional %34 %36 %35
|
||||
%36 = OpLabel
|
||||
%29 = OpIAdd %int %28 %31
|
||||
%37 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
|
||||
%38 = OpLoad %int %37
|
||||
%39 = OpIEqual %bool %38 %int_1
|
||||
OpSelectionMerge %40 None
|
||||
OpBranchConditional %39 %41 %40
|
||||
%41 = OpLabel
|
||||
OpBranch %35
|
||||
%40 = OpLabel
|
||||
OpBranch %30
|
||||
%30 = OpLabel
|
||||
%32 = OpIAdd %int %31 %int_1
|
||||
OpBranch %27
|
||||
%35 = OpLabel
|
||||
%42 = OpPhi %int %28 %27 %29 %41
|
||||
%43 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
|
||||
%44 = OpLoad %int %43
|
||||
%45 = OpIEqual %bool %42 %44
|
||||
OpSelectionMerge %46 None
|
||||
OpBranchConditional %45 %47 %48
|
||||
%47 = OpLabel
|
||||
%49 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_0
|
||||
%50 = OpLoad %int %49
|
||||
%51 = OpConvertSToF %float %50
|
||||
%52 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
|
||||
%53 = OpLoad %int %52
|
||||
%54 = OpConvertSToF %float %53
|
||||
%55 = OpCompositeConstruct %v4float %51 %54 %54 %51
|
||||
OpStore %_GLF_color %55
|
||||
OpBranch %46
|
||||
%48 = OpLabel
|
||||
%56 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
|
||||
%57 = OpLoad %int %56
|
||||
%58 = OpConvertSToF %float %57
|
||||
%59 = OpCompositeConstruct %v4float %58 %58 %58 %58
|
||||
OpStore %_GLF_color %59
|
||||
OpBranch %46
|
||||
%46 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,88 @@
|
||||
SKIP: FAILED
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
layout(location = 0) out vec4 x_GLF_color_1_1;
|
||||
struct strided_arr {
|
||||
int el;
|
||||
};
|
||||
|
||||
struct buf0 {
|
||||
strided_arr x_GLF_uniform_int_values[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform buf0_1 {
|
||||
strided_arr x_GLF_uniform_int_values[4];
|
||||
} x_5;
|
||||
|
||||
vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
void main_1() {
|
||||
int x_28 = 0;
|
||||
int x_29 = 0;
|
||||
int x_28_phi = 0;
|
||||
int x_31_phi = 0;
|
||||
int x_42_phi = 0;
|
||||
int x_24 = min(1, reversebits(1));
|
||||
int x_26 = x_5.x_GLF_uniform_int_values[3].el;
|
||||
x_28_phi = x_26;
|
||||
x_31_phi = 1;
|
||||
while (true) {
|
||||
int x_32 = 0;
|
||||
x_28 = x_28_phi;
|
||||
int x_31 = x_31_phi;
|
||||
x_42_phi = x_28;
|
||||
if ((x_31 <= (x_24 - 1))) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
x_29 = (x_28 + x_31);
|
||||
int x_38 = x_5.x_GLF_uniform_int_values[0].el;
|
||||
if ((x_38 == 1)) {
|
||||
x_42_phi = x_29;
|
||||
break;
|
||||
}
|
||||
{
|
||||
x_32 = (x_31 + 1);
|
||||
x_28_phi = x_29;
|
||||
x_31_phi = x_32;
|
||||
}
|
||||
}
|
||||
int x_42 = x_42_phi;
|
||||
int x_44 = x_5.x_GLF_uniform_int_values[2].el;
|
||||
if ((x_42 == x_44)) {
|
||||
int x_50 = x_5.x_GLF_uniform_int_values[0].el;
|
||||
float x_51 = float(x_50);
|
||||
int x_53 = x_5.x_GLF_uniform_int_values[1].el;
|
||||
float x_54 = float(x_53);
|
||||
x_GLF_color = vec4(x_51, x_54, x_54, x_51);
|
||||
} else {
|
||||
int x_57 = x_5.x_GLF_uniform_int_values[1].el;
|
||||
float x_58 = float(x_57);
|
||||
x_GLF_color = vec4(x_58, x_58, x_58, x_58);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
struct main_out {
|
||||
vec4 x_GLF_color_1;
|
||||
};
|
||||
|
||||
main_out tint_symbol() {
|
||||
main_1();
|
||||
main_out tint_symbol_1 = main_out(x_GLF_color);
|
||||
return tint_symbol_1;
|
||||
}
|
||||
|
||||
void main() {
|
||||
main_out inner_result = tint_symbol();
|
||||
x_GLF_color_1_1 = inner_result.x_GLF_color_1;
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:24: 'reversebits' : no matching overloaded function found
|
||||
ERROR: 0:24: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
type Arr = @stride(16) array<i32, 4>;
|
||||
|
||||
struct buf0 {
|
||||
x_GLF_uniform_int_values : Arr;
|
||||
};
|
||||
|
||||
@group(0) @binding(0) var<uniform> x_5 : buf0;
|
||||
|
||||
var<private> x_GLF_color : vec4<f32>;
|
||||
|
||||
fn main_1() {
|
||||
var x_28 : i32;
|
||||
var x_29 : i32;
|
||||
var x_28_phi : i32;
|
||||
var x_31_phi : i32;
|
||||
var x_42_phi : i32;
|
||||
let x_24 : i32 = min(1, reverseBits(1));
|
||||
let x_26 : i32 = x_5.x_GLF_uniform_int_values[3];
|
||||
x_28_phi = x_26;
|
||||
x_31_phi = 1;
|
||||
loop {
|
||||
var x_32 : i32;
|
||||
x_28 = x_28_phi;
|
||||
let x_31 : i32 = x_31_phi;
|
||||
x_42_phi = x_28;
|
||||
if ((x_31 <= (x_24 - 1))) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
x_29 = bitcast<i32>((x_28 + bitcast<i32>(x_31)));
|
||||
let x_38 : i32 = x_5.x_GLF_uniform_int_values[0];
|
||||
if ((x_38 == 1)) {
|
||||
x_42_phi = x_29;
|
||||
break;
|
||||
}
|
||||
|
||||
continuing {
|
||||
x_32 = (x_31 + 1);
|
||||
x_28_phi = x_29;
|
||||
x_31_phi = x_32;
|
||||
}
|
||||
}
|
||||
let x_42 : i32 = x_42_phi;
|
||||
let x_44 : i32 = x_5.x_GLF_uniform_int_values[2];
|
||||
if ((x_42 == x_44)) {
|
||||
let x_50 : i32 = x_5.x_GLF_uniform_int_values[0];
|
||||
let x_51 : f32 = f32(x_50);
|
||||
let x_53 : i32 = x_5.x_GLF_uniform_int_values[1];
|
||||
let x_54 : f32 = f32(x_53);
|
||||
x_GLF_color = vec4<f32>(x_51, x_54, x_54, x_51);
|
||||
} else {
|
||||
let x_57 : i32 = x_5.x_GLF_uniform_int_values[1];
|
||||
let x_58 : f32 = f32(x_57);
|
||||
x_GLF_color = vec4<f32>(x_58, x_58, x_58, x_58);
|
||||
}
|
||||
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);
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
SKIP: FAILED
|
||||
|
||||
vk-gl-cts/graphicsfuzz/cov-bitfieldreverse-loop-limit-underflow/0.wgsl:1:13 warning: use of deprecated language feature: the @stride attribute is deprecated; use a larger type if necessary
|
||||
type Arr = @stride(16) array<i32, 4>;
|
||||
^^^^^^
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
layout(location = 0) out vec4 x_GLF_color_1_1;
|
||||
struct tint_padded_array_element {
|
||||
int el;
|
||||
};
|
||||
|
||||
struct buf0 {
|
||||
tint_padded_array_element x_GLF_uniform_int_values[4];
|
||||
};
|
||||
|
||||
layout(binding = 0) uniform buf0_1 {
|
||||
tint_padded_array_element x_GLF_uniform_int_values[4];
|
||||
} x_5;
|
||||
|
||||
vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
void main_1() {
|
||||
int x_28 = 0;
|
||||
int x_29 = 0;
|
||||
int x_28_phi = 0;
|
||||
int x_31_phi = 0;
|
||||
int x_42_phi = 0;
|
||||
int x_24 = min(1, reversebits(1));
|
||||
int x_26 = x_5.x_GLF_uniform_int_values[3].el;
|
||||
x_28_phi = x_26;
|
||||
x_31_phi = 1;
|
||||
while (true) {
|
||||
int x_32 = 0;
|
||||
x_28 = x_28_phi;
|
||||
int x_31 = x_31_phi;
|
||||
x_42_phi = x_28;
|
||||
if ((x_31 <= (x_24 - 1))) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
x_29 = (x_28 + x_31);
|
||||
int x_38 = x_5.x_GLF_uniform_int_values[0].el;
|
||||
if ((x_38 == 1)) {
|
||||
x_42_phi = x_29;
|
||||
break;
|
||||
}
|
||||
{
|
||||
x_32 = (x_31 + 1);
|
||||
x_28_phi = x_29;
|
||||
x_31_phi = x_32;
|
||||
}
|
||||
}
|
||||
int x_42 = x_42_phi;
|
||||
int x_44 = x_5.x_GLF_uniform_int_values[2].el;
|
||||
if ((x_42 == x_44)) {
|
||||
int x_50 = x_5.x_GLF_uniform_int_values[0].el;
|
||||
float x_51 = float(x_50);
|
||||
int x_53 = x_5.x_GLF_uniform_int_values[1].el;
|
||||
float x_54 = float(x_53);
|
||||
x_GLF_color = vec4(x_51, x_54, x_54, x_51);
|
||||
} else {
|
||||
int x_57 = x_5.x_GLF_uniform_int_values[1].el;
|
||||
float x_58 = float(x_57);
|
||||
x_GLF_color = vec4(x_58, x_58, x_58, x_58);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
struct main_out {
|
||||
vec4 x_GLF_color_1;
|
||||
};
|
||||
|
||||
main_out tint_symbol() {
|
||||
main_1();
|
||||
main_out tint_symbol_1 = main_out(x_GLF_color);
|
||||
return tint_symbol_1;
|
||||
}
|
||||
|
||||
void main() {
|
||||
main_out inner_result = tint_symbol();
|
||||
x_GLF_color_1_1 = inner_result.x_GLF_color_1;
|
||||
return;
|
||||
}
|
||||
Error parsing GLSL shader:
|
||||
ERROR: 0:24: 'reversebits' : no matching overloaded function found
|
||||
ERROR: 0:24: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user