2020-09-14 14:21:44 +00:00
|
|
|
# Copyright 2020 Google LLC
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
# Things are easiest for everyone if these source paths are absolute.
|
|
|
|
_tests = get_path_info("../tests", "abspath")
|
|
|
|
|
2020-09-24 20:42:09 +00:00
|
|
|
sksl_fp_error_tests = [
|
2020-09-16 22:40:38 +00:00
|
|
|
"$_tests/sksl/errors/GrBadIn.fp",
|
2020-09-14 20:46:40 +00:00
|
|
|
"$_tests/sksl/errors/GrBothExplicitReturnAndSkOutColor.fp",
|
2020-09-16 22:40:38 +00:00
|
|
|
"$_tests/sksl/errors/GrCannotReturnWithSkOutColor.fp",
|
2020-10-12 18:40:24 +00:00
|
|
|
"$_tests/sksl/errors/GrMainParameterWrongType.fp",
|
|
|
|
"$_tests/sksl/errors/GrMainTooManyParameters.fp",
|
2020-09-16 22:40:38 +00:00
|
|
|
"$_tests/sksl/errors/GrNoFragmentProcessorConstruction.fp",
|
|
|
|
"$_tests/sksl/errors/GrNoFragmentProcessorExpressions.fp",
|
|
|
|
"$_tests/sksl/errors/GrNoFragmentProcessorLocals.fp",
|
|
|
|
"$_tests/sksl/errors/GrNoFragmentProcessorParams.fp",
|
|
|
|
"$_tests/sksl/errors/GrNoFragmentProcessorReturn.fp",
|
2020-10-23 14:15:31 +00:00
|
|
|
"$_tests/sksl/errors/GrRecursion.fp",
|
2020-09-24 20:42:09 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
sksl_fp_tests = [
|
2020-09-23 15:46:29 +00:00
|
|
|
"$_tests/sksl/fp/GrChildProcessorAndGlobal.fp",
|
|
|
|
"$_tests/sksl/fp/GrChildProcessorFieldAccess.fp",
|
|
|
|
"$_tests/sksl/fp/GrChildProcessorInlineFieldAccess.fp",
|
|
|
|
"$_tests/sksl/fp/GrChildProcessorSampleCoords.fp",
|
|
|
|
"$_tests/sksl/fp/GrChildProcessorSampleMatrixAndCoords.fp",
|
|
|
|
"$_tests/sksl/fp/GrChildProcessorSampleMatrixConstant.fp",
|
|
|
|
"$_tests/sksl/fp/GrChildProcessorSampleMatrixConstantAndCoords.fp",
|
|
|
|
"$_tests/sksl/fp/GrChildProcessorSampleMatrixMultipleUniforms.fp",
|
|
|
|
"$_tests/sksl/fp/GrChildProcessorSampleMatrixSingleInUniform.fp",
|
|
|
|
"$_tests/sksl/fp/GrChildProcessorSampleMatrixSingleUniform.fp",
|
|
|
|
"$_tests/sksl/fp/GrChildProcessorSampleMatrixSingleUniformExpr.fp",
|
|
|
|
"$_tests/sksl/fp/GrChildProcessorWithInputExpression.fp",
|
|
|
|
"$_tests/sksl/fp/GrChildProcessors.fp",
|
|
|
|
"$_tests/sksl/fp/GrChildProcessorsWithInput.fp",
|
2020-09-16 22:40:38 +00:00
|
|
|
"$_tests/sksl/fp/GrConditionalInUniform.fp",
|
|
|
|
"$_tests/sksl/fp/GrFunction.fp",
|
2020-09-23 15:46:29 +00:00
|
|
|
"$_tests/sksl/fp/GrGrSLTypesAreSupported.fp",
|
2020-09-14 20:46:40 +00:00
|
|
|
"$_tests/sksl/fp/GrHelloWorld.fp",
|
2020-09-16 22:40:38 +00:00
|
|
|
"$_tests/sksl/fp/GrInUniform.fp",
|
|
|
|
"$_tests/sksl/fp/GrInUniformCType.fp",
|
|
|
|
"$_tests/sksl/fp/GrInlinedFunction.fp",
|
|
|
|
"$_tests/sksl/fp/GrKeyIn.fp",
|
2020-09-23 15:46:29 +00:00
|
|
|
"$_tests/sksl/fp/GrLayoutWhen.fp",
|
|
|
|
"$_tests/sksl/fp/GrMainCoords.fp",
|
2020-10-29 19:50:58 +00:00
|
|
|
"$_tests/sksl/fp/GrModuloOp.fp",
|
2020-10-23 17:45:57 +00:00
|
|
|
"$_tests/sksl/fp/GrNestedCall.fp",
|
2020-09-16 22:40:38 +00:00
|
|
|
"$_tests/sksl/fp/GrNestedChildProcessors.fp",
|
|
|
|
"$_tests/sksl/fp/GrNonInlinedInUniform.fp",
|
|
|
|
"$_tests/sksl/fp/GrNullableChildProcessor.fp",
|
|
|
|
"$_tests/sksl/fp/GrSectionClass.fp",
|
|
|
|
"$_tests/sksl/fp/GrSectionConstructor.fp",
|
|
|
|
"$_tests/sksl/fp/GrSectionConstructorParams.fp",
|
|
|
|
"$_tests/sksl/fp/GrSectionCpp.fp",
|
|
|
|
"$_tests/sksl/fp/GrSectionDumpInfo.fp",
|
|
|
|
"$_tests/sksl/fp/GrSectionEmitCode.fp",
|
|
|
|
"$_tests/sksl/fp/GrSectionFields.fp",
|
|
|
|
"$_tests/sksl/fp/GrSectionHeader.fp",
|
|
|
|
"$_tests/sksl/fp/GrSectionInitializers.fp",
|
|
|
|
"$_tests/sksl/fp/GrSectionMake.fp",
|
|
|
|
"$_tests/sksl/fp/GrSectionSetData.fp",
|
|
|
|
"$_tests/sksl/fp/GrSectionTest.fp",
|
|
|
|
"$_tests/sksl/fp/GrTrackedInUniform.fp",
|
|
|
|
"$_tests/sksl/fp/GrUniform.fp",
|
2020-09-23 15:46:29 +00:00
|
|
|
"$_tests/sksl/fp/GrUniformArrays.fp",
|
2020-09-16 22:40:38 +00:00
|
|
|
"$_tests/sksl/fp/GrUseExplicitReturn.fp",
|
2020-09-14 20:46:40 +00:00
|
|
|
]
|
2020-09-14 14:21:44 +00:00
|
|
|
|
2020-09-24 20:42:09 +00:00
|
|
|
sksl_error_tests = [
|
2020-09-17 22:20:26 +00:00
|
|
|
"$_tests/sksl/errors/ArgumentCountMismatch.sksl",
|
|
|
|
"$_tests/sksl/errors/ArgumentMismatch.sksl",
|
|
|
|
"$_tests/sksl/errors/ArgumentModifiers.sksl",
|
2020-11-10 15:01:39 +00:00
|
|
|
"$_tests/sksl/errors/ArrayTooManyDimensions.sksl",
|
2020-11-17 16:33:49 +00:00
|
|
|
"$_tests/sksl/errors/ArrayUnspecifiedDimensions.sksl",
|
2020-09-17 22:20:26 +00:00
|
|
|
"$_tests/sksl/errors/AssignmentTypeMismatch.sksl",
|
|
|
|
"$_tests/sksl/errors/BadCaps.sksl",
|
2020-09-25 20:02:07 +00:00
|
|
|
"$_tests/sksl/errors/BadFieldAccess.sksl",
|
2020-09-17 22:20:26 +00:00
|
|
|
"$_tests/sksl/errors/BadIndex.sksl",
|
|
|
|
"$_tests/sksl/errors/BadModifiers.sksl",
|
|
|
|
"$_tests/sksl/errors/BinaryTypeCoercion.sksl",
|
|
|
|
"$_tests/sksl/errors/BinaryTypeMismatch.sksl",
|
2020-09-16 20:21:40 +00:00
|
|
|
"$_tests/sksl/errors/BitShiftFloat.sksl",
|
|
|
|
"$_tests/sksl/errors/BitShiftFloatMatrix.sksl",
|
|
|
|
"$_tests/sksl/errors/BitShiftFloatVector.sksl",
|
2020-11-24 17:04:47 +00:00
|
|
|
"$_tests/sksl/errors/BooleanArithmetic.sksl",
|
2020-09-17 22:20:26 +00:00
|
|
|
"$_tests/sksl/errors/BreakOutsideLoop.sksl",
|
|
|
|
"$_tests/sksl/errors/CallNonFunction.sksl",
|
|
|
|
"$_tests/sksl/errors/CanExitWithoutReturningValue.sksl",
|
|
|
|
"$_tests/sksl/errors/ConstructorArgumentCount.sksl",
|
|
|
|
"$_tests/sksl/errors/ConstructorTypeMismatch.sksl",
|
|
|
|
"$_tests/sksl/errors/ContinueOutsideLoop.sksl",
|
|
|
|
"$_tests/sksl/errors/DivideByZero.sksl",
|
|
|
|
"$_tests/sksl/errors/DoTypeMismatch.sksl",
|
|
|
|
"$_tests/sksl/errors/DuplicateFunction.sksl",
|
|
|
|
"$_tests/sksl/errors/DuplicateOutput.sksl",
|
|
|
|
"$_tests/sksl/errors/DuplicateSymbol.sksl",
|
|
|
|
"$_tests/sksl/errors/EnumValueMustBeConstInt.sksl",
|
|
|
|
"$_tests/sksl/errors/ErrorsInDeadCode.sksl",
|
|
|
|
"$_tests/sksl/errors/FieldAfterRuntimeArray.sksl",
|
|
|
|
"$_tests/sksl/errors/ForTypeMismatch.sksl",
|
|
|
|
"$_tests/sksl/errors/GenericArgumentMismatch.sksl",
|
|
|
|
"$_tests/sksl/errors/IfTypeMismatch.sksl",
|
2020-11-09 15:50:35 +00:00
|
|
|
"$_tests/sksl/errors/InVarWithInitializerExpression.sksl",
|
2020-09-17 22:20:26 +00:00
|
|
|
"$_tests/sksl/errors/InterfaceBlockScope.sksl",
|
|
|
|
"$_tests/sksl/errors/InterfaceBlockStorageModifiers.sksl",
|
2020-11-04 19:52:50 +00:00
|
|
|
"$_tests/sksl/errors/InterfaceBlockWithNoMembers.sksl",
|
2020-09-17 22:20:26 +00:00
|
|
|
"$_tests/sksl/errors/InvalidAssignment.sksl",
|
2020-09-23 19:20:01 +00:00
|
|
|
"$_tests/sksl/errors/InvalidOutParams.sksl",
|
2020-09-17 22:20:26 +00:00
|
|
|
"$_tests/sksl/errors/InvalidUnary.sksl",
|
2020-10-09 21:42:31 +00:00
|
|
|
"$_tests/sksl/errors/ModifiersInStruct.sksl",
|
2020-11-17 14:43:22 +00:00
|
|
|
"$_tests/sksl/errors/OpaqueTypeInInterfaceBlock.sksl",
|
|
|
|
"$_tests/sksl/errors/OpaqueTypeInStruct.sksl",
|
2020-09-14 20:46:40 +00:00
|
|
|
"$_tests/sksl/errors/OpenArray.sksl",
|
2020-10-30 18:24:24 +00:00
|
|
|
"$_tests/sksl/errors/Ossfuzz26700.sksl",
|
2020-10-30 17:26:35 +00:00
|
|
|
"$_tests/sksl/errors/Ossfuzz26759.sksl",
|
2020-11-19 22:36:17 +00:00
|
|
|
"$_tests/sksl/errors/Ossfuzz27650.sksl",
|
2020-11-20 18:27:04 +00:00
|
|
|
"$_tests/sksl/errors/Ossfuzz27663.sksl",
|
2020-11-10 19:17:42 +00:00
|
|
|
"$_tests/sksl/errors/OverflowIntLiteral.sksl",
|
|
|
|
"$_tests/sksl/errors/OverflowUintLiteral.sksl",
|
2020-11-13 20:55:27 +00:00
|
|
|
"$_tests/sksl/errors/PrivateTypes.sksl",
|
2020-09-17 22:20:26 +00:00
|
|
|
"$_tests/sksl/errors/ReturnDifferentType.sksl",
|
|
|
|
"$_tests/sksl/errors/ReturnFromVoid.sksl",
|
|
|
|
"$_tests/sksl/errors/ReturnMissingValue.sksl",
|
|
|
|
"$_tests/sksl/errors/ReturnTypeMismatch.sksl",
|
2020-10-23 13:58:56 +00:00
|
|
|
"$_tests/sksl/errors/SelfReferentialInitializerExpression.sksl",
|
2020-09-17 22:20:26 +00:00
|
|
|
"$_tests/sksl/errors/SpuriousFloat.sksl",
|
|
|
|
"$_tests/sksl/errors/StaticIfTest.sksl",
|
|
|
|
"$_tests/sksl/errors/StaticSwitchConditionalBreak.sksl",
|
|
|
|
"$_tests/sksl/errors/StaticSwitchTest.sksl",
|
2020-11-10 15:04:26 +00:00
|
|
|
"$_tests/sksl/errors/StructTooDeeplyNested.sksl",
|
2020-09-17 22:20:26 +00:00
|
|
|
"$_tests/sksl/errors/SwitchDuplicateCase.sksl",
|
|
|
|
"$_tests/sksl/errors/SwitchTypes.sksl",
|
|
|
|
"$_tests/sksl/errors/SwizzleConstantOutput.sksl",
|
|
|
|
"$_tests/sksl/errors/SwizzleMatrix.sksl",
|
|
|
|
"$_tests/sksl/errors/SwizzleOnlyLiterals.sksl",
|
|
|
|
"$_tests/sksl/errors/SwizzleOutOfBounds.sksl",
|
|
|
|
"$_tests/sksl/errors/SwizzleTooManyComponents.sksl",
|
|
|
|
"$_tests/sksl/errors/TernaryMismatch.sksl",
|
2020-11-02 16:38:19 +00:00
|
|
|
"$_tests/sksl/errors/UndeclaredFunction.sksl",
|
2020-09-17 22:20:26 +00:00
|
|
|
"$_tests/sksl/errors/UndefinedFunction.sksl",
|
2020-09-14 20:46:40 +00:00
|
|
|
"$_tests/sksl/errors/UndefinedSymbol.sksl",
|
2020-09-17 22:20:26 +00:00
|
|
|
"$_tests/sksl/errors/Unreachable.sksl",
|
|
|
|
"$_tests/sksl/errors/UnsupportedGLSLIdentifiers.sksl",
|
|
|
|
"$_tests/sksl/errors/UseWithoutInitializeArrayIndex.sksl",
|
|
|
|
"$_tests/sksl/errors/UseWithoutInitializeBinaryExpr.sksl",
|
|
|
|
"$_tests/sksl/errors/UseWithoutInitializeDeadIf.sksl",
|
|
|
|
"$_tests/sksl/errors/UseWithoutInitializeDeadSwitch.sksl",
|
|
|
|
"$_tests/sksl/errors/UseWithoutInitializeReturnValue.sksl",
|
|
|
|
"$_tests/sksl/errors/UseWithoutInitializeVarDecl.sksl",
|
|
|
|
"$_tests/sksl/errors/UsingInvalidValue.sksl",
|
|
|
|
"$_tests/sksl/errors/WhileTypeMismatch.sksl",
|
2020-09-24 20:42:09 +00:00
|
|
|
]
|
|
|
|
|
2020-09-24 21:22:42 +00:00
|
|
|
sksl_glsl_tests = [
|
2020-09-16 21:43:11 +00:00
|
|
|
"$_tests/sksl/glsl/ForceHighPrecision.sksl",
|
2020-09-18 18:42:58 +00:00
|
|
|
"$_tests/sksl/glsl/IncompleteShortIntPrecision.sksl",
|
2020-09-25 17:35:58 +00:00
|
|
|
"$_tests/sksl/glsl/LayoutQualifiers.sksl",
|
2020-09-18 18:42:58 +00:00
|
|
|
"$_tests/sksl/glsl/ShortIntPrecision.sksl",
|
2020-09-16 21:43:11 +00:00
|
|
|
"$_tests/sksl/glsl/TextureSharpenVersion110.sksl",
|
|
|
|
"$_tests/sksl/glsl/TextureVersion110.sksl",
|
|
|
|
"$_tests/sksl/glsl/UsesPrecisionModifiers.sksl",
|
|
|
|
"$_tests/sksl/glsl/Version110.sksl",
|
|
|
|
"$_tests/sksl/glsl/Version450Core.sksl",
|
2020-09-24 21:22:42 +00:00
|
|
|
]
|
|
|
|
|
2020-11-13 23:14:11 +00:00
|
|
|
sksl_metal_tests = [
|
|
|
|
"$_tests/sksl/metal/CastHalf4ToMat2x2.sksl",
|
|
|
|
"$_tests/sksl/metal/CastMat2x2ToMat3x3.sksl",
|
|
|
|
"$_tests/sksl/metal/CastMat2x3ToMat4x4.sksl",
|
|
|
|
"$_tests/sksl/metal/CastMat4x4ToMat3x4.sksl",
|
|
|
|
"$_tests/sksl/metal/CastMat4x4ToMat4x3.sksl",
|
|
|
|
"$_tests/sksl/metal/NumericGlobals.sksl",
|
2020-11-16 18:32:18 +00:00
|
|
|
"$_tests/sksl/metal/OpaqueTypeInInterfaceBlock.sksl",
|
|
|
|
"$_tests/sksl/metal/OpaqueTypeInStruct.sksl",
|
2020-11-13 23:14:11 +00:00
|
|
|
"$_tests/sksl/metal/SamplerGlobals.sksl",
|
|
|
|
]
|
|
|
|
|
2020-11-25 21:55:37 +00:00
|
|
|
sksl_spirv_tests = [
|
|
|
|
"$_tests/sksl/spirv/LayoutMultipleOf4.sksl",
|
|
|
|
"$_tests/sksl/spirv/LayoutOutOfOrder.sksl",
|
Fix SPIR-V compilation error with arrays of samplers.
This CL addresses the root cause of the fuzzer issue, by checking for
LayoutIsSupported before getting the MemoryLayout of a type. However,
this array ought to be detected as an error everywhere, as samplers are
opaque types; at present, this code compiles without error in GLSL and
Metal. This is an issue for followup CLs.
GLSL's actual support for arrays of samplers is interesting and probably
too nuanced for us to try to emulate:
https://www.khronos.org/opengl/wiki/Data_Type_(GLSL)#Opaque_arrays
"Under GLSL version 3.30, Sampler arrays (the only opaque type 3.30
provides) can be declared, but they can only be accessed by compile-time
integral Constant Expressions. So you cannot loop over an array of
samplers, no matter what the array initializer, offset and comparison
expressions are.
Under GLSL 4.00 and above, array indices leading to an opaque value can
be accessed by non-compile-time constants, but these index values must
be dynamically uniform. The value of those indices must be the same
value, in the same execution order, regardless of any non-uniform
parameter values, for all shader invocations in the invocation group."
Change-Id: Ib382f5c3b563f996b3c8f1eb6b021b6d31fa9ce7
Bug: oss-fuzz:28107
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/339159
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2020-11-30 14:57:59 +00:00
|
|
|
"$_tests/sksl/spirv/OpaqueTypeInArray.sksl",
|
2020-11-25 21:55:37 +00:00
|
|
|
]
|
|
|
|
|
2020-09-24 21:22:42 +00:00
|
|
|
sksl_shared_tests = [
|
|
|
|
"$_tests/sksl/shared/ArrayConstructors.sksl",
|
|
|
|
"$_tests/sksl/shared/ArrayIndexTypes.sksl",
|
2020-11-10 15:03:50 +00:00
|
|
|
"$_tests/sksl/shared/ArrayMaxDimensions.sksl",
|
2020-11-30 18:44:57 +00:00
|
|
|
"$_tests/sksl/shared/ArrayReturnTypes.sksl",
|
2020-09-24 21:22:42 +00:00
|
|
|
"$_tests/sksl/shared/ArrayTypes.sksl",
|
2020-09-25 20:02:07 +00:00
|
|
|
"$_tests/sksl/shared/Assignment.sksl",
|
2020-09-24 21:22:42 +00:00
|
|
|
"$_tests/sksl/shared/BoolFolding.sksl",
|
|
|
|
"$_tests/sksl/shared/Caps.sksl",
|
|
|
|
"$_tests/sksl/shared/CastsRoundTowardZero.sksl",
|
|
|
|
"$_tests/sksl/shared/Clockwise.sksl",
|
|
|
|
"$_tests/sksl/shared/ComplexDelete.sksl",
|
|
|
|
"$_tests/sksl/shared/ConstArray.sksl",
|
|
|
|
"$_tests/sksl/shared/ConstVariableComparison.sksl",
|
|
|
|
"$_tests/sksl/shared/ConstantIf.sksl",
|
|
|
|
"$_tests/sksl/shared/Control.sksl",
|
|
|
|
"$_tests/sksl/shared/DeadDoWhileLoop.sksl",
|
2020-11-03 16:33:49 +00:00
|
|
|
"$_tests/sksl/shared/DeadIfStatement.sksl",
|
2020-09-24 21:22:42 +00:00
|
|
|
"$_tests/sksl/shared/DeadLoopVariable.sksl",
|
2020-11-26 03:19:16 +00:00
|
|
|
"$_tests/sksl/shared/DeadStripFunctions.sksl",
|
2020-09-24 21:22:42 +00:00
|
|
|
"$_tests/sksl/shared/DependentInitializers.sksl",
|
|
|
|
"$_tests/sksl/shared/DerivativesUnused.sksl",
|
|
|
|
"$_tests/sksl/shared/Discard.sksl",
|
2020-11-26 03:25:43 +00:00
|
|
|
"$_tests/sksl/shared/Enum.sksl",
|
2020-09-24 21:22:42 +00:00
|
|
|
"$_tests/sksl/shared/FloatFolding.sksl",
|
|
|
|
"$_tests/sksl/shared/FrExp.sksl",
|
|
|
|
"$_tests/sksl/shared/FragCoordsFlipY.sksl",
|
|
|
|
"$_tests/sksl/shared/FragCoordsNew.sksl",
|
|
|
|
"$_tests/sksl/shared/FragCoordsOld.sksl",
|
|
|
|
"$_tests/sksl/shared/FunctionArgumentMatch.sksl",
|
|
|
|
"$_tests/sksl/shared/FunctionPrototype.sksl",
|
|
|
|
"$_tests/sksl/shared/Functions.sksl",
|
2020-11-23 19:46:55 +00:00
|
|
|
"$_tests/sksl/shared/GaussianBlur.sksl",
|
2020-11-24 19:18:23 +00:00
|
|
|
"$_tests/sksl/shared/GeometricIntrinsics.sksl",
|
2020-09-24 21:22:42 +00:00
|
|
|
"$_tests/sksl/shared/Geometry.geom",
|
|
|
|
"$_tests/sksl/shared/GeometryExtension.geom",
|
|
|
|
"$_tests/sksl/shared/GeometryGSInvocations.geom",
|
|
|
|
"$_tests/sksl/shared/GeometryNoGSInvocations.geom",
|
2020-10-12 19:26:20 +00:00
|
|
|
"$_tests/sksl/shared/GeometryNoGSInvocationsReorder.geom",
|
2020-09-24 21:22:42 +00:00
|
|
|
"$_tests/sksl/shared/Height.sksl",
|
|
|
|
"$_tests/sksl/shared/HelloWorld.sksl",
|
|
|
|
"$_tests/sksl/shared/Hex.sksl",
|
|
|
|
"$_tests/sksl/shared/InstanceID.vert",
|
|
|
|
"$_tests/sksl/shared/IntFolding.sksl",
|
|
|
|
"$_tests/sksl/shared/InterfaceBlockAnonymous.sksl",
|
|
|
|
"$_tests/sksl/shared/InterfaceBlockArray.sksl",
|
|
|
|
"$_tests/sksl/shared/InterfaceBlockNamed.sksl",
|
|
|
|
"$_tests/sksl/shared/Matrices.sksl",
|
|
|
|
"$_tests/sksl/shared/MatrixFolding.sksl",
|
2020-11-23 19:28:36 +00:00
|
|
|
"$_tests/sksl/shared/MixedTypeCommaOperator.sksl",
|
2020-09-24 21:22:42 +00:00
|
|
|
"$_tests/sksl/shared/MultipleAssignments.sksl",
|
|
|
|
"$_tests/sksl/shared/NegatedVectorLiteral.sksl",
|
|
|
|
"$_tests/sksl/shared/NoFragCoordsPos.vert",
|
|
|
|
"$_tests/sksl/shared/NoFragCoordsPosRT.vert",
|
|
|
|
"$_tests/sksl/shared/NormalizationGeo.geom",
|
|
|
|
"$_tests/sksl/shared/NormalizationVert.vert",
|
|
|
|
"$_tests/sksl/shared/NumberConversions.sksl",
|
|
|
|
"$_tests/sksl/shared/Offset.sksl",
|
|
|
|
"$_tests/sksl/shared/Operators.sksl",
|
2020-10-23 13:46:11 +00:00
|
|
|
"$_tests/sksl/shared/Ossfuzz26167.sksl",
|
2020-11-18 20:18:40 +00:00
|
|
|
"$_tests/sksl/shared/Ossfuzz27614.sksl",
|
2020-11-30 17:24:27 +00:00
|
|
|
"$_tests/sksl/shared/Ossfuzz28050.sksl",
|
2020-09-24 21:22:42 +00:00
|
|
|
"$_tests/sksl/shared/OutParams.sksl",
|
2020-09-26 04:18:55 +00:00
|
|
|
"$_tests/sksl/shared/OutParamsTricky.sksl",
|
2020-09-24 21:22:42 +00:00
|
|
|
"$_tests/sksl/shared/RectangleTexture.sksl",
|
|
|
|
"$_tests/sksl/shared/ResizeMatrix.sksl",
|
|
|
|
"$_tests/sksl/shared/SampleMask.sksl",
|
|
|
|
"$_tests/sksl/shared/ScopedSymbol.sksl",
|
|
|
|
"$_tests/sksl/shared/ShortCircuitBoolFolding.sksl",
|
|
|
|
"$_tests/sksl/shared/StackingVectorCasts.sksl",
|
|
|
|
"$_tests/sksl/shared/StaticIf.sksl",
|
|
|
|
"$_tests/sksl/shared/StaticSwitch.sksl",
|
|
|
|
"$_tests/sksl/shared/StaticSwitchWithBreak.sksl",
|
|
|
|
"$_tests/sksl/shared/StaticSwitchWithBreakInsideBlock.sksl",
|
|
|
|
"$_tests/sksl/shared/StaticSwitchWithConditionalBreak.sksl",
|
|
|
|
"$_tests/sksl/shared/StaticSwitchWithConditionalBreakInsideBlock.sksl",
|
|
|
|
"$_tests/sksl/shared/StaticSwitchWithFallthroughA.sksl",
|
|
|
|
"$_tests/sksl/shared/StaticSwitchWithFallthroughB.sksl",
|
|
|
|
"$_tests/sksl/shared/StaticSwitchWithStaticConditionalBreak.sksl",
|
|
|
|
"$_tests/sksl/shared/StaticSwitchWithStaticConditionalBreakInsideBlock.sksl",
|
|
|
|
"$_tests/sksl/shared/Structs.sksl",
|
2020-11-10 15:04:26 +00:00
|
|
|
"$_tests/sksl/shared/StructMaxDepth.sksl",
|
2020-09-24 21:22:42 +00:00
|
|
|
"$_tests/sksl/shared/Switch.sksl",
|
|
|
|
"$_tests/sksl/shared/SwitchContainingDeadCode.sksl",
|
|
|
|
"$_tests/sksl/shared/SwitchWithFallthrough.sksl",
|
|
|
|
"$_tests/sksl/shared/SwizzleBoolConstants.sksl",
|
|
|
|
"$_tests/sksl/shared/SwizzleConstants.sksl",
|
|
|
|
"$_tests/sksl/shared/SwizzleLTRB.sksl",
|
|
|
|
"$_tests/sksl/shared/SwizzleOpt.sksl",
|
|
|
|
"$_tests/sksl/shared/SwizzleScalar.sksl",
|
|
|
|
"$_tests/sksl/shared/TernaryAsLValueEntirelyFoldable.sksl",
|
|
|
|
"$_tests/sksl/shared/TernaryAsLValueFoldableTest.sksl",
|
2020-10-30 19:58:49 +00:00
|
|
|
"$_tests/sksl/shared/Texture1D.sksl",
|
|
|
|
"$_tests/sksl/shared/Texture2D.sksl",
|
2020-09-24 21:22:42 +00:00
|
|
|
"$_tests/sksl/shared/TextureSharpen.sksl",
|
|
|
|
"$_tests/sksl/shared/UnaryPositiveNegative.sksl",
|
|
|
|
"$_tests/sksl/shared/UnusedVariables.sksl",
|
|
|
|
"$_tests/sksl/shared/VectorConstructors.sksl",
|
|
|
|
"$_tests/sksl/shared/VectorFolding.sksl",
|
|
|
|
"$_tests/sksl/shared/VertexID.vert",
|
|
|
|
"$_tests/sksl/shared/Width.sksl",
|
2020-09-24 20:42:09 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
sksl_inliner_tests = [
|
2020-09-15 14:10:43 +00:00
|
|
|
"$_tests/sksl/inliner/DoWhileBodyMustBeInlinedIntoAScope.sksl",
|
|
|
|
"$_tests/sksl/inliner/DoWhileTestCannotBeInlined.sksl",
|
|
|
|
"$_tests/sksl/inliner/ForBodyMustBeInlinedIntoAScope.sksl",
|
|
|
|
"$_tests/sksl/inliner/ForInitializerExpressionsCanBeInlined.sksl",
|
|
|
|
"$_tests/sksl/inliner/ForWithReturnInsideCannotBeInlined.sksl",
|
|
|
|
"$_tests/sksl/inliner/ForWithoutReturnInsideCanBeInlined.sksl",
|
|
|
|
"$_tests/sksl/inliner/IfBodyMustBeInlinedIntoAScope.sksl",
|
|
|
|
"$_tests/sksl/inliner/IfElseBodyMustBeInlinedIntoAScope.sksl",
|
|
|
|
"$_tests/sksl/inliner/IfElseChainWithReturnsCanBeInlined.sksl",
|
|
|
|
"$_tests/sksl/inliner/IfTestCanBeInlined.sksl",
|
|
|
|
"$_tests/sksl/inliner/IfWithReturnsCanBeInlined.sksl",
|
|
|
|
"$_tests/sksl/inliner/InlineKeywordOverridesThreshold.sksl",
|
|
|
|
"$_tests/sksl/inliner/InlineThreshold.sksl",
|
|
|
|
"$_tests/sksl/inliner/InlineWithInoutArgument.sksl",
|
|
|
|
"$_tests/sksl/inliner/InlineWithModifiedArgument.sksl",
|
|
|
|
"$_tests/sksl/inliner/InlineWithNestedBigCalls.sksl",
|
|
|
|
"$_tests/sksl/inliner/InlineWithNestedCalls.sksl",
|
|
|
|
"$_tests/sksl/inliner/InlineWithUnmodifiedArgument.sksl",
|
|
|
|
"$_tests/sksl/inliner/InlineWithUnnecessaryBlocks.sksl",
|
2020-09-14 22:23:54 +00:00
|
|
|
"$_tests/sksl/inliner/InlinerAvoidsVariableNameOverlap.sksl",
|
2020-09-15 14:10:43 +00:00
|
|
|
"$_tests/sksl/inliner/InlinerManglesNames.sksl",
|
|
|
|
"$_tests/sksl/inliner/ShortCircuitEvaluationsCannotInlineRightHandSide.sksl",
|
|
|
|
"$_tests/sksl/inliner/SwitchWithCastCanBeInlined.sksl",
|
|
|
|
"$_tests/sksl/inliner/SwitchWithReturnInsideCannotBeInlined.sksl",
|
|
|
|
"$_tests/sksl/inliner/SwitchWithoutReturnInsideCanBeInlined.sksl",
|
2020-09-23 19:20:01 +00:00
|
|
|
"$_tests/sksl/inliner/SwizzleCanBeInlinedDirectly.sksl",
|
2020-09-15 14:10:43 +00:00
|
|
|
"$_tests/sksl/inliner/TernaryResultsCannotBeInlined.sksl",
|
|
|
|
"$_tests/sksl/inliner/TernaryTestCanBeInlined.sksl",
|
2020-09-30 14:37:23 +00:00
|
|
|
"$_tests/sksl/inliner/TrivialArgumentsInlineDirectly.sksl",
|
2020-09-15 14:10:43 +00:00
|
|
|
"$_tests/sksl/inliner/WhileBodyMustBeInlinedIntoAScope.sksl",
|
|
|
|
"$_tests/sksl/inliner/WhileTestCannotBeInlined.sksl",
|
2020-09-14 20:46:40 +00:00
|
|
|
]
|
2020-09-16 21:46:37 +00:00
|
|
|
|
2020-09-24 20:42:09 +00:00
|
|
|
sksl_blend_tests = [
|
2020-09-21 21:01:22 +00:00
|
|
|
"$_tests/sksl/blend/BlendClear.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendColor.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendColorBurn.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendColorDodge.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendDarken.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendDifference.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendDst.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendDstAtop.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendDstIn.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendDstOut.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendDstOver.sksl",
|
2020-11-26 03:39:45 +00:00
|
|
|
"$_tests/sksl/blend/BlendEnum.sksl",
|
2020-09-21 21:01:22 +00:00
|
|
|
"$_tests/sksl/blend/BlendExclusion.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendHardLight.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendHue.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendLighten.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendLuminosity.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendModulate.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendMultiply.sksl",
|
2020-10-02 21:46:49 +00:00
|
|
|
"$_tests/sksl/blend/BlendOverlay.sksl",
|
2020-09-21 21:01:22 +00:00
|
|
|
"$_tests/sksl/blend/BlendPlus.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendSaturation.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendScreen.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendSoftLight.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendSrc.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendSrcAtop.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendSrcIn.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendSrcOut.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendSrcOver.sksl",
|
|
|
|
"$_tests/sksl/blend/BlendXor.sksl",
|
2020-09-24 20:42:09 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
sksl_settings_tests = [
|
2020-09-16 21:46:37 +00:00
|
|
|
"$_tests/sksl/glsl/TypePrecision.sksl",
|
2020-11-13 21:13:18 +00:00
|
|
|
"$_tests/sksl/inliner/ExponentialGrowth.sksl",
|
2020-10-12 16:33:27 +00:00
|
|
|
"$_tests/sksl/inliner/InlinerCanBeDisabled.sksl",
|
2020-09-18 19:41:31 +00:00
|
|
|
"$_tests/sksl/inliner/InlinerWrapsEarlyReturnsWithDoWhileBlock.sksl",
|
2020-10-20 14:24:56 +00:00
|
|
|
"$_tests/sksl/shared/CrossIntrinsic.sksl",
|
2020-09-24 21:22:42 +00:00
|
|
|
"$_tests/sksl/shared/Derivatives.sksl",
|
|
|
|
"$_tests/sksl/shared/DerivativesFlipY.sksl",
|
2020-09-16 21:46:37 +00:00
|
|
|
"$_tests/sksl/workarounds/AbsInt.sksl",
|
2020-10-09 02:18:10 +00:00
|
|
|
"$_tests/sksl/workarounds/BlendGuardedDivide.sksl",
|
2020-10-08 22:39:08 +00:00
|
|
|
"$_tests/sksl/workarounds/BlendModesAllZeroVec.sksl",
|
2020-09-16 21:46:37 +00:00
|
|
|
"$_tests/sksl/workarounds/FractNegative.sksl",
|
2020-09-18 18:42:58 +00:00
|
|
|
"$_tests/sksl/workarounds/FragCoords.sksl",
|
2020-09-16 21:46:37 +00:00
|
|
|
"$_tests/sksl/workarounds/LoopCondition.sksl",
|
|
|
|
"$_tests/sksl/workarounds/MinAndAbsTogether.sksl",
|
|
|
|
"$_tests/sksl/workarounds/NegatedAtan.sksl",
|
|
|
|
"$_tests/sksl/workarounds/PowWithConstantExponent.sksl",
|
2020-09-18 18:42:58 +00:00
|
|
|
"$_tests/sksl/workarounds/RewriteDoWhileLoops.sksl",
|
2020-09-16 21:46:37 +00:00
|
|
|
"$_tests/sksl/workarounds/TernaryShortCircuit.sksl",
|
|
|
|
]
|
2020-09-24 20:42:09 +00:00
|
|
|
|
|
|
|
# Tests in sksl_fp_tests_sources will be compiled with --settings on, and are expected to generate
|
|
|
|
# a .cpp and a .h output file.
|
|
|
|
sksl_fp_tests_sources = sksl_fp_error_tests + sksl_fp_tests
|
|
|
|
|
|
|
|
# Tests in sksl_glsl_tests_sources will be compiled with --settings on, and are expected to generate
|
|
|
|
# a .glsl output file.
|
|
|
|
sksl_glsl_tests_sources =
|
2020-09-24 21:22:42 +00:00
|
|
|
sksl_error_tests + sksl_glsl_tests + sksl_inliner_tests + sksl_shared_tests
|
2020-09-24 20:42:09 +00:00
|
|
|
|
|
|
|
# Tests in sksl_glsl_settings_tests_sources will be compiled twice, once with --settings and once
|
|
|
|
# using --nosettings. In the latter mode, StandaloneSettings is appended to the output filename.
|
|
|
|
sksl_glsl_settings_tests_sources = sksl_blend_tests + sksl_settings_tests
|
2020-09-25 17:35:58 +00:00
|
|
|
|
|
|
|
# Tests in sksl_metal_tests_sources will be compiled with --settings on, and are expected to
|
|
|
|
# generate a .metal output file.
|
2020-11-13 23:14:11 +00:00
|
|
|
sksl_metal_tests_sources =
|
|
|
|
sksl_metal_tests + sksl_blend_tests + sksl_shared_tests
|
2020-11-20 21:28:50 +00:00
|
|
|
|
|
|
|
# Tests in sksl_spirv_tests_sources will be compiled with --settings on, and are expected to
|
|
|
|
# generate a .asm.(frag|vert|geom) output file.
|
2020-11-25 21:55:37 +00:00
|
|
|
sksl_spirv_tests_sources =
|
|
|
|
sksl_blend_tests + sksl_shared_tests + sksl_spirv_tests
|