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.
|
|
|
|
|
2020-09-24 20:42:09 +00:00
|
|
|
sksl_error_tests = [
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/ArgumentCountMismatch.sksl",
|
|
|
|
"/sksl/errors/ArgumentMismatch.sksl",
|
|
|
|
"/sksl/errors/ArgumentModifiers.sksl",
|
2021-02-03 20:11:18 +00:00
|
|
|
"/sksl/errors/ArrayConstructorElementCount.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/ArrayIndexOutOfRange.sksl",
|
2021-02-12 22:07:51 +00:00
|
|
|
"/sksl/errors/ArrayOfVoid.sksl",
|
|
|
|
"/sksl/errors/ArrayOfVoidInStruct.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/ArrayReturnTypes.sksl",
|
2021-02-12 22:07:51 +00:00
|
|
|
"/sksl/errors/ArraySplitDimensions.sksl",
|
|
|
|
"/sksl/errors/ArraySplitDimensionsInFuncBody.sksl",
|
|
|
|
"/sksl/errors/ArraySplitDimensionsInFuncDecl.sksl",
|
|
|
|
"/sksl/errors/ArraySplitDimensionsInStruct.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/ArrayTooManyDimensions.sksl",
|
2021-02-12 22:07:51 +00:00
|
|
|
"/sksl/errors/ArrayTooManyDimensionsInFuncBody.sksl",
|
|
|
|
"/sksl/errors/ArrayTooManyDimensionsInFuncDecl.sksl",
|
|
|
|
"/sksl/errors/ArrayTooManyDimensionsInStruct.sksl",
|
|
|
|
"/sksl/errors/ArrayTypeTooManyDimensions.sksl",
|
|
|
|
"/sksl/errors/ArrayTypeTooManyDimensionsInFuncBody.sksl",
|
|
|
|
"/sksl/errors/ArrayTypeTooManyDimensionsInFuncDecl.sksl",
|
|
|
|
"/sksl/errors/ArrayTypeTooManyDimensionsInStruct.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/ArrayUnspecifiedDimensions.sksl",
|
|
|
|
"/sksl/errors/AssignmentTypeMismatch.sksl",
|
|
|
|
"/sksl/errors/BadCaps.sksl",
|
2021-02-25 16:25:30 +00:00
|
|
|
"/sksl/errors/BadConstInitializers.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/BadFieldAccess.sksl",
|
|
|
|
"/sksl/errors/BadIndex.sksl",
|
|
|
|
"/sksl/errors/BadModifiers.sksl",
|
|
|
|
"/sksl/errors/BinaryInvalidType.sksl",
|
|
|
|
"/sksl/errors/BinaryTypeCoercion.sksl",
|
|
|
|
"/sksl/errors/BinaryTypeMismatch.sksl",
|
|
|
|
"/sksl/errors/BitShiftFloat.sksl",
|
|
|
|
"/sksl/errors/BitShiftFloatMatrix.sksl",
|
|
|
|
"/sksl/errors/BitShiftFloatVector.sksl",
|
|
|
|
"/sksl/errors/BooleanArithmetic.sksl",
|
|
|
|
"/sksl/errors/BreakOutsideLoop.sksl",
|
|
|
|
"/sksl/errors/CallNonFunction.sksl",
|
|
|
|
"/sksl/errors/CanExitWithoutReturningValue.sksl",
|
|
|
|
"/sksl/errors/ConstructorArgumentCount.sksl",
|
|
|
|
"/sksl/errors/ConstructorTypeMismatch.sksl",
|
|
|
|
"/sksl/errors/ContinueOutsideLoop.sksl",
|
|
|
|
"/sksl/errors/DivideByZero.sksl",
|
|
|
|
"/sksl/errors/DoTypeMismatch.sksl",
|
|
|
|
"/sksl/errors/DuplicateFunction.sksl",
|
|
|
|
"/sksl/errors/DuplicateOutput.sksl",
|
|
|
|
"/sksl/errors/DuplicateSymbol.sksl",
|
2021-04-09 13:56:40 +00:00
|
|
|
"/sksl/errors/EmptyArray.sksl",
|
2021-02-12 18:09:58 +00:00
|
|
|
"/sksl/errors/EmptyStruct.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/ErrorsInDeadCode.sksl",
|
|
|
|
"/sksl/errors/FloatRemainder.sksl",
|
2021-04-19 18:56:49 +00:00
|
|
|
"/sksl/errors/ForInitStmt.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/ForTypeMismatch.sksl",
|
2021-05-21 18:11:38 +00:00
|
|
|
"/sksl/errors/FunctionParameterOfVoid.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/GenericArgumentMismatch.sksl",
|
2021-08-04 20:26:47 +00:00
|
|
|
"/sksl/errors/PrecisionQualifiersDisallowed.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/IfTypeMismatch.sksl",
|
|
|
|
"/sksl/errors/InVarWithInitializerExpression.sksl",
|
|
|
|
"/sksl/errors/InterfaceBlockScope.sksl",
|
|
|
|
"/sksl/errors/InterfaceBlockStorageModifiers.sksl",
|
|
|
|
"/sksl/errors/InterfaceBlockWithNoMembers.sksl",
|
|
|
|
"/sksl/errors/InvalidAssignment.sksl",
|
|
|
|
"/sksl/errors/InvalidOutParams.sksl",
|
|
|
|
"/sksl/errors/InvalidToken.sksl",
|
|
|
|
"/sksl/errors/InvalidUnary.sksl",
|
2021-02-26 16:52:59 +00:00
|
|
|
"/sksl/errors/LayoutInFunctions.sksl",
|
2021-02-23 17:54:22 +00:00
|
|
|
"/sksl/errors/LayoutMultiplePrimitiveTypes.sksl",
|
|
|
|
"/sksl/errors/LayoutRepeatedQualifiers.sksl",
|
2021-07-09 16:41:55 +00:00
|
|
|
"/sksl/errors/MatrixToVectorCast3x3.sksl",
|
2021-07-10 16:48:51 +00:00
|
|
|
"/sksl/errors/MatrixToVectorCastBoolean.sksl",
|
2021-07-10 15:45:29 +00:00
|
|
|
"/sksl/errors/MatrixToVectorCastInteger.sksl",
|
2021-07-09 16:41:55 +00:00
|
|
|
"/sksl/errors/MatrixToVectorCastTooSmall.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/MismatchedNumbers.sksl",
|
|
|
|
"/sksl/errors/ModifiersInStruct.sksl",
|
2021-08-13 03:06:24 +00:00
|
|
|
"/sksl/errors/NoES3ModifierInUserCode.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/OpaqueTypeAssignment.sksl",
|
|
|
|
"/sksl/errors/OpaqueTypeConstruction.sksl",
|
|
|
|
"/sksl/errors/OpaqueTypeInArray.sksl",
|
|
|
|
"/sksl/errors/OpaqueTypeInInterfaceBlock.sksl",
|
|
|
|
"/sksl/errors/OpaqueTypeInStruct.sksl",
|
|
|
|
"/sksl/errors/OpenArray.sksl",
|
|
|
|
"/sksl/errors/Ossfuzz26700.sksl",
|
2021-02-26 16:32:06 +00:00
|
|
|
"/sksl/errors/Ossfuzz27614.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/Ossfuzz27650.sksl",
|
|
|
|
"/sksl/errors/Ossfuzz27663.sksl",
|
2021-04-09 21:20:35 +00:00
|
|
|
"/sksl/errors/Ossfuzz28050.sksl",
|
|
|
|
"/sksl/errors/Ossfuzz29444.sksl",
|
2021-01-25 18:49:05 +00:00
|
|
|
"/sksl/errors/Ossfuzz29845.sksl",
|
2021-01-26 15:13:58 +00:00
|
|
|
"/sksl/errors/Ossfuzz29849.sksl",
|
2021-02-26 16:32:06 +00:00
|
|
|
"/sksl/errors/Ossfuzz31410.sksl",
|
2021-03-01 15:08:08 +00:00
|
|
|
"/sksl/errors/Ossfuzz31469.sksl",
|
2021-05-29 15:23:07 +00:00
|
|
|
"/sksl/errors/Ossfuzz32156.sksl",
|
2021-03-29 13:38:59 +00:00
|
|
|
"/sksl/errors/Ossfuzz32587.sksl",
|
2021-04-05 18:45:14 +00:00
|
|
|
"/sksl/errors/Ossfuzz32851.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/OverflowFloatLiteral.sksl",
|
|
|
|
"/sksl/errors/OverflowIntLiteral.sksl",
|
2021-06-01 15:16:34 +00:00
|
|
|
"/sksl/errors/OverflowInt64Literal.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/OverflowParamArraySize.sksl",
|
|
|
|
"/sksl/errors/OverflowUintLiteral.sksl",
|
2021-02-12 21:05:00 +00:00
|
|
|
"/sksl/errors/PrototypeInFuncBody.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/PrivateTypes.sksl",
|
|
|
|
"/sksl/errors/RedeclareBasicType.sksl",
|
|
|
|
"/sksl/errors/RedeclareSamplerType.sksl",
|
|
|
|
"/sksl/errors/RedeclareStruct.sksl",
|
|
|
|
"/sksl/errors/RedeclareStructTypeWithName.sksl",
|
|
|
|
"/sksl/errors/RedeclareUserType.sksl",
|
|
|
|
"/sksl/errors/RedeclareVariable.sksl",
|
|
|
|
"/sksl/errors/ReturnDifferentType.sksl",
|
|
|
|
"/sksl/errors/ReturnFromVoid.sksl",
|
|
|
|
"/sksl/errors/ReturnMissingValue.sksl",
|
|
|
|
"/sksl/errors/ReturnTypeMismatch.sksl",
|
|
|
|
"/sksl/errors/SelfReferentialInitializerExpression.sksl",
|
|
|
|
"/sksl/errors/SpuriousFloat.sksl",
|
|
|
|
"/sksl/errors/StaticIfTest.sksl",
|
|
|
|
"/sksl/errors/StaticSwitchConditionalBreak.sksl",
|
|
|
|
"/sksl/errors/StaticSwitchTest.sksl",
|
2021-02-23 14:58:04 +00:00
|
|
|
"/sksl/errors/StaticSwitchWithConditionalBreak.sksl",
|
|
|
|
"/sksl/errors/StaticSwitchWithConditionalContinue.sksl",
|
|
|
|
"/sksl/errors/StaticSwitchWithConditionalReturn.sksl",
|
2021-01-28 14:46:30 +00:00
|
|
|
"/sksl/errors/StructNameWithoutIdentifier.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/StructTooDeeplyNested.sksl",
|
|
|
|
"/sksl/errors/SwitchDuplicateCase.sksl",
|
2021-02-19 20:13:46 +00:00
|
|
|
"/sksl/errors/SwitchDuplicateDefault.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/SwitchTypes.sksl",
|
|
|
|
"/sksl/errors/SwizzleConstantOutput.sksl",
|
2021-07-09 19:29:10 +00:00
|
|
|
"/sksl/errors/SwizzleDomain.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/SwizzleMatrix.sksl",
|
|
|
|
"/sksl/errors/SwizzleOnlyLiterals.sksl",
|
|
|
|
"/sksl/errors/SwizzleOutOfBounds.sksl",
|
|
|
|
"/sksl/errors/SwizzleTooManyComponents.sksl",
|
|
|
|
"/sksl/errors/TernaryMismatch.sksl",
|
|
|
|
"/sksl/errors/UndeclaredFunction.sksl",
|
|
|
|
"/sksl/errors/UndefinedFunction.sksl",
|
|
|
|
"/sksl/errors/UndefinedSymbol.sksl",
|
2021-02-17 21:24:04 +00:00
|
|
|
"/sksl/errors/UniformVarWithInitializerExpression.sksl",
|
2021-02-05 21:21:10 +00:00
|
|
|
"/sksl/errors/UnknownDivideByZero.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/UnsupportedGLSLIdentifiers.sksl",
|
2021-01-26 15:13:58 +00:00
|
|
|
"/sksl/errors/UnscopedVariableInDoWhile.sksl",
|
|
|
|
"/sksl/errors/UnscopedVariableInElse.sksl",
|
2021-03-04 15:46:39 +00:00
|
|
|
"/sksl/errors/UnscopedVariableInFor.sksl",
|
2021-01-26 15:13:58 +00:00
|
|
|
"/sksl/errors/UnscopedVariableInIf.sksl",
|
|
|
|
"/sksl/errors/UnscopedVariableInWhile.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/UsingInvalidValue.sksl",
|
2021-07-12 19:48:27 +00:00
|
|
|
"/sksl/errors/VectorSlice.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/WhileTypeMismatch.sksl",
|
2020-09-24 20:42:09 +00:00
|
|
|
]
|
|
|
|
|
2020-09-24 21:22:42 +00:00
|
|
|
sksl_glsl_tests = [
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/glsl/ForceHighPrecision.sksl",
|
|
|
|
"/sksl/glsl/IncompleteShortIntPrecision.sksl",
|
|
|
|
"/sksl/glsl/LayoutQualifiers.sksl",
|
|
|
|
"/sksl/glsl/ShortIntPrecision.sksl",
|
|
|
|
"/sksl/glsl/TextureSharpenVersion110.sksl",
|
|
|
|
"/sksl/glsl/TextureVersion110.sksl",
|
|
|
|
"/sksl/glsl/UsesPrecisionModifiers.sksl",
|
|
|
|
"/sksl/glsl/Version110.sksl",
|
|
|
|
"/sksl/glsl/Version450Core.sksl",
|
2020-09-24 21:22:42 +00:00
|
|
|
]
|
|
|
|
|
2020-11-13 23:14:11 +00:00
|
|
|
sksl_metal_tests = [
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/metal/CastHalf4ToMat2x2.sksl",
|
|
|
|
"/sksl/metal/CastMat2x2ToMat3x3.sksl",
|
|
|
|
"/sksl/metal/CastMat2x3ToMat4x4.sksl",
|
|
|
|
"/sksl/metal/CastMat4x4ToMat3x4.sksl",
|
|
|
|
"/sksl/metal/CastMat4x4ToMat4x3.sksl",
|
|
|
|
"/sksl/metal/NumericGlobals.sksl",
|
|
|
|
"/sksl/metal/OpaqueTypeInInterfaceBlock.sksl",
|
|
|
|
"/sksl/metal/OpaqueTypeInStruct.sksl",
|
|
|
|
"/sksl/metal/OutParams.sksl",
|
|
|
|
"/sksl/metal/OutVarsRequireLocation.sksl",
|
|
|
|
"/sksl/metal/SamplerGlobals.sksl",
|
|
|
|
"/sksl/metal/SwizzleHelper.sksl",
|
2020-11-13 23:14:11 +00:00
|
|
|
]
|
|
|
|
|
2020-11-25 21:55:37 +00:00
|
|
|
sksl_spirv_tests = [
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/spirv/ConstantVectorFromVector.sksl",
|
2021-01-22 18:41:40 +00:00
|
|
|
"/sksl/spirv/InterfaceBlockPushConstant.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/spirv/LayoutMultipleOf4.sksl",
|
|
|
|
"/sksl/spirv/LayoutOutOfOrder.sksl",
|
|
|
|
"/sksl/spirv/OpaqueTypeInArray.sksl",
|
2021-03-23 21:12:03 +00:00
|
|
|
"/sksl/workarounds/RewriteMatrixVectorMultiply.sksl",
|
2021-08-05 16:19:35 +00:00
|
|
|
"/sksl/errors/Ossfuzz36850.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/errors/UndefinedFunction.sksl",
|
2021-04-19 13:35:38 +00:00
|
|
|
"/sksl/errors/UnusedInterfaceBlock.sksl",
|
2020-11-25 21:55:37 +00:00
|
|
|
]
|
|
|
|
|
2020-09-24 21:22:42 +00:00
|
|
|
sksl_shared_tests = [
|
2021-01-29 16:44:13 +00:00
|
|
|
"/sksl/intrinsics/AbsFloat.sksl",
|
|
|
|
"/sksl/intrinsics/AbsInt.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/intrinsics/Acos.sksl",
|
|
|
|
"/sksl/intrinsics/Acosh.sksl",
|
|
|
|
"/sksl/intrinsics/All.sksl",
|
|
|
|
"/sksl/intrinsics/Any.sksl",
|
|
|
|
"/sksl/intrinsics/Asin.sksl",
|
|
|
|
"/sksl/intrinsics/Asinh.sksl",
|
|
|
|
"/sksl/intrinsics/Atan.sksl",
|
|
|
|
"/sksl/intrinsics/Atanh.sksl",
|
|
|
|
"/sksl/intrinsics/BitCount.sksl",
|
|
|
|
"/sksl/intrinsics/Ceil.sksl",
|
Implement additional Runtime Effect intrinsic tests.
Tested in dm:
- max(halfN, halfN)
- max(halfN, half)
- min(halfN, halfN)
- min(halfN, half)
- clamp(halfN, halfN, halfN)
- clamp(halfN, half, half)
- mix(halfN, halfN, halfN)
- mix(halfN, halfN, half)
Compiled outputs only (not in ES2):
- max(intN, intN)
- max(intN, int)
- min(intN, intN)
- min(intN, int)
- clamp(intN, intN, intN)
- clamp(intN, int, int)
- mix(halfN, halfN, boolN) - broken in Metal/SPIR-V (skia:11222)
- mix(intN, intN, boolN) - broken in Metal/SPIR-V (skia:11222)
Change-Id: Iaafc5429b16d2a8710b9d171ae281c268c0fd70d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/361438
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2021-01-29 16:51:47 +00:00
|
|
|
"/sksl/intrinsics/ClampFloat.sksl",
|
|
|
|
"/sksl/intrinsics/ClampInt.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/intrinsics/Cos.sksl",
|
|
|
|
"/sksl/intrinsics/Cosh.sksl",
|
|
|
|
"/sksl/intrinsics/Cross.sksl",
|
2021-03-22 15:43:11 +00:00
|
|
|
"/sksl/intrinsics/CrossNoInline.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/intrinsics/Degrees.sksl",
|
|
|
|
"/sksl/intrinsics/Determinant.sksl",
|
|
|
|
"/sksl/intrinsics/DFdx.sksl",
|
|
|
|
"/sksl/intrinsics/DFdy.sksl",
|
|
|
|
"/sksl/intrinsics/Distance.sksl",
|
|
|
|
"/sksl/intrinsics/Dot.sksl",
|
|
|
|
"/sksl/intrinsics/Equal.sksl",
|
|
|
|
"/sksl/intrinsics/Exp.sksl",
|
|
|
|
"/sksl/intrinsics/Exp2.sksl",
|
|
|
|
"/sksl/intrinsics/FaceForward.sksl",
|
|
|
|
"/sksl/intrinsics/FindLSB.sksl",
|
|
|
|
"/sksl/intrinsics/FindMSB.sksl",
|
|
|
|
"/sksl/intrinsics/FloatBitsToInt.sksl",
|
|
|
|
"/sksl/intrinsics/FloatBitsToUint.sksl",
|
|
|
|
"/sksl/intrinsics/Floor.sksl",
|
|
|
|
"/sksl/intrinsics/Fma.sksl",
|
|
|
|
"/sksl/intrinsics/Fract.sksl",
|
|
|
|
"/sksl/intrinsics/Frexp.sksl",
|
|
|
|
"/sksl/intrinsics/Fwidth.sksl",
|
|
|
|
"/sksl/intrinsics/GreaterThan.sksl",
|
|
|
|
"/sksl/intrinsics/GreaterThanEqual.sksl",
|
|
|
|
"/sksl/intrinsics/IntBitsToFloat.sksl",
|
|
|
|
"/sksl/intrinsics/Inverse.sksl",
|
|
|
|
"/sksl/intrinsics/Inversesqrt.sksl",
|
|
|
|
"/sksl/intrinsics/IsInf.sksl",
|
|
|
|
"/sksl/intrinsics/IsNan.sksl",
|
|
|
|
"/sksl/intrinsics/Ldexp.sksl",
|
|
|
|
"/sksl/intrinsics/Length.sksl",
|
|
|
|
"/sksl/intrinsics/LessThan.sksl",
|
|
|
|
"/sksl/intrinsics/LessThanEqual.sksl",
|
|
|
|
"/sksl/intrinsics/Log.sksl",
|
|
|
|
"/sksl/intrinsics/Log2.sksl",
|
|
|
|
"/sksl/intrinsics/MatrixCompMult.sksl",
|
Implement additional Runtime Effect intrinsic tests.
Tested in dm:
- max(halfN, halfN)
- max(halfN, half)
- min(halfN, halfN)
- min(halfN, half)
- clamp(halfN, halfN, halfN)
- clamp(halfN, half, half)
- mix(halfN, halfN, halfN)
- mix(halfN, halfN, half)
Compiled outputs only (not in ES2):
- max(intN, intN)
- max(intN, int)
- min(intN, intN)
- min(intN, int)
- clamp(intN, intN, intN)
- clamp(intN, int, int)
- mix(halfN, halfN, boolN) - broken in Metal/SPIR-V (skia:11222)
- mix(intN, intN, boolN) - broken in Metal/SPIR-V (skia:11222)
Change-Id: Iaafc5429b16d2a8710b9d171ae281c268c0fd70d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/361438
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2021-01-29 16:51:47 +00:00
|
|
|
"/sksl/intrinsics/MaxFloat.sksl",
|
|
|
|
"/sksl/intrinsics/MaxInt.sksl",
|
|
|
|
"/sksl/intrinsics/MinFloat.sksl",
|
|
|
|
"/sksl/intrinsics/MinInt.sksl",
|
|
|
|
"/sksl/intrinsics/MixFloat.sksl",
|
|
|
|
"/sksl/intrinsics/MixBool.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/intrinsics/Mod.sksl",
|
|
|
|
"/sksl/intrinsics/Modf.sksl",
|
|
|
|
"/sksl/intrinsics/Normalize.sksl",
|
|
|
|
"/sksl/intrinsics/Not.sksl",
|
|
|
|
"/sksl/intrinsics/NotEqual.sksl",
|
|
|
|
"/sksl/intrinsics/OuterProduct.sksl",
|
|
|
|
"/sksl/intrinsics/Pack.sksl",
|
|
|
|
"/sksl/intrinsics/Pow.sksl",
|
|
|
|
"/sksl/intrinsics/Radians.sksl",
|
|
|
|
"/sksl/intrinsics/Reflect.sksl",
|
|
|
|
"/sksl/intrinsics/Refract.sksl",
|
|
|
|
"/sksl/intrinsics/Round.sksl",
|
|
|
|
"/sksl/intrinsics/RoundEven.sksl",
|
|
|
|
"/sksl/intrinsics/Saturate.sksl",
|
2021-01-29 16:44:13 +00:00
|
|
|
"/sksl/intrinsics/SignFloat.sksl",
|
|
|
|
"/sksl/intrinsics/SignInt.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/intrinsics/Sin.sksl",
|
|
|
|
"/sksl/intrinsics/Sinh.sksl",
|
|
|
|
"/sksl/intrinsics/Smoothstep.sksl",
|
|
|
|
"/sksl/intrinsics/Sqrt.sksl",
|
|
|
|
"/sksl/intrinsics/Step.sksl",
|
|
|
|
"/sksl/intrinsics/Tan.sksl",
|
|
|
|
"/sksl/intrinsics/Tanh.sksl",
|
|
|
|
"/sksl/intrinsics/Transpose.sksl",
|
|
|
|
"/sksl/intrinsics/Trunc.sksl",
|
|
|
|
"/sksl/intrinsics/UintBitsToFloat.sksl",
|
|
|
|
"/sksl/intrinsics/Unpack.sksl",
|
Add support for array-cast syntax in SkSL.
Compiling a program with "allow narrowing conversions" actually fixes up
narrowing casts in the program by inserting casts wherever they would be
needed for type-correctness. For instance, compiling the statement
`half h = myFloat;`
inserts an appropriate narrowing cast:
`half h = half(myFloat);`.
The Pipeline stage code generator relies on this behavior, as when it
re-emits a runtime effect into a complete SkSL program, the narrowing-
conversions flag will no longer be set, but that is okay, because the
emitted code now contains typecasts anywhere they would be necessary.
Logically, this implies that anything which supports narrowing
conversions must be castable between high and low precision. In GLSL and
SPIR-V, such a cast is trivial, because the types are the same and the
precision qualifiers are treated as individual hints on each variable.
In Metal, we dodge the issue by only emitting full-precision types. But
we also need to emit raw SkSL from an SkSL program (that is what the
Pipeline stage generator does).
SkSL already supported every typical cast, but GLSL lacked any syntax
for casting an array to a different type. This meant SkSL had no array
casting syntax as well. SkSL now has array-cast syntax, but it is only
allowed for casting low/high-precision arrays to the same base type.
(You can't cast an int array to float, or a signed array to unsigned.)
Change-Id: Ia20933541c3bd4a946c1ea38209f93008acdb9cb
Bug: skia:12248
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/437687
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
2021-08-10 20:03:44 +00:00
|
|
|
"/sksl/shared/ArrayCast.sksl",
|
2021-04-09 03:30:51 +00:00
|
|
|
"/sksl/shared/ArrayComparison.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/ArrayConstructors.sksl",
|
|
|
|
"/sksl/shared/ArrayIndexTypes.sksl",
|
2021-08-04 17:27:05 +00:00
|
|
|
"/sksl/shared/ArrayNarrowingConversions.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/ArrayTypes.sksl",
|
|
|
|
"/sksl/shared/Assignment.sksl",
|
|
|
|
"/sksl/shared/Caps.sksl",
|
|
|
|
"/sksl/shared/CastsRoundTowardZero.sksl",
|
|
|
|
"/sksl/shared/Clockwise.sksl",
|
2021-02-02 18:58:42 +00:00
|
|
|
"/sksl/shared/CommaMixedTypes.sksl",
|
2021-01-30 16:06:18 +00:00
|
|
|
"/sksl/shared/CommaSideEffects.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/ComplexDelete.sksl",
|
|
|
|
"/sksl/shared/ConstArray.sksl",
|
|
|
|
"/sksl/shared/ConstVariableComparison.sksl",
|
|
|
|
"/sksl/shared/ConstantIf.sksl",
|
|
|
|
"/sksl/shared/Control.sksl",
|
|
|
|
"/sksl/shared/DeadDoWhileLoop.sksl",
|
|
|
|
"/sksl/shared/DeadIfStatement.sksl",
|
|
|
|
"/sksl/shared/DeadLoopVariable.sksl",
|
2021-05-17 18:46:05 +00:00
|
|
|
"/sksl/shared/DeadReturn.sksl",
|
2021-05-20 18:38:40 +00:00
|
|
|
"/sksl/shared/DeadReturnES3.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/DeadStripFunctions.sksl",
|
|
|
|
"/sksl/shared/DependentInitializers.sksl",
|
|
|
|
"/sksl/shared/DerivativesUnused.sksl",
|
|
|
|
"/sksl/shared/Discard.sksl",
|
2021-01-26 15:37:41 +00:00
|
|
|
"/sksl/shared/DoWhileControlFlow.sksl",
|
2021-02-01 16:52:10 +00:00
|
|
|
"/sksl/shared/EmptyBlocksES2.sksl",
|
|
|
|
"/sksl/shared/EmptyBlocksES3.sksl",
|
2021-01-26 16:06:42 +00:00
|
|
|
"/sksl/shared/ForLoopControlFlow.sksl",
|
2021-04-14 19:05:49 +00:00
|
|
|
"/sksl/shared/ForLoopMultipleInit.sksl",
|
2021-07-07 13:41:17 +00:00
|
|
|
"/sksl/shared/FragCoords.sksl",
|
2021-02-01 21:36:13 +00:00
|
|
|
"/sksl/shared/FunctionArgTypeMatch.sksl",
|
|
|
|
"/sksl/shared/FunctionReturnTypeMatch.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/FunctionPrototype.sksl",
|
|
|
|
"/sksl/shared/Functions.sksl",
|
|
|
|
"/sksl/shared/GaussianBlur.sksl",
|
|
|
|
"/sksl/shared/GeometricIntrinsics.sksl",
|
|
|
|
"/sksl/shared/Geometry.geom",
|
|
|
|
"/sksl/shared/GeometryExtension.geom",
|
|
|
|
"/sksl/shared/GeometryGSInvocations.geom",
|
|
|
|
"/sksl/shared/GeometryNoGSInvocations.geom",
|
|
|
|
"/sksl/shared/GeometryNoGSInvocationsReorder.geom",
|
|
|
|
"/sksl/shared/HelloWorld.sksl",
|
|
|
|
"/sksl/shared/Hex.sksl",
|
2021-02-03 22:44:47 +00:00
|
|
|
"/sksl/shared/HexUnsigned.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/InstanceID.vert",
|
|
|
|
"/sksl/shared/InterfaceBlockNamed.sksl",
|
2021-01-28 16:47:29 +00:00
|
|
|
"/sksl/shared/InterfaceBlockNamedArray.sksl",
|
2021-02-03 18:03:29 +00:00
|
|
|
"/sksl/shared/Matrices.sksl",
|
|
|
|
"/sksl/shared/MatricesNonsquare.sksl",
|
2021-02-10 17:21:51 +00:00
|
|
|
"/sksl/shared/MatrixEquality.sksl",
|
2021-05-15 00:03:01 +00:00
|
|
|
"/sksl/shared/MatrixScalarSplat.sksl",
|
2021-07-08 22:20:21 +00:00
|
|
|
"/sksl/shared/MatrixToVectorCast.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/MultipleAssignments.sksl",
|
|
|
|
"/sksl/shared/NegatedVectorLiteral.sksl",
|
|
|
|
"/sksl/shared/NoFragCoordsPos.vert",
|
|
|
|
"/sksl/shared/NoFragCoordsPosRT.vert",
|
|
|
|
"/sksl/shared/NormalizationGeo.geom",
|
|
|
|
"/sksl/shared/NormalizationVert.vert",
|
|
|
|
"/sksl/shared/NumberCasts.sksl",
|
|
|
|
"/sksl/shared/NumberConversions.sksl",
|
|
|
|
"/sksl/shared/Offset.sksl",
|
2021-01-30 16:08:13 +00:00
|
|
|
"/sksl/shared/OperatorsES2.sksl",
|
|
|
|
"/sksl/shared/OperatorsES3.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/Ossfuzz26167.sksl",
|
2021-03-22 19:42:16 +00:00
|
|
|
"/sksl/shared/Ossfuzz26759.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/Ossfuzz28794.sksl",
|
|
|
|
"/sksl/shared/Ossfuzz28904.sksl",
|
2021-03-22 19:42:16 +00:00
|
|
|
"/sksl/shared/Ossfuzz29085.sksl",
|
2021-02-01 18:48:50 +00:00
|
|
|
"/sksl/shared/Ossfuzz29494.sksl",
|
2021-08-02 15:56:16 +00:00
|
|
|
"/sksl/shared/Ossfuzz36770.sksl",
|
2021-08-05 15:49:05 +00:00
|
|
|
"/sksl/shared/Ossfuzz36852.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/OutParams.sksl",
|
2021-03-17 15:16:41 +00:00
|
|
|
"/sksl/shared/OutParamsNoInline.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/OutParamsTricky.sksl",
|
2021-05-26 20:43:19 +00:00
|
|
|
"/sksl/shared/Overflow.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/RectangleTexture.sksl",
|
|
|
|
"/sksl/shared/ResizeMatrix.sksl",
|
2021-02-05 14:31:21 +00:00
|
|
|
"/sksl/shared/ResizeMatrixNonsquare.sksl",
|
2021-01-27 00:58:22 +00:00
|
|
|
"/sksl/shared/ReturnBadTypeFromMain.sksl",
|
|
|
|
"/sksl/shared/ReturnColorFromMain.sksl",
|
2021-03-04 21:00:20 +00:00
|
|
|
"/sksl/shared/ReturnsValueOnEveryPathES2.sksl",
|
|
|
|
"/sksl/shared/ReturnsValueOnEveryPathES3.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/SampleLocations.vert",
|
2021-02-05 14:31:21 +00:00
|
|
|
"/sksl/shared/ScalarConversionConstructorsES2.sksl",
|
|
|
|
"/sksl/shared/ScalarConversionConstructorsES3.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/ScopedSymbol.sksl",
|
|
|
|
"/sksl/shared/StackingVectorCasts.sksl",
|
|
|
|
"/sksl/shared/StaticIf.sksl",
|
|
|
|
"/sksl/shared/StaticSwitch.sksl",
|
|
|
|
"/sksl/shared/StaticSwitchWithBreak.sksl",
|
|
|
|
"/sksl/shared/StaticSwitchWithBreakInsideBlock.sksl",
|
|
|
|
"/sksl/shared/StaticSwitchWithConditionalBreak.sksl",
|
|
|
|
"/sksl/shared/StaticSwitchWithConditionalBreakInsideBlock.sksl",
|
2021-02-23 14:58:04 +00:00
|
|
|
"/sksl/shared/StaticSwitchWithContinue.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/StaticSwitchWithFallthroughA.sksl",
|
|
|
|
"/sksl/shared/StaticSwitchWithFallthroughB.sksl",
|
|
|
|
"/sksl/shared/StaticSwitchWithStaticConditionalBreak.sksl",
|
|
|
|
"/sksl/shared/StaticSwitchWithStaticConditionalBreakInsideBlock.sksl",
|
|
|
|
"/sksl/shared/Structs.sksl",
|
2021-01-27 18:53:43 +00:00
|
|
|
"/sksl/shared/StructsInFunctions.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/StructMaxDepth.sksl",
|
|
|
|
"/sksl/shared/Switch.sksl",
|
|
|
|
"/sksl/shared/SwitchContainingDeadCode.sksl",
|
|
|
|
"/sksl/shared/SwitchWithFallthrough.sksl",
|
|
|
|
"/sksl/shared/SwizzleBoolConstants.sksl",
|
2021-02-05 21:24:03 +00:00
|
|
|
"/sksl/shared/SwizzleByConstantIndex.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/SwizzleByIndex.sksl",
|
|
|
|
"/sksl/shared/SwizzleConstants.sksl",
|
|
|
|
"/sksl/shared/SwizzleLTRB.sksl",
|
|
|
|
"/sksl/shared/SwizzleOpt.sksl",
|
|
|
|
"/sksl/shared/SwizzleScalar.sksl",
|
2021-07-12 18:59:19 +00:00
|
|
|
"/sksl/shared/SwizzleScalarBool.sksl",
|
|
|
|
"/sksl/shared/SwizzleScalarInt.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/TernaryAsLValueEntirelyFoldable.sksl",
|
|
|
|
"/sksl/shared/TernaryAsLValueFoldableTest.sksl",
|
2021-03-05 20:22:48 +00:00
|
|
|
"/sksl/shared/TernaryExpression.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/Texture1D.sksl",
|
|
|
|
"/sksl/shared/Texture2D.sksl",
|
|
|
|
"/sksl/shared/TextureSharpen.sksl",
|
|
|
|
"/sksl/shared/UnaryPositiveNegative.sksl",
|
|
|
|
"/sksl/shared/UniformArray.sksl",
|
2021-01-28 16:47:29 +00:00
|
|
|
"/sksl/shared/UniformBuffers.sksl",
|
|
|
|
"/sksl/shared/Uniforms.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/UnusedVariables.sksl",
|
|
|
|
"/sksl/shared/VectorConstructors.sksl",
|
2021-03-25 15:43:40 +00:00
|
|
|
"/sksl/shared/VectorScalarMath.sksl",
|
2021-07-08 22:20:21 +00:00
|
|
|
"/sksl/shared/VectorToMatrixCast.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/shared/VertexEarlyReturn.vert",
|
|
|
|
"/sksl/shared/VertexID.vert",
|
2021-01-26 16:16:34 +00:00
|
|
|
"/sksl/shared/WhileLoopControlFlow.sksl",
|
2020-09-24 20:42:09 +00:00
|
|
|
]
|
|
|
|
|
2021-01-11 16:07:01 +00:00
|
|
|
sksl_folding_tests = [
|
2021-03-31 14:38:45 +00:00
|
|
|
"/sksl/folding/ArrayFolding.sksl",
|
2021-02-09 15:38:59 +00:00
|
|
|
"/sksl/folding/AssignmentOps.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/folding/BoolFolding.sksl",
|
2021-05-07 15:16:26 +00:00
|
|
|
"/sksl/folding/CastFolding.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/folding/FloatFolding.sksl",
|
|
|
|
"/sksl/folding/IntFoldingES2.sksl",
|
|
|
|
"/sksl/folding/IntFoldingES3.sksl",
|
|
|
|
"/sksl/folding/MatrixFoldingES2.sksl",
|
|
|
|
"/sksl/folding/MatrixFoldingES3.sksl",
|
2021-02-10 19:04:24 +00:00
|
|
|
"/sksl/folding/SelfAssignment.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/folding/ShortCircuitBoolFolding.sksl",
|
2021-04-29 15:14:38 +00:00
|
|
|
"/sksl/folding/SwizzleFolding.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/folding/VectorScalarFolding.sksl",
|
|
|
|
"/sksl/folding/VectorVectorFolding.sksl",
|
2021-01-11 16:07:01 +00:00
|
|
|
]
|
|
|
|
|
2020-09-24 20:42:09 +00:00
|
|
|
sksl_inliner_tests = [
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/inliner/DoWhileBodyMustBeInlinedIntoAScope.sksl",
|
|
|
|
"/sksl/inliner/DoWhileTestCannotBeInlined.sksl",
|
|
|
|
"/sksl/inliner/ForBodyMustBeInlinedIntoAScope.sksl",
|
|
|
|
"/sksl/inliner/ForInitializerExpressionsCanBeInlined.sksl",
|
|
|
|
"/sksl/inliner/ForWithReturnInsideCannotBeInlined.sksl",
|
|
|
|
"/sksl/inliner/ForWithoutReturnInsideCanBeInlined.sksl",
|
|
|
|
"/sksl/inliner/IfBodyMustBeInlinedIntoAScope.sksl",
|
|
|
|
"/sksl/inliner/IfElseBodyMustBeInlinedIntoAScope.sksl",
|
|
|
|
"/sksl/inliner/IfElseChainWithReturnsCanBeInlined.sksl",
|
|
|
|
"/sksl/inliner/IfTestCanBeInlined.sksl",
|
|
|
|
"/sksl/inliner/IfWithReturnsCanBeInlined.sksl",
|
|
|
|
"/sksl/inliner/InlineKeywordOverridesThreshold.sksl",
|
|
|
|
"/sksl/inliner/InlineThreshold.sksl",
|
|
|
|
"/sksl/inliner/InlinerElidesTempVarForReturnsInsideBlock.sksl",
|
|
|
|
"/sksl/inliner/InlinerUsesTempVarForMultipleReturns.sksl",
|
|
|
|
"/sksl/inliner/InlinerUsesTempVarForReturnsInsideBlockWithVar.sksl",
|
|
|
|
"/sksl/inliner/InlineWithInoutArgument.sksl",
|
|
|
|
"/sksl/inliner/InlineWithModifiedArgument.sksl",
|
|
|
|
"/sksl/inliner/InlineWithNestedBigCalls.sksl",
|
|
|
|
"/sksl/inliner/InlineWithNestedCalls.sksl",
|
|
|
|
"/sksl/inliner/InlineWithUnmodifiedArgument.sksl",
|
|
|
|
"/sksl/inliner/InlineWithUnnecessaryBlocks.sksl",
|
|
|
|
"/sksl/inliner/InlinerAvoidsVariableNameOverlap.sksl",
|
2021-02-13 16:25:51 +00:00
|
|
|
"/sksl/inliner/InlinerHonorsGLSLOutParamSemantics.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/inliner/InlinerManglesNames.sksl",
|
2021-03-10 03:14:27 +00:00
|
|
|
"/sksl/inliner/NoInline.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/inliner/ShortCircuitEvaluationsCannotInlineRightHandSide.sksl",
|
2021-02-20 13:00:43 +00:00
|
|
|
"/sksl/inliner/StaticSwitch.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/inliner/StructsCanBeInlinedSafely.sksl",
|
|
|
|
"/sksl/inliner/SwitchWithCastCanBeInlined.sksl",
|
|
|
|
"/sksl/inliner/SwitchWithoutReturnInsideCanBeInlined.sksl",
|
|
|
|
"/sksl/inliner/SwizzleCanBeInlinedDirectly.sksl",
|
|
|
|
"/sksl/inliner/TernaryResultsCannotBeInlined.sksl",
|
|
|
|
"/sksl/inliner/TernaryTestCanBeInlined.sksl",
|
|
|
|
"/sksl/inliner/TrivialArgumentsInlineDirectly.sksl",
|
|
|
|
"/sksl/inliner/WhileBodyMustBeInlinedIntoAScope.sksl",
|
|
|
|
"/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 = [
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/blend/BlendClear.sksl",
|
|
|
|
"/sksl/blend/BlendColor.sksl",
|
|
|
|
"/sksl/blend/BlendColorBurn.sksl",
|
|
|
|
"/sksl/blend/BlendColorDodge.sksl",
|
|
|
|
"/sksl/blend/BlendDarken.sksl",
|
|
|
|
"/sksl/blend/BlendDifference.sksl",
|
|
|
|
"/sksl/blend/BlendDst.sksl",
|
|
|
|
"/sksl/blend/BlendDstAtop.sksl",
|
|
|
|
"/sksl/blend/BlendDstIn.sksl",
|
|
|
|
"/sksl/blend/BlendDstOut.sksl",
|
|
|
|
"/sksl/blend/BlendDstOver.sksl",
|
|
|
|
"/sksl/blend/BlendExclusion.sksl",
|
|
|
|
"/sksl/blend/BlendHardLight.sksl",
|
|
|
|
"/sksl/blend/BlendHue.sksl",
|
|
|
|
"/sksl/blend/BlendLighten.sksl",
|
|
|
|
"/sksl/blend/BlendLuminosity.sksl",
|
|
|
|
"/sksl/blend/BlendModulate.sksl",
|
|
|
|
"/sksl/blend/BlendMultiply.sksl",
|
|
|
|
"/sksl/blend/BlendOverlay.sksl",
|
|
|
|
"/sksl/blend/BlendPlus.sksl",
|
|
|
|
"/sksl/blend/BlendSaturation.sksl",
|
|
|
|
"/sksl/blend/BlendScreen.sksl",
|
|
|
|
"/sksl/blend/BlendSoftLight.sksl",
|
|
|
|
"/sksl/blend/BlendSrc.sksl",
|
|
|
|
"/sksl/blend/BlendSrcAtop.sksl",
|
|
|
|
"/sksl/blend/BlendSrcIn.sksl",
|
|
|
|
"/sksl/blend/BlendSrcOut.sksl",
|
|
|
|
"/sksl/blend/BlendSrcOver.sksl",
|
|
|
|
"/sksl/blend/BlendXor.sksl",
|
2020-09-24 20:42:09 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
sksl_settings_tests = [
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/glsl/TypePrecision.sksl",
|
|
|
|
"/sksl/inliner/ExponentialGrowth.sksl",
|
|
|
|
"/sksl/inliner/InlinerCanBeDisabled.sksl",
|
|
|
|
"/sksl/shared/Derivatives.sksl",
|
|
|
|
"/sksl/workarounds/AbsInt.sksl",
|
|
|
|
"/sksl/workarounds/BlendGuardedDivide.sksl",
|
|
|
|
"/sksl/workarounds/BlendModesAllZeroVec.sksl",
|
|
|
|
"/sksl/workarounds/FractNegative.sksl",
|
|
|
|
"/sksl/workarounds/FragCoords.sksl",
|
|
|
|
"/sksl/workarounds/LoopCondition.sksl",
|
|
|
|
"/sksl/workarounds/MinAndAbsTogether.sksl",
|
|
|
|
"/sksl/workarounds/NegatedAtan.sksl",
|
2021-06-08 00:51:42 +00:00
|
|
|
"/sksl/workarounds/NegatedLdexp.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/workarounds/PowWithConstantExponent.sksl",
|
|
|
|
"/sksl/workarounds/RewriteDoWhileLoops.sksl",
|
2021-05-21 21:27:57 +00:00
|
|
|
"/sksl/workarounds/RewriteMatrixComparisons.sksl",
|
2021-03-23 21:12:03 +00:00
|
|
|
"/sksl/workarounds/RewriteMatrixVectorMultiply.sksl",
|
2021-01-22 16:55:48 +00:00
|
|
|
"/sksl/workarounds/TernaryShortCircuit.sksl",
|
2020-09-16 21:46:37 +00:00
|
|
|
]
|
2020-09-24 20:42:09 +00:00
|
|
|
|
2020-12-22 16:28:59 +00:00
|
|
|
sksl_rte_tests = [
|
2021-08-03 15:16:48 +00:00
|
|
|
"/sksl/runtime/AllowNarrowingConversions.rts",
|
2021-04-28 21:41:57 +00:00
|
|
|
"/sksl/runtime/ArrayIndexing.rts",
|
2021-08-05 14:55:03 +00:00
|
|
|
"/sksl/runtime/ArrayNarrowingConversions.rts",
|
2021-06-09 21:24:31 +00:00
|
|
|
"/sksl/runtime/Blend.rtb",
|
2021-04-28 21:41:57 +00:00
|
|
|
"/sksl/runtime/ConstPreservation.rts",
|
|
|
|
"/sksl/runtime/ConversionConstructors.rts",
|
|
|
|
"/sksl/runtime/GLSLTypeNames.rts",
|
|
|
|
"/sksl/runtime/GlobalVariables.rts",
|
|
|
|
"/sksl/runtime/LoopInt.rts",
|
|
|
|
"/sksl/runtime/LoopFloat.rts",
|
2021-08-04 20:03:12 +00:00
|
|
|
"/sksl/runtime/PrecisionQualifiers.rts",
|
2021-04-28 21:41:57 +00:00
|
|
|
"/sksl/runtime/SampleWithExplicitCoord.rts",
|
|
|
|
"/sksl/runtime/VectorIndexing.rts",
|
2020-12-22 16:28:59 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
sksl_rte_error_tests = [
|
2021-04-28 21:41:57 +00:00
|
|
|
"/sksl/runtime_errors/FirstClassArrays.rts",
|
|
|
|
"/sksl/runtime_errors/IllegalArrayOps.rts",
|
|
|
|
"/sksl/runtime_errors/IllegalIndexing.rts",
|
|
|
|
"/sksl/runtime_errors/IllegalOperators.rts",
|
2021-08-04 20:26:47 +00:00
|
|
|
"/sksl/runtime_errors/IllegalPrecisionQualifiers.rts",
|
2021-07-21 19:19:34 +00:00
|
|
|
"/sksl/runtime_errors/IllegalRecursionComplex.rts",
|
|
|
|
"/sksl/runtime_errors/IllegalRecursionMutual.rts",
|
|
|
|
"/sksl/runtime_errors/IllegalRecursionSimple.rts",
|
2021-04-28 21:41:57 +00:00
|
|
|
"/sksl/runtime_errors/IllegalShaderUse.rts",
|
|
|
|
"/sksl/runtime_errors/IllegalStatements.rts",
|
2021-06-08 18:06:22 +00:00
|
|
|
"/sksl/runtime_errors/InvalidBlendMain.rtb",
|
2021-04-12 13:49:20 +00:00
|
|
|
"/sksl/runtime_errors/InvalidColorFilterFeatures.rtcf",
|
|
|
|
"/sksl/runtime_errors/InvalidColorFilterMain.rtcf",
|
|
|
|
"/sksl/runtime_errors/InvalidShaderMain.rts",
|
2021-04-28 21:41:57 +00:00
|
|
|
"/sksl/runtime_errors/LoopConditionErrors.rts",
|
|
|
|
"/sksl/runtime_errors/LoopExpressionErrors.rts",
|
|
|
|
"/sksl/runtime_errors/LoopInitializerErrors.rts",
|
|
|
|
"/sksl/runtime_errors/LoopStructureErrors.rts",
|
2021-08-05 20:50:56 +00:00
|
|
|
"/sksl/runtime_errors/Ossfuzz36655.rts",
|
2021-04-28 21:41:57 +00:00
|
|
|
"/sksl/runtime_errors/UnsupportedTypeFragmentProcessor.rts",
|
|
|
|
"/sksl/runtime_errors/UnsupportedTypeSampler.rts",
|
|
|
|
"/sksl/runtime_errors/UnsupportedTypeTexture.rts",
|
2020-12-22 16:28:59 +00:00
|
|
|
]
|
|
|
|
|
2020-09-24 20:42:09 +00:00
|
|
|
# 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 =
|
2021-01-11 16:07:01 +00:00
|
|
|
sksl_error_tests + sksl_glsl_tests + sksl_inliner_tests +
|
|
|
|
sksl_folding_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
|
2020-12-22 16:28:59 +00:00
|
|
|
|
|
|
|
## Tests in sksl_skvm_tests_sources will be compiled with --settings on, and are expected to
|
|
|
|
## generate a .skvm output file.
|
|
|
|
sksl_skvm_tests_sources = sksl_rte_tests + sksl_rte_error_tests
|
2021-02-08 18:49:53 +00:00
|
|
|
|
|
|
|
## Tests in sksl_stage_tests_sources will be compiled with --settings on, and are expected to
|
|
|
|
## generate a .stage output file.
|
|
|
|
sksl_stage_tests_sources = sksl_rte_tests
|