mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 00:17:03 +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,70 @@
|
||||
OpCapability Shader
|
||||
%1 = OpExtInstImport "GLSL.std.450"
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint Fragment %main "main" %_GLF_color
|
||||
OpExecutionMode %main OriginUpperLeft
|
||||
OpSource ESSL 310
|
||||
OpName %main "main"
|
||||
OpName %a "a"
|
||||
OpName %_GLF_color "_GLF_color"
|
||||
OpName %buf0 "buf0"
|
||||
OpMemberName %buf0 0 "_GLF_uniform_float_values"
|
||||
OpName %_ ""
|
||||
OpDecorate %_GLF_color Location 0
|
||||
OpDecorate %_arr_float_uint_3 ArrayStride 16
|
||||
OpMemberDecorate %buf0 0 Offset 0
|
||||
OpDecorate %buf0 Block
|
||||
OpDecorate %_ DescriptorSet 0
|
||||
OpDecorate %_ Binding 0
|
||||
%void = OpTypeVoid
|
||||
%9 = OpTypeFunction %void
|
||||
%float = OpTypeFloat 32
|
||||
%_ptr_Function_float = OpTypePointer Function %float
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%float_1 = OpConstant %float 1
|
||||
%v4float = OpTypeVector %float 4
|
||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
||||
%_GLF_color = OpVariable %_ptr_Output_v4float Output
|
||||
%uint_3 = OpConstant %uint 3
|
||||
%_arr_float_uint_3 = OpTypeArray %float %uint_3
|
||||
%buf0 = OpTypeStruct %_arr_float_uint_3
|
||||
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
|
||||
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
|
||||
%int = OpTypeInt 32 1
|
||||
%int_0 = OpConstant %int 0
|
||||
%int_1 = OpConstant %int 1
|
||||
%_ptr_Uniform_float = OpTypePointer Uniform %float
|
||||
%int_2 = OpConstant %int 2
|
||||
%bool = OpTypeBool
|
||||
%main = OpFunction %void None %9
|
||||
%25 = OpLabel
|
||||
%a = OpVariable %_ptr_Function_float Function
|
||||
%26 = OpBitcast %float %uint_1
|
||||
%27 = OpFMod %float %26 %float_1
|
||||
OpStore %a %27
|
||||
%28 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_1
|
||||
%29 = OpLoad %float %28
|
||||
%30 = OpCompositeConstruct %v4float %29 %29 %29 %29
|
||||
OpStore %_GLF_color %30
|
||||
%31 = OpLoad %float %a
|
||||
%32 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_2
|
||||
%33 = OpLoad %float %32
|
||||
%34 = OpFOrdLessThan %bool %31 %33
|
||||
OpSelectionMerge %35 None
|
||||
OpBranchConditional %34 %36 %35
|
||||
%36 = OpLabel
|
||||
%37 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
|
||||
%38 = OpLoad %float %37
|
||||
%39 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_1
|
||||
%40 = OpLoad %float %39
|
||||
%41 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_1
|
||||
%42 = OpLoad %float %41
|
||||
%43 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
|
||||
%44 = OpLoad %float %43
|
||||
%45 = OpCompositeConstruct %v4float %38 %40 %42 %44
|
||||
OpStore %_GLF_color %45
|
||||
OpBranch %35
|
||||
%35 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -0,0 +1,37 @@
|
||||
type Arr = @stride(16) array<f32, 3>;
|
||||
|
||||
struct buf0 {
|
||||
x_GLF_uniform_float_values : Arr;
|
||||
};
|
||||
|
||||
var<private> x_GLF_color : vec4<f32>;
|
||||
|
||||
@group(0) @binding(0) var<uniform> x_6 : buf0;
|
||||
|
||||
fn main_1() {
|
||||
var a : f32;
|
||||
a = (bitcast<f32>(1u) % 1.0);
|
||||
let x_29 : f32 = x_6.x_GLF_uniform_float_values[1];
|
||||
x_GLF_color = vec4<f32>(x_29, x_29, x_29, x_29);
|
||||
let x_31 : f32 = a;
|
||||
let x_33 : f32 = x_6.x_GLF_uniform_float_values[2];
|
||||
if ((x_31 < x_33)) {
|
||||
let x_38 : f32 = x_6.x_GLF_uniform_float_values[0];
|
||||
let x_40 : f32 = x_6.x_GLF_uniform_float_values[1];
|
||||
let x_42 : f32 = x_6.x_GLF_uniform_float_values[1];
|
||||
let x_44 : f32 = x_6.x_GLF_uniform_float_values[0];
|
||||
x_GLF_color = vec4<f32>(x_38, x_40, x_42, x_44);
|
||||
}
|
||||
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,62 @@
|
||||
SKIP: FAILED
|
||||
|
||||
vk-gl-cts/graphicsfuzz/cov-mod-uint-bits-float/0-opt.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<f32, 3>;
|
||||
^^^^^^
|
||||
|
||||
#version 310 es
|
||||
precision mediump float;
|
||||
|
||||
layout(location = 0) out vec4 x_GLF_color_1_1;
|
||||
struct tint_padded_array_element {
|
||||
float el;
|
||||
};
|
||||
|
||||
struct buf0 {
|
||||
tint_padded_array_element x_GLF_uniform_float_values[3];
|
||||
};
|
||||
|
||||
vec4 x_GLF_color = vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
layout(binding = 0) uniform buf0_1 {
|
||||
tint_padded_array_element x_GLF_uniform_float_values[3];
|
||||
} x_6;
|
||||
|
||||
void main_1() {
|
||||
float a = 0.0f;
|
||||
a = (uintBitsToFloat(1u) % 1.0f);
|
||||
float x_29 = x_6.x_GLF_uniform_float_values[1].el;
|
||||
x_GLF_color = vec4(x_29, x_29, x_29, x_29);
|
||||
float x_31 = a;
|
||||
float x_33 = x_6.x_GLF_uniform_float_values[2].el;
|
||||
if ((x_31 < x_33)) {
|
||||
float x_38 = x_6.x_GLF_uniform_float_values[0].el;
|
||||
float x_40 = x_6.x_GLF_uniform_float_values[1].el;
|
||||
float x_42 = x_6.x_GLF_uniform_float_values[1].el;
|
||||
float x_44 = x_6.x_GLF_uniform_float_values[0].el;
|
||||
x_GLF_color = vec4(x_38, x_40, x_42, x_44);
|
||||
}
|
||||
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:20: '%' : wrong operand types: no operation '%' exists that takes a left-hand operand of type ' global highp float' and a right operand of type ' const float' (or there is no acceptable conversion)
|
||||
ERROR: 0:20: '' : compilation terminated
|
||||
ERROR: 2 compilation errors. No code generated.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user