John Stiles | d836f84 | 2020-09-14 10:21:44 -0400 | [diff] [blame] | 1 | # Copyright 2020 Google LLC |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | |
| 6 | # Things are easiest for everyone if these source paths are absolute. |
| 7 | _tests = get_path_info("../tests", "abspath") |
| 8 | |
John Stiles | 7e24871 | 2020-09-24 16:42:09 -0400 | [diff] [blame^] | 9 | sksl_fp_error_tests = [ |
John Stiles | 6dc5265 | 2020-09-16 18:40:38 -0400 | [diff] [blame] | 10 | "$_tests/sksl/errors/GrBadIn.fp", |
John Stiles | ea9e7ca | 2020-09-14 16:46:40 -0400 | [diff] [blame] | 11 | "$_tests/sksl/errors/GrBothExplicitReturnAndSkOutColor.fp", |
John Stiles | 6dc5265 | 2020-09-16 18:40:38 -0400 | [diff] [blame] | 12 | "$_tests/sksl/errors/GrCannotReturnWithSkOutColor.fp", |
| 13 | "$_tests/sksl/errors/GrNoFragmentProcessorConstruction.fp", |
| 14 | "$_tests/sksl/errors/GrNoFragmentProcessorExpressions.fp", |
| 15 | "$_tests/sksl/errors/GrNoFragmentProcessorLocals.fp", |
| 16 | "$_tests/sksl/errors/GrNoFragmentProcessorParams.fp", |
| 17 | "$_tests/sksl/errors/GrNoFragmentProcessorReturn.fp", |
John Stiles | 7e24871 | 2020-09-24 16:42:09 -0400 | [diff] [blame^] | 18 | ] |
| 19 | |
| 20 | sksl_fp_tests = [ |
John Stiles | 647a9bd | 2020-09-23 11:46:29 -0400 | [diff] [blame] | 21 | "$_tests/sksl/fp/GrChildProcessorAndGlobal.fp", |
| 22 | "$_tests/sksl/fp/GrChildProcessorFieldAccess.fp", |
| 23 | "$_tests/sksl/fp/GrChildProcessorInlineFieldAccess.fp", |
| 24 | "$_tests/sksl/fp/GrChildProcessorSampleCoords.fp", |
| 25 | "$_tests/sksl/fp/GrChildProcessorSampleMatrixAndCoords.fp", |
| 26 | "$_tests/sksl/fp/GrChildProcessorSampleMatrixConstant.fp", |
| 27 | "$_tests/sksl/fp/GrChildProcessorSampleMatrixConstantAndCoords.fp", |
| 28 | "$_tests/sksl/fp/GrChildProcessorSampleMatrixMultipleUniforms.fp", |
| 29 | "$_tests/sksl/fp/GrChildProcessorSampleMatrixSingleInUniform.fp", |
| 30 | "$_tests/sksl/fp/GrChildProcessorSampleMatrixSingleUniform.fp", |
| 31 | "$_tests/sksl/fp/GrChildProcessorSampleMatrixSingleUniformExpr.fp", |
| 32 | "$_tests/sksl/fp/GrChildProcessorWithInputExpression.fp", |
| 33 | "$_tests/sksl/fp/GrChildProcessors.fp", |
| 34 | "$_tests/sksl/fp/GrChildProcessorsWithInput.fp", |
John Stiles | 6dc5265 | 2020-09-16 18:40:38 -0400 | [diff] [blame] | 35 | "$_tests/sksl/fp/GrConditionalInUniform.fp", |
| 36 | "$_tests/sksl/fp/GrFunction.fp", |
John Stiles | 647a9bd | 2020-09-23 11:46:29 -0400 | [diff] [blame] | 37 | "$_tests/sksl/fp/GrGrSLTypesAreSupported.fp", |
John Stiles | ea9e7ca | 2020-09-14 16:46:40 -0400 | [diff] [blame] | 38 | "$_tests/sksl/fp/GrHelloWorld.fp", |
John Stiles | 6dc5265 | 2020-09-16 18:40:38 -0400 | [diff] [blame] | 39 | "$_tests/sksl/fp/GrInUniform.fp", |
| 40 | "$_tests/sksl/fp/GrInUniformCType.fp", |
| 41 | "$_tests/sksl/fp/GrInlinedFunction.fp", |
| 42 | "$_tests/sksl/fp/GrKeyIn.fp", |
John Stiles | 647a9bd | 2020-09-23 11:46:29 -0400 | [diff] [blame] | 43 | "$_tests/sksl/fp/GrLayoutWhen.fp", |
| 44 | "$_tests/sksl/fp/GrMainCoords.fp", |
John Stiles | 6dc5265 | 2020-09-16 18:40:38 -0400 | [diff] [blame] | 45 | "$_tests/sksl/fp/GrNestedChildProcessors.fp", |
| 46 | "$_tests/sksl/fp/GrNonInlinedInUniform.fp", |
| 47 | "$_tests/sksl/fp/GrNullableChildProcessor.fp", |
| 48 | "$_tests/sksl/fp/GrSectionClass.fp", |
| 49 | "$_tests/sksl/fp/GrSectionConstructor.fp", |
| 50 | "$_tests/sksl/fp/GrSectionConstructorParams.fp", |
| 51 | "$_tests/sksl/fp/GrSectionCpp.fp", |
| 52 | "$_tests/sksl/fp/GrSectionDumpInfo.fp", |
| 53 | "$_tests/sksl/fp/GrSectionEmitCode.fp", |
| 54 | "$_tests/sksl/fp/GrSectionFields.fp", |
| 55 | "$_tests/sksl/fp/GrSectionHeader.fp", |
| 56 | "$_tests/sksl/fp/GrSectionInitializers.fp", |
| 57 | "$_tests/sksl/fp/GrSectionMake.fp", |
| 58 | "$_tests/sksl/fp/GrSectionSetData.fp", |
| 59 | "$_tests/sksl/fp/GrSectionTest.fp", |
| 60 | "$_tests/sksl/fp/GrTrackedInUniform.fp", |
| 61 | "$_tests/sksl/fp/GrUniform.fp", |
John Stiles | 647a9bd | 2020-09-23 11:46:29 -0400 | [diff] [blame] | 62 | "$_tests/sksl/fp/GrUniformArrays.fp", |
John Stiles | 6dc5265 | 2020-09-16 18:40:38 -0400 | [diff] [blame] | 63 | "$_tests/sksl/fp/GrUseExplicitReturn.fp", |
John Stiles | ea9e7ca | 2020-09-14 16:46:40 -0400 | [diff] [blame] | 64 | ] |
John Stiles | d836f84 | 2020-09-14 10:21:44 -0400 | [diff] [blame] | 65 | |
John Stiles | 7e24871 | 2020-09-24 16:42:09 -0400 | [diff] [blame^] | 66 | sksl_error_tests = [ |
John Stiles | 6798e5d | 2020-09-17 18:20:26 -0400 | [diff] [blame] | 67 | "$_tests/sksl/errors/ArgumentCountMismatch.sksl", |
| 68 | "$_tests/sksl/errors/ArgumentMismatch.sksl", |
| 69 | "$_tests/sksl/errors/ArgumentModifiers.sksl", |
| 70 | "$_tests/sksl/errors/AssignmentTypeMismatch.sksl", |
| 71 | "$_tests/sksl/errors/BadCaps.sksl", |
| 72 | "$_tests/sksl/errors/BadIndex.sksl", |
| 73 | "$_tests/sksl/errors/BadModifiers.sksl", |
| 74 | "$_tests/sksl/errors/BinaryTypeCoercion.sksl", |
| 75 | "$_tests/sksl/errors/BinaryTypeMismatch.sksl", |
Brian Osman | bf2163f | 2020-09-16 16:21:40 -0400 | [diff] [blame] | 76 | "$_tests/sksl/errors/BitShiftFloat.sksl", |
| 77 | "$_tests/sksl/errors/BitShiftFloatMatrix.sksl", |
| 78 | "$_tests/sksl/errors/BitShiftFloatVector.sksl", |
John Stiles | 6798e5d | 2020-09-17 18:20:26 -0400 | [diff] [blame] | 79 | "$_tests/sksl/errors/BreakOutsideLoop.sksl", |
| 80 | "$_tests/sksl/errors/CallNonFunction.sksl", |
| 81 | "$_tests/sksl/errors/CanExitWithoutReturningValue.sksl", |
| 82 | "$_tests/sksl/errors/ConstructorArgumentCount.sksl", |
| 83 | "$_tests/sksl/errors/ConstructorTypeMismatch.sksl", |
| 84 | "$_tests/sksl/errors/ContinueOutsideLoop.sksl", |
| 85 | "$_tests/sksl/errors/DivideByZero.sksl", |
| 86 | "$_tests/sksl/errors/DoTypeMismatch.sksl", |
| 87 | "$_tests/sksl/errors/DuplicateFunction.sksl", |
| 88 | "$_tests/sksl/errors/DuplicateOutput.sksl", |
| 89 | "$_tests/sksl/errors/DuplicateSymbol.sksl", |
| 90 | "$_tests/sksl/errors/EnumValueMustBeConstInt.sksl", |
| 91 | "$_tests/sksl/errors/ErrorsInDeadCode.sksl", |
| 92 | "$_tests/sksl/errors/FieldAfterRuntimeArray.sksl", |
| 93 | "$_tests/sksl/errors/ForTypeMismatch.sksl", |
| 94 | "$_tests/sksl/errors/GenericArgumentMismatch.sksl", |
| 95 | "$_tests/sksl/errors/IfTypeMismatch.sksl", |
| 96 | "$_tests/sksl/errors/InterfaceBlockScope.sksl", |
| 97 | "$_tests/sksl/errors/InterfaceBlockStorageModifiers.sksl", |
| 98 | "$_tests/sksl/errors/InvalidAssignment.sksl", |
John Stiles | 59b2a92 | 2020-09-23 15:20:01 -0400 | [diff] [blame] | 99 | "$_tests/sksl/errors/InvalidOutParams.sksl", |
John Stiles | 6798e5d | 2020-09-17 18:20:26 -0400 | [diff] [blame] | 100 | "$_tests/sksl/errors/InvalidUnary.sksl", |
John Stiles | ea9e7ca | 2020-09-14 16:46:40 -0400 | [diff] [blame] | 101 | "$_tests/sksl/errors/OpenArray.sksl", |
John Stiles | 6798e5d | 2020-09-17 18:20:26 -0400 | [diff] [blame] | 102 | "$_tests/sksl/errors/ReturnDifferentType.sksl", |
| 103 | "$_tests/sksl/errors/ReturnFromVoid.sksl", |
| 104 | "$_tests/sksl/errors/ReturnMissingValue.sksl", |
| 105 | "$_tests/sksl/errors/ReturnTypeMismatch.sksl", |
| 106 | "$_tests/sksl/errors/SpuriousFloat.sksl", |
| 107 | "$_tests/sksl/errors/StaticIfTest.sksl", |
| 108 | "$_tests/sksl/errors/StaticSwitchConditionalBreak.sksl", |
| 109 | "$_tests/sksl/errors/StaticSwitchTest.sksl", |
| 110 | "$_tests/sksl/errors/SwitchDuplicateCase.sksl", |
| 111 | "$_tests/sksl/errors/SwitchTypes.sksl", |
| 112 | "$_tests/sksl/errors/SwizzleConstantOutput.sksl", |
| 113 | "$_tests/sksl/errors/SwizzleDuplicateOutput.sksl", |
| 114 | "$_tests/sksl/errors/SwizzleMatrix.sksl", |
| 115 | "$_tests/sksl/errors/SwizzleOnlyLiterals.sksl", |
| 116 | "$_tests/sksl/errors/SwizzleOutOfBounds.sksl", |
| 117 | "$_tests/sksl/errors/SwizzleTooManyComponents.sksl", |
| 118 | "$_tests/sksl/errors/TernaryMismatch.sksl", |
| 119 | "$_tests/sksl/errors/UndefinedFunction.sksl", |
John Stiles | ea9e7ca | 2020-09-14 16:46:40 -0400 | [diff] [blame] | 120 | "$_tests/sksl/errors/UndefinedSymbol.sksl", |
John Stiles | 6798e5d | 2020-09-17 18:20:26 -0400 | [diff] [blame] | 121 | "$_tests/sksl/errors/Unreachable.sksl", |
| 122 | "$_tests/sksl/errors/UnsupportedGLSLIdentifiers.sksl", |
| 123 | "$_tests/sksl/errors/UseWithoutInitializeArrayIndex.sksl", |
| 124 | "$_tests/sksl/errors/UseWithoutInitializeBinaryExpr.sksl", |
| 125 | "$_tests/sksl/errors/UseWithoutInitializeDeadIf.sksl", |
| 126 | "$_tests/sksl/errors/UseWithoutInitializeDeadSwitch.sksl", |
| 127 | "$_tests/sksl/errors/UseWithoutInitializeReturnValue.sksl", |
| 128 | "$_tests/sksl/errors/UseWithoutInitializeVarDecl.sksl", |
| 129 | "$_tests/sksl/errors/UsingInvalidValue.sksl", |
| 130 | "$_tests/sksl/errors/WhileTypeMismatch.sksl", |
John Stiles | 7e24871 | 2020-09-24 16:42:09 -0400 | [diff] [blame^] | 131 | ] |
| 132 | |
| 133 | sksl_common_tests = [ |
John Stiles | b024549 | 2020-09-14 17:30:13 -0400 | [diff] [blame] | 134 | "$_tests/sksl/glsl/ArrayConstructors.sksl", |
| 135 | "$_tests/sksl/glsl/ArrayIndexTypes.sksl", |
| 136 | "$_tests/sksl/glsl/ArrayTypes.sksl", |
John Stiles | 6798e5d | 2020-09-17 18:20:26 -0400 | [diff] [blame] | 137 | "$_tests/sksl/glsl/AssignmentTypeMatch.sksl", |
John Stiles | b024549 | 2020-09-14 17:30:13 -0400 | [diff] [blame] | 138 | "$_tests/sksl/glsl/BoolFolding.sksl", |
John Stiles | 9080540 | 2020-09-16 15:32:21 -0400 | [diff] [blame] | 139 | "$_tests/sksl/glsl/Caps.sksl", |
| 140 | "$_tests/sksl/glsl/CastsRoundTowardZero.sksl", |
John Stiles | b024549 | 2020-09-14 17:30:13 -0400 | [diff] [blame] | 141 | "$_tests/sksl/glsl/ClipDistanceFragment.sksl", |
| 142 | "$_tests/sksl/glsl/ClipDistanceVertex.vert", |
| 143 | "$_tests/sksl/glsl/Clockwise.sksl", |
| 144 | "$_tests/sksl/glsl/ComplexDelete.sksl", |
| 145 | "$_tests/sksl/glsl/ConstArray.sksl", |
John Stiles | 6798e5d | 2020-09-17 18:20:26 -0400 | [diff] [blame] | 146 | "$_tests/sksl/glsl/ConstVariableComparison.sksl", |
John Stiles | b024549 | 2020-09-14 17:30:13 -0400 | [diff] [blame] | 147 | "$_tests/sksl/glsl/ConstantIf.sksl", |
| 148 | "$_tests/sksl/glsl/Control.sksl", |
John Stiles | 64fc15a | 2020-09-18 16:16:14 -0400 | [diff] [blame] | 149 | "$_tests/sksl/glsl/DeadDoWhileLoop.sksl", |
John Stiles | b024549 | 2020-09-14 17:30:13 -0400 | [diff] [blame] | 150 | "$_tests/sksl/glsl/DeadLoopVariable.sksl", |
| 151 | "$_tests/sksl/glsl/DependentInitializers.sksl", |
John Stiles | c884631 | 2020-09-18 12:03:42 -0400 | [diff] [blame] | 152 | "$_tests/sksl/glsl/DerivativesUnused.sksl", |
John Stiles | 9080540 | 2020-09-16 15:32:21 -0400 | [diff] [blame] | 153 | "$_tests/sksl/glsl/Discard.sksl", |
John Stiles | b024549 | 2020-09-14 17:30:13 -0400 | [diff] [blame] | 154 | "$_tests/sksl/glsl/FloatFolding.sksl", |
John Stiles | 72664be | 2020-09-16 17:43:11 -0400 | [diff] [blame] | 155 | "$_tests/sksl/glsl/ForceHighPrecision.sksl", |
John Stiles | 9080540 | 2020-09-16 15:32:21 -0400 | [diff] [blame] | 156 | "$_tests/sksl/glsl/FrExp.sksl", |
John Stiles | be0a9ca | 2020-09-18 14:42:58 -0400 | [diff] [blame] | 157 | "$_tests/sksl/glsl/FragCoordsFlipY.sksl", |
| 158 | "$_tests/sksl/glsl/FragCoordsNew.sksl", |
| 159 | "$_tests/sksl/glsl/FragCoordsOld.sksl", |
John Stiles | 6798e5d | 2020-09-17 18:20:26 -0400 | [diff] [blame] | 160 | "$_tests/sksl/glsl/FunctionArgumentMatch.sksl", |
| 161 | "$_tests/sksl/glsl/FunctionPrototype.sksl", |
John Stiles | b024549 | 2020-09-14 17:30:13 -0400 | [diff] [blame] | 162 | "$_tests/sksl/glsl/Functions.sksl", |
John Stiles | 87e6ccd | 2020-09-18 12:04:04 -0400 | [diff] [blame] | 163 | "$_tests/sksl/glsl/Geometry.geom", |
| 164 | "$_tests/sksl/glsl/GeometryExtension.geom", |
| 165 | "$_tests/sksl/glsl/GeometryGSInvocations.geom", |
| 166 | "$_tests/sksl/glsl/GeometryNoGSInvocations.geom", |
John Stiles | 9080540 | 2020-09-16 15:32:21 -0400 | [diff] [blame] | 167 | "$_tests/sksl/glsl/Height.sksl", |
John Stiles | ea9e7ca | 2020-09-14 16:46:40 -0400 | [diff] [blame] | 168 | "$_tests/sksl/glsl/HelloWorld.sksl", |
John Stiles | b024549 | 2020-09-14 17:30:13 -0400 | [diff] [blame] | 169 | "$_tests/sksl/glsl/Hex.sksl", |
John Stiles | be0a9ca | 2020-09-18 14:42:58 -0400 | [diff] [blame] | 170 | "$_tests/sksl/glsl/IncompleteShortIntPrecision.sksl", |
John Stiles | b024549 | 2020-09-14 17:30:13 -0400 | [diff] [blame] | 171 | "$_tests/sksl/glsl/InstanceID.vert", |
| 172 | "$_tests/sksl/glsl/IntFolding.sksl", |
| 173 | "$_tests/sksl/glsl/InterfaceBlockAnonymous.sksl", |
| 174 | "$_tests/sksl/glsl/InterfaceBlockArray.sksl", |
| 175 | "$_tests/sksl/glsl/InterfaceBlockNamed.sksl", |
| 176 | "$_tests/sksl/glsl/Matrices.sksl", |
| 177 | "$_tests/sksl/glsl/MatrixFolding.sksl", |
John Stiles | 9080540 | 2020-09-16 15:32:21 -0400 | [diff] [blame] | 178 | "$_tests/sksl/glsl/ModifiersDeclaration.sksl", |
John Stiles | b024549 | 2020-09-14 17:30:13 -0400 | [diff] [blame] | 179 | "$_tests/sksl/glsl/MultipleAssignments.sksl", |
John Stiles | 9080540 | 2020-09-16 15:32:21 -0400 | [diff] [blame] | 180 | "$_tests/sksl/glsl/NegatedVectorLiteral.sksl", |
John Stiles | be0a9ca | 2020-09-18 14:42:58 -0400 | [diff] [blame] | 181 | "$_tests/sksl/glsl/NoFragCoordsPos.vert", |
| 182 | "$_tests/sksl/glsl/NoFragCoordsPosRT.vert", |
John Stiles | 87e6ccd | 2020-09-18 12:04:04 -0400 | [diff] [blame] | 183 | "$_tests/sksl/glsl/NormalizationGeo.geom", |
| 184 | "$_tests/sksl/glsl/NormalizationVert.vert", |
John Stiles | 9080540 | 2020-09-16 15:32:21 -0400 | [diff] [blame] | 185 | "$_tests/sksl/glsl/NumberConversions.sksl", |
John Stiles | b024549 | 2020-09-14 17:30:13 -0400 | [diff] [blame] | 186 | "$_tests/sksl/glsl/Offset.sksl", |
| 187 | "$_tests/sksl/glsl/Operators.sksl", |
John Stiles | 59b2a92 | 2020-09-23 15:20:01 -0400 | [diff] [blame] | 188 | "$_tests/sksl/glsl/OutParams.sksl", |
John Stiles | 9080540 | 2020-09-16 15:32:21 -0400 | [diff] [blame] | 189 | "$_tests/sksl/glsl/RectangleTexture.sksl", |
John Stiles | 6798e5d | 2020-09-17 18:20:26 -0400 | [diff] [blame] | 190 | "$_tests/sksl/glsl/ResizeMatrix.sksl", |
John Stiles | b024549 | 2020-09-14 17:30:13 -0400 | [diff] [blame] | 191 | "$_tests/sksl/glsl/SampleMask.sksl", |
John Stiles | 6798e5d | 2020-09-17 18:20:26 -0400 | [diff] [blame] | 192 | "$_tests/sksl/glsl/ScopedSymbol.sksl", |
John Stiles | b024549 | 2020-09-14 17:30:13 -0400 | [diff] [blame] | 193 | "$_tests/sksl/glsl/ShortCircuitBoolFolding.sksl", |
John Stiles | be0a9ca | 2020-09-18 14:42:58 -0400 | [diff] [blame] | 194 | "$_tests/sksl/glsl/ShortIntPrecision.sksl", |
John Stiles | 9080540 | 2020-09-16 15:32:21 -0400 | [diff] [blame] | 195 | "$_tests/sksl/glsl/StackingVectorCasts.sksl", |
John Stiles | 6798e5d | 2020-09-17 18:20:26 -0400 | [diff] [blame] | 196 | "$_tests/sksl/glsl/StaticIf.sksl", |
| 197 | "$_tests/sksl/glsl/StaticSwitch.sksl", |
John Stiles | b024549 | 2020-09-14 17:30:13 -0400 | [diff] [blame] | 198 | "$_tests/sksl/glsl/StaticSwitchWithBreak.sksl", |
| 199 | "$_tests/sksl/glsl/StaticSwitchWithBreakInsideBlock.sksl", |
| 200 | "$_tests/sksl/glsl/StaticSwitchWithConditionalBreak.sksl", |
| 201 | "$_tests/sksl/glsl/StaticSwitchWithConditionalBreakInsideBlock.sksl", |
| 202 | "$_tests/sksl/glsl/StaticSwitchWithFallthroughA.sksl", |
| 203 | "$_tests/sksl/glsl/StaticSwitchWithFallthroughB.sksl", |
| 204 | "$_tests/sksl/glsl/StaticSwitchWithStaticConditionalBreak.sksl", |
| 205 | "$_tests/sksl/glsl/StaticSwitchWithStaticConditionalBreakInsideBlock.sksl", |
| 206 | "$_tests/sksl/glsl/Structs.sksl", |
| 207 | "$_tests/sksl/glsl/Switch.sksl", |
| 208 | "$_tests/sksl/glsl/SwitchContainingDeadCode.sksl", |
| 209 | "$_tests/sksl/glsl/SwitchWithFallthrough.sksl", |
John Stiles | 5f35ac9 | 2020-09-22 13:56:01 -0400 | [diff] [blame] | 210 | "$_tests/sksl/glsl/SwizzleBoolConstants.sksl", |
John Stiles | 7f6378f | 2020-09-16 13:40:35 -0400 | [diff] [blame] | 211 | "$_tests/sksl/glsl/SwizzleConstants.sksl", |
John Stiles | 9080540 | 2020-09-16 15:32:21 -0400 | [diff] [blame] | 212 | "$_tests/sksl/glsl/SwizzleLTRB.sksl", |
John Stiles | 7f6378f | 2020-09-16 13:40:35 -0400 | [diff] [blame] | 213 | "$_tests/sksl/glsl/SwizzleOpt.sksl", |
| 214 | "$_tests/sksl/glsl/SwizzleScalar.sksl", |
John Stiles | 9080540 | 2020-09-16 15:32:21 -0400 | [diff] [blame] | 215 | "$_tests/sksl/glsl/TernaryAsLValueEntirelyFoldable.sksl", |
| 216 | "$_tests/sksl/glsl/TernaryAsLValueFoldableTest.sksl", |
| 217 | "$_tests/sksl/glsl/TernaryAsLValueUnfoldable.sksl", |
John Stiles | 72664be | 2020-09-16 17:43:11 -0400 | [diff] [blame] | 218 | "$_tests/sksl/glsl/Texture.sksl", |
| 219 | "$_tests/sksl/glsl/TextureSharpen.sksl", |
| 220 | "$_tests/sksl/glsl/TextureSharpenVersion110.sksl", |
| 221 | "$_tests/sksl/glsl/TextureVersion110.sksl", |
John Stiles | 6798e5d | 2020-09-17 18:20:26 -0400 | [diff] [blame] | 222 | "$_tests/sksl/glsl/UnaryPositiveNegative.sksl", |
John Stiles | b024549 | 2020-09-14 17:30:13 -0400 | [diff] [blame] | 223 | "$_tests/sksl/glsl/UnusedVariables.sksl", |
John Stiles | 72664be | 2020-09-16 17:43:11 -0400 | [diff] [blame] | 224 | "$_tests/sksl/glsl/UsesPrecisionModifiers.sksl", |
John Stiles | b024549 | 2020-09-14 17:30:13 -0400 | [diff] [blame] | 225 | "$_tests/sksl/glsl/VectorConstructors.sksl", |
| 226 | "$_tests/sksl/glsl/VectorFolding.sksl", |
John Stiles | 72664be | 2020-09-16 17:43:11 -0400 | [diff] [blame] | 227 | "$_tests/sksl/glsl/Version110.sksl", |
| 228 | "$_tests/sksl/glsl/Version450Core.sksl", |
John Stiles | b024549 | 2020-09-14 17:30:13 -0400 | [diff] [blame] | 229 | "$_tests/sksl/glsl/VertexID.vert", |
John Stiles | 9080540 | 2020-09-16 15:32:21 -0400 | [diff] [blame] | 230 | "$_tests/sksl/glsl/Width.sksl", |
John Stiles | 7e24871 | 2020-09-24 16:42:09 -0400 | [diff] [blame^] | 231 | ] |
| 232 | |
| 233 | sksl_inliner_tests = [ |
John Stiles | f2cdf59 | 2020-09-15 10:10:43 -0400 | [diff] [blame] | 234 | "$_tests/sksl/inliner/DoWhileBodyMustBeInlinedIntoAScope.sksl", |
| 235 | "$_tests/sksl/inliner/DoWhileTestCannotBeInlined.sksl", |
| 236 | "$_tests/sksl/inliner/ForBodyMustBeInlinedIntoAScope.sksl", |
| 237 | "$_tests/sksl/inliner/ForInitializerExpressionsCanBeInlined.sksl", |
| 238 | "$_tests/sksl/inliner/ForWithReturnInsideCannotBeInlined.sksl", |
| 239 | "$_tests/sksl/inliner/ForWithoutReturnInsideCanBeInlined.sksl", |
| 240 | "$_tests/sksl/inliner/IfBodyMustBeInlinedIntoAScope.sksl", |
| 241 | "$_tests/sksl/inliner/IfElseBodyMustBeInlinedIntoAScope.sksl", |
| 242 | "$_tests/sksl/inliner/IfElseChainWithReturnsCanBeInlined.sksl", |
| 243 | "$_tests/sksl/inliner/IfTestCanBeInlined.sksl", |
| 244 | "$_tests/sksl/inliner/IfWithReturnsCanBeInlined.sksl", |
| 245 | "$_tests/sksl/inliner/InlineKeywordOverridesThreshold.sksl", |
| 246 | "$_tests/sksl/inliner/InlineThreshold.sksl", |
| 247 | "$_tests/sksl/inliner/InlineWithInoutArgument.sksl", |
| 248 | "$_tests/sksl/inliner/InlineWithModifiedArgument.sksl", |
| 249 | "$_tests/sksl/inliner/InlineWithNestedBigCalls.sksl", |
| 250 | "$_tests/sksl/inliner/InlineWithNestedCalls.sksl", |
| 251 | "$_tests/sksl/inliner/InlineWithUnmodifiedArgument.sksl", |
| 252 | "$_tests/sksl/inliner/InlineWithUnnecessaryBlocks.sksl", |
John Stiles | 8f02625 | 2020-09-14 18:23:54 -0400 | [diff] [blame] | 253 | "$_tests/sksl/inliner/InlinerAvoidsVariableNameOverlap.sksl", |
John Stiles | f2cdf59 | 2020-09-15 10:10:43 -0400 | [diff] [blame] | 254 | "$_tests/sksl/inliner/InlinerManglesNames.sksl", |
John Stiles | f2cdf59 | 2020-09-15 10:10:43 -0400 | [diff] [blame] | 255 | "$_tests/sksl/inliner/ShortCircuitEvaluationsCannotInlineRightHandSide.sksl", |
| 256 | "$_tests/sksl/inliner/SwitchWithCastCanBeInlined.sksl", |
| 257 | "$_tests/sksl/inliner/SwitchWithReturnInsideCannotBeInlined.sksl", |
| 258 | "$_tests/sksl/inliner/SwitchWithoutReturnInsideCanBeInlined.sksl", |
John Stiles | 59b2a92 | 2020-09-23 15:20:01 -0400 | [diff] [blame] | 259 | "$_tests/sksl/inliner/SwizzleCanBeInlinedDirectly.sksl", |
John Stiles | f2cdf59 | 2020-09-15 10:10:43 -0400 | [diff] [blame] | 260 | "$_tests/sksl/inliner/TernaryResultsCannotBeInlined.sksl", |
| 261 | "$_tests/sksl/inliner/TernaryTestCanBeInlined.sksl", |
| 262 | "$_tests/sksl/inliner/WhileBodyMustBeInlinedIntoAScope.sksl", |
| 263 | "$_tests/sksl/inliner/WhileTestCannotBeInlined.sksl", |
John Stiles | ea9e7ca | 2020-09-14 16:46:40 -0400 | [diff] [blame] | 264 | ] |
John Stiles | 0ed9f31 | 2020-09-16 17:46:37 -0400 | [diff] [blame] | 265 | |
John Stiles | 7e24871 | 2020-09-24 16:42:09 -0400 | [diff] [blame^] | 266 | sksl_blend_tests = [ |
John Stiles | 2b788b1 | 2020-09-21 17:01:22 -0400 | [diff] [blame] | 267 | "$_tests/sksl/blend/BlendClear.sksl", |
| 268 | "$_tests/sksl/blend/BlendColor.sksl", |
| 269 | "$_tests/sksl/blend/BlendColorBurn.sksl", |
| 270 | "$_tests/sksl/blend/BlendColorDodge.sksl", |
| 271 | "$_tests/sksl/blend/BlendDarken.sksl", |
| 272 | "$_tests/sksl/blend/BlendDifference.sksl", |
| 273 | "$_tests/sksl/blend/BlendDst.sksl", |
| 274 | "$_tests/sksl/blend/BlendDstAtop.sksl", |
| 275 | "$_tests/sksl/blend/BlendDstIn.sksl", |
| 276 | "$_tests/sksl/blend/BlendDstOut.sksl", |
| 277 | "$_tests/sksl/blend/BlendDstOver.sksl", |
| 278 | "$_tests/sksl/blend/BlendExclusion.sksl", |
| 279 | "$_tests/sksl/blend/BlendHardLight.sksl", |
| 280 | "$_tests/sksl/blend/BlendHue.sksl", |
| 281 | "$_tests/sksl/blend/BlendLighten.sksl", |
| 282 | "$_tests/sksl/blend/BlendLuminosity.sksl", |
| 283 | "$_tests/sksl/blend/BlendModulate.sksl", |
| 284 | "$_tests/sksl/blend/BlendMultiply.sksl", |
| 285 | "$_tests/sksl/blend/BlendOverlap.sksl", |
| 286 | "$_tests/sksl/blend/BlendPlus.sksl", |
| 287 | "$_tests/sksl/blend/BlendSaturation.sksl", |
| 288 | "$_tests/sksl/blend/BlendScreen.sksl", |
| 289 | "$_tests/sksl/blend/BlendSoftLight.sksl", |
| 290 | "$_tests/sksl/blend/BlendSrc.sksl", |
| 291 | "$_tests/sksl/blend/BlendSrcAtop.sksl", |
| 292 | "$_tests/sksl/blend/BlendSrcIn.sksl", |
| 293 | "$_tests/sksl/blend/BlendSrcOut.sksl", |
| 294 | "$_tests/sksl/blend/BlendSrcOver.sksl", |
| 295 | "$_tests/sksl/blend/BlendXor.sksl", |
John Stiles | 7e24871 | 2020-09-24 16:42:09 -0400 | [diff] [blame^] | 296 | ] |
| 297 | |
| 298 | sksl_settings_tests = [ |
John Stiles | c884631 | 2020-09-18 12:03:42 -0400 | [diff] [blame] | 299 | "$_tests/sksl/glsl/Derivatives.sksl", |
| 300 | "$_tests/sksl/glsl/DerivativesFlipY.sksl", |
John Stiles | 0ed9f31 | 2020-09-16 17:46:37 -0400 | [diff] [blame] | 301 | "$_tests/sksl/glsl/TypePrecision.sksl", |
John Stiles | ca4d074 | 2020-09-18 15:41:31 -0400 | [diff] [blame] | 302 | "$_tests/sksl/inliner/InlinerWrapsEarlyReturnsWithDoWhileBlock.sksl", |
John Stiles | 0ed9f31 | 2020-09-16 17:46:37 -0400 | [diff] [blame] | 303 | "$_tests/sksl/workarounds/AbsInt.sksl", |
| 304 | "$_tests/sksl/workarounds/FractNegative.sksl", |
John Stiles | be0a9ca | 2020-09-18 14:42:58 -0400 | [diff] [blame] | 305 | "$_tests/sksl/workarounds/FragCoords.sksl", |
John Stiles | 0ed9f31 | 2020-09-16 17:46:37 -0400 | [diff] [blame] | 306 | "$_tests/sksl/workarounds/LoopCondition.sksl", |
| 307 | "$_tests/sksl/workarounds/MinAndAbsTogether.sksl", |
| 308 | "$_tests/sksl/workarounds/NegatedAtan.sksl", |
| 309 | "$_tests/sksl/workarounds/PowWithConstantExponent.sksl", |
John Stiles | be0a9ca | 2020-09-18 14:42:58 -0400 | [diff] [blame] | 310 | "$_tests/sksl/workarounds/RewriteDoWhileLoops.sksl", |
John Stiles | 0ed9f31 | 2020-09-16 17:46:37 -0400 | [diff] [blame] | 311 | "$_tests/sksl/workarounds/TernaryShortCircuit.sksl", |
| 312 | ] |
John Stiles | 7e24871 | 2020-09-24 16:42:09 -0400 | [diff] [blame^] | 313 | |
| 314 | # Tests in sksl_fp_tests_sources will be compiled with --settings on, and are expected to generate |
| 315 | # a .cpp and a .h output file. |
| 316 | sksl_fp_tests_sources = sksl_fp_error_tests + sksl_fp_tests |
| 317 | |
| 318 | # Tests in sksl_glsl_tests_sources will be compiled with --settings on, and are expected to generate |
| 319 | # a .glsl output file. |
| 320 | sksl_glsl_tests_sources = |
| 321 | sksl_error_tests + sksl_common_tests + sksl_inliner_tests |
| 322 | |
| 323 | # Tests in sksl_glsl_settings_tests_sources will be compiled twice, once with --settings and once |
| 324 | # using --nosettings. In the latter mode, StandaloneSettings is appended to the output filename. |
| 325 | sksl_glsl_settings_tests_sources = sksl_blend_tests + sksl_settings_tests |