mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 16:37:08 +00:00
test: Remove many expected files
For these tests, we only really care that we can successfully consume them and generate valid output for each backend. Having the expected files in the tree generates significant churn for any change to how we generate backend code, which makes it hard to inspect diffs. Change-Id: Ic98c248081144c0fb1791f1303eaf6d459548e3d Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/62720 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: James Price <jrprice@google.com>
This commit is contained in:
committed by
Tint LUCI CQ
parent
568136dd10
commit
87cce20f67
@@ -1,67 +0,0 @@
|
||||
static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
cbuffer cbuffer_x_5 : register(b0, space0) {
|
||||
uint4 x_5[1];
|
||||
};
|
||||
|
||||
void main_1() {
|
||||
bool GLF_live12c5 = false;
|
||||
x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
while (true) {
|
||||
const float x_31 = asfloat(x_5[0].y);
|
||||
if ((x_31 < 0.0f)) {
|
||||
GLF_live12c5 = false;
|
||||
if (GLF_live12c5) {
|
||||
{
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
} else {
|
||||
{
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
{
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
{
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
struct main_out {
|
||||
float4 x_GLF_color_1;
|
||||
};
|
||||
struct tint_symbol {
|
||||
float4 x_GLF_color_1 : SV_Target0;
|
||||
};
|
||||
|
||||
main_out main_inner() {
|
||||
main_1();
|
||||
const main_out tint_symbol_2 = {x_GLF_color};
|
||||
return tint_symbol_2;
|
||||
}
|
||||
|
||||
tint_symbol main() {
|
||||
const main_out inner_result = main_inner();
|
||||
tint_symbol wrapper_result = (tint_symbol)0;
|
||||
wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1;
|
||||
return wrapper_result;
|
||||
}
|
||||
@@ -1,71 +0,0 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct buf0 {
|
||||
/* 0x0000 */ float2 injectionSwitch;
|
||||
};
|
||||
struct main_out {
|
||||
float4 x_GLF_color_1;
|
||||
};
|
||||
struct tint_symbol_1 {
|
||||
float4 x_GLF_color_1 [[color(0)]];
|
||||
};
|
||||
|
||||
void main_1(constant buf0& x_5, thread float4* const tint_symbol_3) {
|
||||
bool GLF_live12c5 = false;
|
||||
*(tint_symbol_3) = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
while (true) {
|
||||
float const x_31 = x_5.injectionSwitch.y;
|
||||
if ((x_31 < 0.0f)) {
|
||||
GLF_live12c5 = false;
|
||||
bool const x_35 = GLF_live12c5;
|
||||
if (x_35) {
|
||||
{
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
} else {
|
||||
{
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
{
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
{
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
main_out tint_symbol_inner(constant buf0& x_5, thread float4* const tint_symbol_4) {
|
||||
main_1(x_5, tint_symbol_4);
|
||||
main_out const tint_symbol_2 = {.x_GLF_color_1=*(tint_symbol_4)};
|
||||
return tint_symbol_2;
|
||||
}
|
||||
|
||||
fragment tint_symbol_1 tint_symbol(constant buf0& x_5 [[buffer(0)]]) {
|
||||
thread float4 tint_symbol_5 = 0.0f;
|
||||
main_out const inner_result = tint_symbol_inner(x_5, &(tint_symbol_5));
|
||||
tint_symbol_1 wrapper_result = {};
|
||||
wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
@@ -1,99 +0,0 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 52
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint Fragment %main "main" %x_GLF_color_1_1
|
||||
OpExecutionMode %main OriginUpperLeft
|
||||
OpName %x_GLF_color_1_1 "x_GLF_color_1_1"
|
||||
OpName %x_GLF_color "x_GLF_color"
|
||||
OpName %buf0 "buf0"
|
||||
OpMemberName %buf0 0 "injectionSwitch"
|
||||
OpName %x_5 "x_5"
|
||||
OpName %main_1 "main_1"
|
||||
OpName %GLF_live12c5 "GLF_live12c5"
|
||||
OpName %main_out "main_out"
|
||||
OpMemberName %main_out 0 "x_GLF_color_1"
|
||||
OpName %main_inner "main_inner"
|
||||
OpName %main "main"
|
||||
OpDecorate %x_GLF_color_1_1 Location 0
|
||||
OpDecorate %buf0 Block
|
||||
OpMemberDecorate %buf0 0 Offset 0
|
||||
OpDecorate %x_5 NonWritable
|
||||
OpDecorate %x_5 DescriptorSet 0
|
||||
OpDecorate %x_5 Binding 0
|
||||
OpMemberDecorate %main_out 0 Offset 0
|
||||
%float = OpTypeFloat 32
|
||||
%v4float = OpTypeVector %float 4
|
||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
||||
%5 = OpConstantNull %v4float
|
||||
%x_GLF_color_1_1 = OpVariable %_ptr_Output_v4float Output %5
|
||||
%_ptr_Private_v4float = OpTypePointer Private %v4float
|
||||
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %5
|
||||
%v2float = OpTypeVector %float 2
|
||||
%buf0 = OpTypeStruct %v2float
|
||||
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
|
||||
%x_5 = OpVariable %_ptr_Uniform_buf0 Uniform
|
||||
%void = OpTypeVoid
|
||||
%12 = OpTypeFunction %void
|
||||
%bool = OpTypeBool
|
||||
%_ptr_Function_bool = OpTypePointer Function %bool
|
||||
%19 = OpConstantNull %bool
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_0 = OpConstant %float 0
|
||||
%22 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%_ptr_Uniform_float = OpTypePointer Uniform %float
|
||||
%false = OpConstantFalse %bool
|
||||
%main_out = OpTypeStruct %v4float
|
||||
%41 = OpTypeFunction %main_out
|
||||
%main_1 = OpFunction %void None %12
|
||||
%15 = OpLabel
|
||||
%GLF_live12c5 = OpVariable %_ptr_Function_bool Function %19
|
||||
OpStore %x_GLF_color %22
|
||||
OpBranch %23
|
||||
%23 = OpLabel
|
||||
OpLoopMerge %24 %25 None
|
||||
OpBranch %26
|
||||
%26 = OpLabel
|
||||
%31 = OpAccessChain %_ptr_Uniform_float %x_5 %uint_0 %uint_1
|
||||
%32 = OpLoad %float %31
|
||||
%33 = OpFOrdLessThan %bool %32 %float_0
|
||||
OpSelectionMerge %34 None
|
||||
OpBranchConditional %33 %35 %34
|
||||
%35 = OpLabel
|
||||
OpStore %GLF_live12c5 %false
|
||||
%37 = OpLoad %bool %GLF_live12c5
|
||||
OpSelectionMerge %38 None
|
||||
OpBranchConditional %37 %39 %40
|
||||
%39 = OpLabel
|
||||
OpBranch %25
|
||||
%40 = OpLabel
|
||||
OpBranch %25
|
||||
%38 = OpLabel
|
||||
OpBranch %25
|
||||
%34 = OpLabel
|
||||
OpBranch %24
|
||||
%25 = OpLabel
|
||||
OpBranchConditional %false %23 %24
|
||||
%24 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main_inner = OpFunction %main_out None %41
|
||||
%44 = OpLabel
|
||||
%45 = OpFunctionCall %void %main_1
|
||||
%46 = OpLoad %v4float %x_GLF_color
|
||||
%47 = OpCompositeConstruct %main_out %46
|
||||
OpReturnValue %47
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %12
|
||||
%49 = OpLabel
|
||||
%50 = OpFunctionCall %main_out %main_inner
|
||||
%51 = OpCompositeExtract %v4float %50 0
|
||||
OpStore %x_GLF_color_1_1 %51
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,46 +0,0 @@
|
||||
[[block]]
|
||||
struct buf0 {
|
||||
injectionSwitch : vec2<f32>;
|
||||
};
|
||||
|
||||
var<private> x_GLF_color : vec4<f32>;
|
||||
|
||||
[[group(0), binding(0)]] var<uniform> x_5 : buf0;
|
||||
|
||||
fn main_1() {
|
||||
var GLF_live12c5 : bool;
|
||||
x_GLF_color = vec4<f32>(1.0, 0.0, 0.0, 1.0);
|
||||
loop {
|
||||
let x_31 : f32 = x_5.injectionSwitch.y;
|
||||
if ((x_31 < 0.0)) {
|
||||
GLF_live12c5 = false;
|
||||
let x_35 : bool = GLF_live12c5;
|
||||
if (x_35) {
|
||||
continue;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
|
||||
continuing {
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
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);
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
cbuffer cbuffer_x_5 : register(b0, space0) {
|
||||
uint4 x_5[1];
|
||||
};
|
||||
|
||||
void main_1() {
|
||||
bool GLF_live12c5 = false;
|
||||
x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
while (true) {
|
||||
const float x_31 = asfloat(x_5[0].y);
|
||||
if ((x_31 < 0.0f)) {
|
||||
GLF_live12c5 = false;
|
||||
if (GLF_live12c5) {
|
||||
{
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
} else {
|
||||
{
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
{
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
{
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
struct main_out {
|
||||
float4 x_GLF_color_1;
|
||||
};
|
||||
struct tint_symbol {
|
||||
float4 x_GLF_color_1 : SV_Target0;
|
||||
};
|
||||
|
||||
main_out main_inner() {
|
||||
main_1();
|
||||
const main_out tint_symbol_2 = {x_GLF_color};
|
||||
return tint_symbol_2;
|
||||
}
|
||||
|
||||
tint_symbol main() {
|
||||
const main_out inner_result = main_inner();
|
||||
tint_symbol wrapper_result = (tint_symbol)0;
|
||||
wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1;
|
||||
return wrapper_result;
|
||||
}
|
||||
@@ -1,71 +0,0 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct buf0 {
|
||||
/* 0x0000 */ float2 injectionSwitch;
|
||||
};
|
||||
struct main_out {
|
||||
float4 x_GLF_color_1;
|
||||
};
|
||||
struct tint_symbol_1 {
|
||||
float4 x_GLF_color_1 [[color(0)]];
|
||||
};
|
||||
|
||||
void main_1(constant buf0& x_5, thread float4* const tint_symbol_3) {
|
||||
bool GLF_live12c5 = false;
|
||||
*(tint_symbol_3) = float4(1.0f, 0.0f, 0.0f, 1.0f);
|
||||
while (true) {
|
||||
float const x_31 = x_5.injectionSwitch.y;
|
||||
if ((x_31 < 0.0f)) {
|
||||
GLF_live12c5 = false;
|
||||
bool const x_35 = GLF_live12c5;
|
||||
if (x_35) {
|
||||
{
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
} else {
|
||||
{
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
{
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
{
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
main_out tint_symbol_inner(constant buf0& x_5, thread float4* const tint_symbol_4) {
|
||||
main_1(x_5, tint_symbol_4);
|
||||
main_out const tint_symbol_2 = {.x_GLF_color_1=*(tint_symbol_4)};
|
||||
return tint_symbol_2;
|
||||
}
|
||||
|
||||
fragment tint_symbol_1 tint_symbol(constant buf0& x_5 [[buffer(0)]]) {
|
||||
thread float4 tint_symbol_5 = 0.0f;
|
||||
main_out const inner_result = tint_symbol_inner(x_5, &(tint_symbol_5));
|
||||
tint_symbol_1 wrapper_result = {};
|
||||
wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1;
|
||||
return wrapper_result;
|
||||
}
|
||||
|
||||
@@ -1,99 +0,0 @@
|
||||
; SPIR-V
|
||||
; Version: 1.3
|
||||
; Generator: Google Tint Compiler; 0
|
||||
; Bound: 52
|
||||
; Schema: 0
|
||||
OpCapability Shader
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint Fragment %main "main" %x_GLF_color_1_1
|
||||
OpExecutionMode %main OriginUpperLeft
|
||||
OpName %x_GLF_color_1_1 "x_GLF_color_1_1"
|
||||
OpName %x_GLF_color "x_GLF_color"
|
||||
OpName %buf0 "buf0"
|
||||
OpMemberName %buf0 0 "injectionSwitch"
|
||||
OpName %x_5 "x_5"
|
||||
OpName %main_1 "main_1"
|
||||
OpName %GLF_live12c5 "GLF_live12c5"
|
||||
OpName %main_out "main_out"
|
||||
OpMemberName %main_out 0 "x_GLF_color_1"
|
||||
OpName %main_inner "main_inner"
|
||||
OpName %main "main"
|
||||
OpDecorate %x_GLF_color_1_1 Location 0
|
||||
OpDecorate %buf0 Block
|
||||
OpMemberDecorate %buf0 0 Offset 0
|
||||
OpDecorate %x_5 NonWritable
|
||||
OpDecorate %x_5 DescriptorSet 0
|
||||
OpDecorate %x_5 Binding 0
|
||||
OpMemberDecorate %main_out 0 Offset 0
|
||||
%float = OpTypeFloat 32
|
||||
%v4float = OpTypeVector %float 4
|
||||
%_ptr_Output_v4float = OpTypePointer Output %v4float
|
||||
%5 = OpConstantNull %v4float
|
||||
%x_GLF_color_1_1 = OpVariable %_ptr_Output_v4float Output %5
|
||||
%_ptr_Private_v4float = OpTypePointer Private %v4float
|
||||
%x_GLF_color = OpVariable %_ptr_Private_v4float Private %5
|
||||
%v2float = OpTypeVector %float 2
|
||||
%buf0 = OpTypeStruct %v2float
|
||||
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
|
||||
%x_5 = OpVariable %_ptr_Uniform_buf0 Uniform
|
||||
%void = OpTypeVoid
|
||||
%12 = OpTypeFunction %void
|
||||
%bool = OpTypeBool
|
||||
%_ptr_Function_bool = OpTypePointer Function %bool
|
||||
%19 = OpConstantNull %bool
|
||||
%float_1 = OpConstant %float 1
|
||||
%float_0 = OpConstant %float 0
|
||||
%22 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_1
|
||||
%uint = OpTypeInt 32 0
|
||||
%uint_0 = OpConstant %uint 0
|
||||
%uint_1 = OpConstant %uint 1
|
||||
%_ptr_Uniform_float = OpTypePointer Uniform %float
|
||||
%false = OpConstantFalse %bool
|
||||
%main_out = OpTypeStruct %v4float
|
||||
%41 = OpTypeFunction %main_out
|
||||
%main_1 = OpFunction %void None %12
|
||||
%15 = OpLabel
|
||||
%GLF_live12c5 = OpVariable %_ptr_Function_bool Function %19
|
||||
OpStore %x_GLF_color %22
|
||||
OpBranch %23
|
||||
%23 = OpLabel
|
||||
OpLoopMerge %24 %25 None
|
||||
OpBranch %26
|
||||
%26 = OpLabel
|
||||
%31 = OpAccessChain %_ptr_Uniform_float %x_5 %uint_0 %uint_1
|
||||
%32 = OpLoad %float %31
|
||||
%33 = OpFOrdLessThan %bool %32 %float_0
|
||||
OpSelectionMerge %34 None
|
||||
OpBranchConditional %33 %35 %34
|
||||
%35 = OpLabel
|
||||
OpStore %GLF_live12c5 %false
|
||||
%37 = OpLoad %bool %GLF_live12c5
|
||||
OpSelectionMerge %38 None
|
||||
OpBranchConditional %37 %39 %40
|
||||
%39 = OpLabel
|
||||
OpBranch %25
|
||||
%40 = OpLabel
|
||||
OpBranch %25
|
||||
%38 = OpLabel
|
||||
OpBranch %25
|
||||
%34 = OpLabel
|
||||
OpBranch %24
|
||||
%25 = OpLabel
|
||||
OpBranchConditional %false %23 %24
|
||||
%24 = OpLabel
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%main_inner = OpFunction %main_out None %41
|
||||
%44 = OpLabel
|
||||
%45 = OpFunctionCall %void %main_1
|
||||
%46 = OpLoad %v4float %x_GLF_color
|
||||
%47 = OpCompositeConstruct %main_out %46
|
||||
OpReturnValue %47
|
||||
OpFunctionEnd
|
||||
%main = OpFunction %void None %12
|
||||
%49 = OpLabel
|
||||
%50 = OpFunctionCall %main_out %main_inner
|
||||
%51 = OpCompositeExtract %v4float %50 0
|
||||
OpStore %x_GLF_color_1_1 %51
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
@@ -1,46 +0,0 @@
|
||||
[[block]]
|
||||
struct buf0 {
|
||||
injectionSwitch : vec2<f32>;
|
||||
};
|
||||
|
||||
var<private> x_GLF_color : vec4<f32>;
|
||||
|
||||
[[group(0), binding(0)]] var<uniform> x_5 : buf0;
|
||||
|
||||
fn main_1() {
|
||||
var GLF_live12c5 : bool;
|
||||
x_GLF_color = vec4<f32>(1.0, 0.0, 0.0, 1.0);
|
||||
loop {
|
||||
let x_31 : f32 = x_5.injectionSwitch.y;
|
||||
if ((x_31 < 0.0)) {
|
||||
GLF_live12c5 = false;
|
||||
let x_35 : bool = GLF_live12c5;
|
||||
if (x_35) {
|
||||
continue;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
|
||||
continuing {
|
||||
if (false) {
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user