From fad0a051c3994c1d7b0c300d611c444139648cf0 Mon Sep 17 00:00:00 2001 From: John Stiles Date: Tue, 25 Jan 2022 13:46:30 -0500 Subject: [PATCH] Remove old test outputs. The test input was removed at http://review.skia.org/497742. Change-Id: I7b30f2f70cd0812b900c9c67b70e742b3d96930a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/499574 Auto-Submit: John Stiles Reviewed-by: Ethan Nicholas Commit-Queue: Ethan Nicholas --- tests/sksl/shared/MatrixScalarSplat.asm.frag | 102 ------------------- tests/sksl/shared/MatrixScalarSplat.glsl | 12 --- tests/sksl/shared/MatrixScalarSplat.metal | 23 ----- 3 files changed, 137 deletions(-) delete mode 100644 tests/sksl/shared/MatrixScalarSplat.asm.frag delete mode 100644 tests/sksl/shared/MatrixScalarSplat.glsl delete mode 100644 tests/sksl/shared/MatrixScalarSplat.metal diff --git a/tests/sksl/shared/MatrixScalarSplat.asm.frag b/tests/sksl/shared/MatrixScalarSplat.asm.frag deleted file mode 100644 index 7dcab6e5d0..0000000000 --- a/tests/sksl/shared/MatrixScalarSplat.asm.frag +++ /dev/null @@ -1,102 +0,0 @@ -OpCapability Shader -%1 = OpExtInstImport "GLSL.std.450" -OpMemoryModel Logical GLSL450 -OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor %sk_Clockwise -OpExecutionMode %_entrypoint_v OriginUpperLeft -OpName %sk_FragColor "sk_FragColor" -OpName %sk_Clockwise "sk_Clockwise" -OpName %_UniformBuffer "_UniformBuffer" -OpMemberName %_UniformBuffer 0 "colorGreen" -OpMemberName %_UniformBuffer 1 "colorRed" -OpName %_entrypoint_v "_entrypoint_v" -OpName %test_half_b "test_half_b" -OpName %ok "ok" -OpName %main "main" -OpName %_0_ok "_0_ok" -OpDecorate %sk_FragColor RelaxedPrecision -OpDecorate %sk_FragColor Location 0 -OpDecorate %sk_FragColor Index 0 -OpDecorate %sk_Clockwise BuiltIn FrontFacing -OpMemberDecorate %_UniformBuffer 0 Offset 0 -OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision -OpMemberDecorate %_UniformBuffer 1 Offset 16 -OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision -OpDecorate %_UniformBuffer Block -OpDecorate %11 Binding 0 -OpDecorate %11 DescriptorSet 0 -OpDecorate %29 RelaxedPrecision -OpDecorate %35 RelaxedPrecision -OpDecorate %49 RelaxedPrecision -OpDecorate %52 RelaxedPrecision -OpDecorate %53 RelaxedPrecision -%float = OpTypeFloat 32 -%v4float = OpTypeVector %float 4 -%_ptr_Output_v4float = OpTypePointer Output %v4float -%sk_FragColor = OpVariable %_ptr_Output_v4float Output -%bool = OpTypeBool -%_ptr_Input_bool = OpTypePointer Input %bool -%sk_Clockwise = OpVariable %_ptr_Input_bool Input -%_UniformBuffer = OpTypeStruct %v4float %v4float -%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer -%11 = OpVariable %_ptr_Uniform__UniformBuffer Uniform -%void = OpTypeVoid -%16 = OpTypeFunction %void -%v2float = OpTypeVector %float 2 -%float_0 = OpConstant %float 0 -%20 = OpConstantComposite %v2float %float_0 %float_0 -%_ptr_Function_v2float = OpTypePointer Function %v2float -%24 = OpTypeFunction %bool -%_ptr_Function_bool = OpTypePointer Function %bool -%true = OpConstantTrue %bool -%30 = OpTypeFunction %v4float %_ptr_Function_v2float -%false = OpConstantFalse %bool -%_ptr_Function_v4float = OpTypePointer Function %v4float -%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float -%int = OpTypeInt 32 1 -%int_0 = OpConstant %int 0 -%int_1 = OpConstant %int 1 -%_entrypoint_v = OpFunction %void None %16 -%17 = OpLabel -%21 = OpVariable %_ptr_Function_v2float Function -OpStore %21 %20 -%23 = OpFunctionCall %v4float %main %21 -OpStore %sk_FragColor %23 -OpReturn -OpFunctionEnd -%test_half_b = OpFunction %bool None %24 -%25 = OpLabel -%ok = OpVariable %_ptr_Function_bool Function -OpStore %ok %true -%29 = OpLoad %bool %ok -OpReturnValue %29 -OpFunctionEnd -%main = OpFunction %v4float None %30 -%31 = OpFunctionParameter %_ptr_Function_v2float -%32 = OpLabel -%_0_ok = OpVariable %_ptr_Function_bool Function -%40 = OpVariable %_ptr_Function_v4float Function -OpStore %_0_ok %true -%35 = OpLoad %bool %_0_ok -OpSelectionMerge %37 None -OpBranchConditional %35 %36 %37 -%36 = OpLabel -%38 = OpFunctionCall %bool %test_half_b -OpBranch %37 -%37 = OpLabel -%39 = OpPhi %bool %false %32 %38 %36 -OpSelectionMerge %44 None -OpBranchConditional %39 %42 %43 -%42 = OpLabel -%45 = OpAccessChain %_ptr_Uniform_v4float %11 %int_0 -%49 = OpLoad %v4float %45 -OpStore %40 %49 -OpBranch %44 -%43 = OpLabel -%50 = OpAccessChain %_ptr_Uniform_v4float %11 %int_1 -%52 = OpLoad %v4float %50 -OpStore %40 %52 -OpBranch %44 -%44 = OpLabel -%53 = OpLoad %v4float %40 -OpReturnValue %53 -OpFunctionEnd diff --git a/tests/sksl/shared/MatrixScalarSplat.glsl b/tests/sksl/shared/MatrixScalarSplat.glsl deleted file mode 100644 index 4fe0600e38..0000000000 --- a/tests/sksl/shared/MatrixScalarSplat.glsl +++ /dev/null @@ -1,12 +0,0 @@ - -out vec4 sk_FragColor; -uniform vec4 colorGreen; -uniform vec4 colorRed; -bool test_half_b() { - bool ok = true; - return ok; -} -vec4 main() { - bool _0_ok = true; - return _0_ok && test_half_b() ? colorGreen : colorRed; -} diff --git a/tests/sksl/shared/MatrixScalarSplat.metal b/tests/sksl/shared/MatrixScalarSplat.metal deleted file mode 100644 index a0d5d1d2b5..0000000000 --- a/tests/sksl/shared/MatrixScalarSplat.metal +++ /dev/null @@ -1,23 +0,0 @@ -#include -#include -using namespace metal; -struct Uniforms { - half4 colorGreen; - half4 colorRed; -}; -struct Inputs { -}; -struct Outputs { - half4 sk_FragColor [[color(0)]]; -}; -bool test_half_b() { - bool ok = true; - return ok; -} -fragment Outputs fragmentMain(Inputs _in [[stage_in]], constant Uniforms& _uniforms [[buffer(0)]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) { - Outputs _out; - (void)_out; - bool _0_ok = true; - _out.sk_FragColor = _0_ok && test_half_b() ? _uniforms.colorGreen : _uniforms.colorRed; - return _out; -}