blob: 3fe11adcfd199dd880a12bbdd70555d170f94e50 [file] [log] [blame]
John Stilesd836f842020-09-14 10:21:44 -04001# 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
John Stiles7e248712020-09-24 16:42:09 -04006sksl_fp_error_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -05007 "/sksl/errors/GrBadIn.fp",
8 "/sksl/errors/GrMainParameterWrongType.fp",
9 "/sksl/errors/GrMainTooManyParameters.fp",
10 "/sksl/errors/GrNoFragmentProcessorConstruction.fp",
11 "/sksl/errors/GrNoFragmentProcessorExpressions.fp",
12 "/sksl/errors/GrNoFragmentProcessorLocals.fp",
13 "/sksl/errors/GrNoFragmentProcessorParams.fp",
14 "/sksl/errors/GrNoFragmentProcessorReturn.fp",
15 "/sksl/errors/GrRecursion.fp",
John Stiles7e248712020-09-24 16:42:09 -040016]
17
18sksl_fp_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -050019 "/sksl/fp/GrChildProcessorAndGlobal.fp",
20 "/sksl/fp/GrChildProcessorFieldAccess.fp",
21 "/sksl/fp/GrChildProcessorInlineFieldAccess.fp",
22 "/sksl/fp/GrChildProcessorSampleCoords.fp",
23 "/sksl/fp/GrChildProcessorSampleMatrixAndCoords.fp",
24 "/sksl/fp/GrChildProcessorSampleMatrixConstant.fp",
25 "/sksl/fp/GrChildProcessorSampleMatrixConstantAndCoords.fp",
26 "/sksl/fp/GrChildProcessorSampleMatrixMultipleUniforms.fp",
27 "/sksl/fp/GrChildProcessorSampleMatrixSingleInUniform.fp",
28 "/sksl/fp/GrChildProcessorSampleMatrixSingleUniform.fp",
29 "/sksl/fp/GrChildProcessorSampleMatrixSingleUniformExpr.fp",
30 "/sksl/fp/GrChildProcessorWithInputExpression.fp",
31 "/sksl/fp/GrChildProcessors.fp",
32 "/sksl/fp/GrChildProcessorsWithInput.fp",
33 "/sksl/fp/GrConditionalInUniform.fp",
34 "/sksl/fp/GrFunction.fp",
John Stiles9fc9b872021-02-01 15:50:32 -050035 "/sksl/fp/GrFunctionArgTypes.fp",
36 "/sksl/fp/GrFunctionReturnTypes.fp",
John Stilesbfc9be02021-01-22 11:55:48 -050037 "/sksl/fp/GrGrSLTypesAreSupported.fp",
38 "/sksl/fp/GrHelloWorld.fp",
39 "/sksl/fp/GrInUniform.fp",
40 "/sksl/fp/GrInUniformCType.fp",
41 "/sksl/fp/GrInlinedFunction.fp",
42 "/sksl/fp/GrKeyIn.fp",
43 "/sksl/fp/GrLayoutWhen.fp",
44 "/sksl/fp/GrMainCoords.fp",
45 "/sksl/fp/GrModuloOp.fp",
46 "/sksl/fp/GrNestedCall.fp",
47 "/sksl/fp/GrNestedChildProcessors.fp",
48 "/sksl/fp/GrNonInlinedInUniform.fp",
49 "/sksl/fp/GrSectionClass.fp",
50 "/sksl/fp/GrSectionConstructor.fp",
51 "/sksl/fp/GrSectionConstructorParams.fp",
52 "/sksl/fp/GrSectionCpp.fp",
53 "/sksl/fp/GrSectionDumpInfo.fp",
54 "/sksl/fp/GrSectionEmitCode.fp",
55 "/sksl/fp/GrSectionFields.fp",
56 "/sksl/fp/GrSectionHeader.fp",
57 "/sksl/fp/GrSectionInitializers.fp",
58 "/sksl/fp/GrSectionMake.fp",
59 "/sksl/fp/GrSectionSetData.fp",
60 "/sksl/fp/GrSectionTest.fp",
61 "/sksl/fp/GrTrackedInUniform.fp",
62 "/sksl/fp/GrUniform.fp",
63 "/sksl/fp/GrUniformArrays.fp",
64 "/sksl/fp/GrUseExplicitReturn.fp",
John Stilesea9e7ca2020-09-14 16:46:40 -040065]
John Stilesd836f842020-09-14 10:21:44 -040066
John Stiles7e248712020-09-24 16:42:09 -040067sksl_error_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -050068 "/sksl/errors/ArgumentCountMismatch.sksl",
69 "/sksl/errors/ArgumentMismatch.sksl",
70 "/sksl/errors/ArgumentModifiers.sksl",
John Stiles248f57b2021-02-03 15:11:18 -050071 "/sksl/errors/ArrayConstructorElementCount.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -050072 "/sksl/errors/ArrayIndexOutOfRange.sksl",
John Stiles80b02af2021-02-12 17:07:51 -050073 "/sksl/errors/ArrayOfVoid.sksl",
74 "/sksl/errors/ArrayOfVoidInStruct.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -050075 "/sksl/errors/ArrayReturnTypes.sksl",
John Stiles80b02af2021-02-12 17:07:51 -050076 "/sksl/errors/ArraySplitDimensions.sksl",
77 "/sksl/errors/ArraySplitDimensionsInFuncBody.sksl",
78 "/sksl/errors/ArraySplitDimensionsInFuncDecl.sksl",
79 "/sksl/errors/ArraySplitDimensionsInStruct.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -050080 "/sksl/errors/ArrayTooManyDimensions.sksl",
John Stiles80b02af2021-02-12 17:07:51 -050081 "/sksl/errors/ArrayTooManyDimensionsInFuncBody.sksl",
82 "/sksl/errors/ArrayTooManyDimensionsInFuncDecl.sksl",
83 "/sksl/errors/ArrayTooManyDimensionsInStruct.sksl",
84 "/sksl/errors/ArrayTypeTooManyDimensions.sksl",
85 "/sksl/errors/ArrayTypeTooManyDimensionsInFuncBody.sksl",
86 "/sksl/errors/ArrayTypeTooManyDimensionsInFuncDecl.sksl",
87 "/sksl/errors/ArrayTypeTooManyDimensionsInStruct.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -050088 "/sksl/errors/ArrayUnspecifiedDimensions.sksl",
89 "/sksl/errors/AssignmentTypeMismatch.sksl",
90 "/sksl/errors/BadCaps.sksl",
91 "/sksl/errors/BadFieldAccess.sksl",
92 "/sksl/errors/BadIndex.sksl",
93 "/sksl/errors/BadModifiers.sksl",
94 "/sksl/errors/BinaryInvalidType.sksl",
95 "/sksl/errors/BinaryTypeCoercion.sksl",
96 "/sksl/errors/BinaryTypeMismatch.sksl",
97 "/sksl/errors/BitShiftFloat.sksl",
98 "/sksl/errors/BitShiftFloatMatrix.sksl",
99 "/sksl/errors/BitShiftFloatVector.sksl",
100 "/sksl/errors/BooleanArithmetic.sksl",
101 "/sksl/errors/BreakOutsideLoop.sksl",
102 "/sksl/errors/CallNonFunction.sksl",
103 "/sksl/errors/CanExitWithoutReturningValue.sksl",
104 "/sksl/errors/ConstructorArgumentCount.sksl",
105 "/sksl/errors/ConstructorTypeMismatch.sksl",
106 "/sksl/errors/ContinueOutsideLoop.sksl",
107 "/sksl/errors/DivideByZero.sksl",
108 "/sksl/errors/DoTypeMismatch.sksl",
109 "/sksl/errors/DuplicateFunction.sksl",
110 "/sksl/errors/DuplicateOutput.sksl",
111 "/sksl/errors/DuplicateSymbol.sksl",
Brian Osman6c3b23f2021-02-12 13:09:58 -0500112 "/sksl/errors/EmptyStruct.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500113 "/sksl/errors/EnumValueMustBeConstInt.sksl",
114 "/sksl/errors/ErrorsInDeadCode.sksl",
115 "/sksl/errors/FloatRemainder.sksl",
116 "/sksl/errors/ForTypeMismatch.sksl",
117 "/sksl/errors/GenericArgumentMismatch.sksl",
118 "/sksl/errors/IfTypeMismatch.sksl",
119 "/sksl/errors/InVarWithInitializerExpression.sksl",
Ethan Nicholasc0f98152021-02-05 16:21:10 -0500120 "/sksl/errors/InlineDivideByZero.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500121 "/sksl/errors/InterfaceBlockScope.sksl",
122 "/sksl/errors/InterfaceBlockStorageModifiers.sksl",
123 "/sksl/errors/InterfaceBlockWithNoMembers.sksl",
124 "/sksl/errors/InvalidAssignment.sksl",
125 "/sksl/errors/InvalidOutParams.sksl",
126 "/sksl/errors/InvalidToken.sksl",
127 "/sksl/errors/InvalidUnary.sksl",
128 "/sksl/errors/MismatchedNumbers.sksl",
129 "/sksl/errors/ModifiersInStruct.sksl",
130 "/sksl/errors/OpaqueTypeAssignment.sksl",
131 "/sksl/errors/OpaqueTypeConstruction.sksl",
132 "/sksl/errors/OpaqueTypeInArray.sksl",
133 "/sksl/errors/OpaqueTypeInInterfaceBlock.sksl",
134 "/sksl/errors/OpaqueTypeInStruct.sksl",
135 "/sksl/errors/OpenArray.sksl",
136 "/sksl/errors/Ossfuzz26700.sksl",
137 "/sksl/errors/Ossfuzz26759.sksl",
138 "/sksl/errors/Ossfuzz27650.sksl",
139 "/sksl/errors/Ossfuzz27663.sksl",
140 "/sksl/errors/Ossfuzz29085.sksl",
John Stiles76389b72021-01-25 13:49:05 -0500141 "/sksl/errors/Ossfuzz29845.sksl",
John Stilese3a91cf2021-01-26 10:13:58 -0500142 "/sksl/errors/Ossfuzz29849.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500143 "/sksl/errors/OverflowFloatLiteral.sksl",
144 "/sksl/errors/OverflowIntLiteral.sksl",
145 "/sksl/errors/OverflowParamArraySize.sksl",
146 "/sksl/errors/OverflowUintLiteral.sksl",
John Stiles8dabeac2021-02-12 16:05:00 -0500147 "/sksl/errors/PrototypeInFuncBody.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500148 "/sksl/errors/PrivateTypes.sksl",
149 "/sksl/errors/RedeclareBasicType.sksl",
150 "/sksl/errors/RedeclareEnum.sksl",
151 "/sksl/errors/RedeclareSamplerType.sksl",
152 "/sksl/errors/RedeclareStruct.sksl",
153 "/sksl/errors/RedeclareStructTypeWithName.sksl",
154 "/sksl/errors/RedeclareUserType.sksl",
155 "/sksl/errors/RedeclareVariable.sksl",
156 "/sksl/errors/ReturnDifferentType.sksl",
157 "/sksl/errors/ReturnFromVoid.sksl",
158 "/sksl/errors/ReturnMissingValue.sksl",
159 "/sksl/errors/ReturnTypeMismatch.sksl",
160 "/sksl/errors/SelfReferentialInitializerExpression.sksl",
161 "/sksl/errors/SpuriousFloat.sksl",
162 "/sksl/errors/StaticIfTest.sksl",
163 "/sksl/errors/StaticSwitchConditionalBreak.sksl",
164 "/sksl/errors/StaticSwitchTest.sksl",
Brian Osman00fea5b2021-01-28 09:46:30 -0500165 "/sksl/errors/StructNameWithoutIdentifier.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500166 "/sksl/errors/StructTooDeeplyNested.sksl",
167 "/sksl/errors/SwitchDuplicateCase.sksl",
168 "/sksl/errors/SwitchTypes.sksl",
169 "/sksl/errors/SwizzleConstantOutput.sksl",
170 "/sksl/errors/SwizzleMatrix.sksl",
171 "/sksl/errors/SwizzleOnlyLiterals.sksl",
172 "/sksl/errors/SwizzleOutOfBounds.sksl",
173 "/sksl/errors/SwizzleTooManyComponents.sksl",
174 "/sksl/errors/TernaryMismatch.sksl",
175 "/sksl/errors/UndeclaredFunction.sksl",
176 "/sksl/errors/UndefinedFunction.sksl",
177 "/sksl/errors/UndefinedSymbol.sksl",
Ethan Nicholasc0f98152021-02-05 16:21:10 -0500178 "/sksl/errors/UnknownDivideByZero.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500179 "/sksl/errors/Unreachable.sksl",
180 "/sksl/errors/UnsupportedGLSLIdentifiers.sksl",
John Stilese3a91cf2021-01-26 10:13:58 -0500181 "/sksl/errors/UnscopedVariableInDoWhile.sksl",
182 "/sksl/errors/UnscopedVariableInElse.sksl",
183 "/sksl/errors/UnscopedVariableInIf.sksl",
184 "/sksl/errors/UnscopedVariableInWhile.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500185 "/sksl/errors/UseWithoutInitializeArrayIndex.sksl",
186 "/sksl/errors/UseWithoutInitializeBinaryExpr.sksl",
187 "/sksl/errors/UseWithoutInitializeDeadIf.sksl",
188 "/sksl/errors/UseWithoutInitializeDeadSwitch.sksl",
189 "/sksl/errors/UseWithoutInitializeReturnValue.sksl",
190 "/sksl/errors/UseWithoutInitializeVarDecl.sksl",
191 "/sksl/errors/UsingInvalidValue.sksl",
192 "/sksl/errors/WhileTypeMismatch.sksl",
John Stiles7e248712020-09-24 16:42:09 -0400193]
194
John Stilesab4ab202020-09-24 17:22:42 -0400195sksl_glsl_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -0500196 "/sksl/glsl/ForceHighPrecision.sksl",
197 "/sksl/glsl/IncompleteShortIntPrecision.sksl",
198 "/sksl/glsl/LayoutQualifiers.sksl",
199 "/sksl/glsl/ShortIntPrecision.sksl",
200 "/sksl/glsl/TextureSharpenVersion110.sksl",
201 "/sksl/glsl/TextureVersion110.sksl",
202 "/sksl/glsl/UsesPrecisionModifiers.sksl",
203 "/sksl/glsl/Version110.sksl",
204 "/sksl/glsl/Version450Core.sksl",
John Stilesab4ab202020-09-24 17:22:42 -0400205]
206
John Stiles34de5cb2020-11-13 18:14:11 -0500207sksl_metal_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -0500208 "/sksl/metal/CastHalf4ToMat2x2.sksl",
209 "/sksl/metal/CastMat2x2ToMat3x3.sksl",
210 "/sksl/metal/CastMat2x3ToMat4x4.sksl",
211 "/sksl/metal/CastMat4x4ToMat3x4.sksl",
212 "/sksl/metal/CastMat4x4ToMat4x3.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500213 "/sksl/metal/NumericGlobals.sksl",
214 "/sksl/metal/OpaqueTypeInInterfaceBlock.sksl",
215 "/sksl/metal/OpaqueTypeInStruct.sksl",
216 "/sksl/metal/OutParams.sksl",
217 "/sksl/metal/OutVarsRequireLocation.sksl",
218 "/sksl/metal/SamplerGlobals.sksl",
219 "/sksl/metal/SwizzleHelper.sksl",
John Stiles34de5cb2020-11-13 18:14:11 -0500220]
221
John Stilesba067aa2020-11-25 16:55:37 -0500222sksl_spirv_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -0500223 "/sksl/spirv/ConstantVectorFromVector.sksl",
Brian Osman2a4c0fb2021-01-22 13:41:40 -0500224 "/sksl/spirv/InterfaceBlockPushConstant.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500225 "/sksl/spirv/LayoutMultipleOf4.sksl",
226 "/sksl/spirv/LayoutOutOfOrder.sksl",
227 "/sksl/spirv/OpaqueTypeInArray.sksl",
228 "/sksl/errors/UndefinedFunction.sksl",
John Stilesba067aa2020-11-25 16:55:37 -0500229]
230
John Stilesab4ab202020-09-24 17:22:42 -0400231sksl_shared_tests = [
John Stilese1658b52021-01-29 11:44:13 -0500232 "/sksl/intrinsics/AbsFloat.sksl",
233 "/sksl/intrinsics/AbsInt.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500234 "/sksl/intrinsics/Acos.sksl",
235 "/sksl/intrinsics/Acosh.sksl",
236 "/sksl/intrinsics/All.sksl",
237 "/sksl/intrinsics/Any.sksl",
238 "/sksl/intrinsics/Asin.sksl",
239 "/sksl/intrinsics/Asinh.sksl",
240 "/sksl/intrinsics/Atan.sksl",
241 "/sksl/intrinsics/Atanh.sksl",
242 "/sksl/intrinsics/BitCount.sksl",
243 "/sksl/intrinsics/Ceil.sksl",
John Stiles9c9f60c2021-01-29 11:51:47 -0500244 "/sksl/intrinsics/ClampFloat.sksl",
245 "/sksl/intrinsics/ClampInt.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500246 "/sksl/intrinsics/Cos.sksl",
247 "/sksl/intrinsics/Cosh.sksl",
248 "/sksl/intrinsics/Cross.sksl",
249 "/sksl/intrinsics/Degrees.sksl",
250 "/sksl/intrinsics/Determinant.sksl",
251 "/sksl/intrinsics/DFdx.sksl",
252 "/sksl/intrinsics/DFdy.sksl",
253 "/sksl/intrinsics/Distance.sksl",
254 "/sksl/intrinsics/Dot.sksl",
255 "/sksl/intrinsics/Equal.sksl",
256 "/sksl/intrinsics/Exp.sksl",
257 "/sksl/intrinsics/Exp2.sksl",
258 "/sksl/intrinsics/FaceForward.sksl",
259 "/sksl/intrinsics/FindLSB.sksl",
260 "/sksl/intrinsics/FindMSB.sksl",
261 "/sksl/intrinsics/FloatBitsToInt.sksl",
262 "/sksl/intrinsics/FloatBitsToUint.sksl",
263 "/sksl/intrinsics/Floor.sksl",
264 "/sksl/intrinsics/Fma.sksl",
265 "/sksl/intrinsics/Fract.sksl",
266 "/sksl/intrinsics/Frexp.sksl",
267 "/sksl/intrinsics/Fwidth.sksl",
268 "/sksl/intrinsics/GreaterThan.sksl",
269 "/sksl/intrinsics/GreaterThanEqual.sksl",
270 "/sksl/intrinsics/IntBitsToFloat.sksl",
271 "/sksl/intrinsics/Inverse.sksl",
272 "/sksl/intrinsics/Inversesqrt.sksl",
273 "/sksl/intrinsics/IsInf.sksl",
274 "/sksl/intrinsics/IsNan.sksl",
275 "/sksl/intrinsics/Ldexp.sksl",
276 "/sksl/intrinsics/Length.sksl",
277 "/sksl/intrinsics/LessThan.sksl",
278 "/sksl/intrinsics/LessThanEqual.sksl",
279 "/sksl/intrinsics/Log.sksl",
280 "/sksl/intrinsics/Log2.sksl",
281 "/sksl/intrinsics/MatrixCompMult.sksl",
John Stiles9c9f60c2021-01-29 11:51:47 -0500282 "/sksl/intrinsics/MaxFloat.sksl",
283 "/sksl/intrinsics/MaxInt.sksl",
284 "/sksl/intrinsics/MinFloat.sksl",
285 "/sksl/intrinsics/MinInt.sksl",
286 "/sksl/intrinsics/MixFloat.sksl",
287 "/sksl/intrinsics/MixBool.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500288 "/sksl/intrinsics/Mod.sksl",
289 "/sksl/intrinsics/Modf.sksl",
290 "/sksl/intrinsics/Normalize.sksl",
291 "/sksl/intrinsics/Not.sksl",
292 "/sksl/intrinsics/NotEqual.sksl",
293 "/sksl/intrinsics/OuterProduct.sksl",
294 "/sksl/intrinsics/Pack.sksl",
295 "/sksl/intrinsics/Pow.sksl",
296 "/sksl/intrinsics/Radians.sksl",
297 "/sksl/intrinsics/Reflect.sksl",
298 "/sksl/intrinsics/Refract.sksl",
299 "/sksl/intrinsics/Round.sksl",
300 "/sksl/intrinsics/RoundEven.sksl",
301 "/sksl/intrinsics/Saturate.sksl",
John Stilese1658b52021-01-29 11:44:13 -0500302 "/sksl/intrinsics/SignFloat.sksl",
303 "/sksl/intrinsics/SignInt.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500304 "/sksl/intrinsics/Sin.sksl",
305 "/sksl/intrinsics/Sinh.sksl",
306 "/sksl/intrinsics/Smoothstep.sksl",
307 "/sksl/intrinsics/Sqrt.sksl",
308 "/sksl/intrinsics/Step.sksl",
309 "/sksl/intrinsics/Tan.sksl",
310 "/sksl/intrinsics/Tanh.sksl",
311 "/sksl/intrinsics/Transpose.sksl",
312 "/sksl/intrinsics/Trunc.sksl",
313 "/sksl/intrinsics/UintBitsToFloat.sksl",
314 "/sksl/intrinsics/Unpack.sksl",
315 "/sksl/shared/ArrayConstructors.sksl",
316 "/sksl/shared/ArrayIndexTypes.sksl",
317 "/sksl/shared/ArrayTypes.sksl",
318 "/sksl/shared/Assignment.sksl",
319 "/sksl/shared/Caps.sksl",
320 "/sksl/shared/CastsRoundTowardZero.sksl",
321 "/sksl/shared/Clockwise.sksl",
John Stiles5a956ce2021-02-02 13:58:42 -0500322 "/sksl/shared/CommaMixedTypes.sksl",
John Stiles94e72b92021-01-30 11:06:18 -0500323 "/sksl/shared/CommaSideEffects.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500324 "/sksl/shared/ComplexDelete.sksl",
325 "/sksl/shared/ConstArray.sksl",
326 "/sksl/shared/ConstVariableComparison.sksl",
327 "/sksl/shared/ConstantIf.sksl",
328 "/sksl/shared/Control.sksl",
329 "/sksl/shared/DeadDoWhileLoop.sksl",
330 "/sksl/shared/DeadIfStatement.sksl",
331 "/sksl/shared/DeadLoopVariable.sksl",
332 "/sksl/shared/DeadStripFunctions.sksl",
333 "/sksl/shared/DependentInitializers.sksl",
334 "/sksl/shared/DerivativesUnused.sksl",
335 "/sksl/shared/Discard.sksl",
John Stiles798021a2021-01-26 10:37:41 -0500336 "/sksl/shared/DoWhileControlFlow.sksl",
John Stilesc068a8f2021-02-01 11:52:10 -0500337 "/sksl/shared/EmptyBlocksES2.sksl",
338 "/sksl/shared/EmptyBlocksES3.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500339 "/sksl/shared/Enum.sksl",
John Stilesdac139a2021-01-26 11:06:42 -0500340 "/sksl/shared/ForLoopControlFlow.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500341 "/sksl/shared/FragCoordsFlipY.sksl",
342 "/sksl/shared/FragCoordsNew.sksl",
343 "/sksl/shared/FragCoordsOld.sksl",
John Stiles931cad12021-02-01 16:36:13 -0500344 "/sksl/shared/FunctionArgTypeMatch.sksl",
345 "/sksl/shared/FunctionReturnTypeMatch.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500346 "/sksl/shared/FunctionPrototype.sksl",
347 "/sksl/shared/Functions.sksl",
348 "/sksl/shared/GaussianBlur.sksl",
349 "/sksl/shared/GeometricIntrinsics.sksl",
350 "/sksl/shared/Geometry.geom",
351 "/sksl/shared/GeometryExtension.geom",
352 "/sksl/shared/GeometryGSInvocations.geom",
353 "/sksl/shared/GeometryNoGSInvocations.geom",
354 "/sksl/shared/GeometryNoGSInvocationsReorder.geom",
355 "/sksl/shared/Height.sksl",
356 "/sksl/shared/HelloWorld.sksl",
357 "/sksl/shared/Hex.sksl",
John Stilesecd20362021-02-03 17:44:47 -0500358 "/sksl/shared/HexUnsigned.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500359 "/sksl/shared/InstanceID.vert",
John Stilesbfc9be02021-01-22 11:55:48 -0500360 "/sksl/shared/InterfaceBlockNamed.sksl",
John Stilesda5cdf62021-01-28 11:47:29 -0500361 "/sksl/shared/InterfaceBlockNamedArray.sksl",
John Stiles56233d12021-02-03 13:03:29 -0500362 "/sksl/shared/Matrices.sksl",
363 "/sksl/shared/MatricesNonsquare.sksl",
John Stilesa0e407d2021-02-10 12:21:51 -0500364 "/sksl/shared/MatrixEquality.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500365 "/sksl/shared/MultipleAssignments.sksl",
366 "/sksl/shared/NegatedVectorLiteral.sksl",
367 "/sksl/shared/NoFragCoordsPos.vert",
368 "/sksl/shared/NoFragCoordsPosRT.vert",
369 "/sksl/shared/NormalizationGeo.geom",
370 "/sksl/shared/NormalizationVert.vert",
371 "/sksl/shared/NumberCasts.sksl",
372 "/sksl/shared/NumberConversions.sksl",
373 "/sksl/shared/Offset.sksl",
John Stiles2ff8f862021-01-30 11:08:13 -0500374 "/sksl/shared/OperatorsES2.sksl",
375 "/sksl/shared/OperatorsES3.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500376 "/sksl/shared/Ossfuzz26167.sksl",
377 "/sksl/shared/Ossfuzz27614.sksl",
378 "/sksl/shared/Ossfuzz28050.sksl",
379 "/sksl/shared/Ossfuzz28794.sksl",
380 "/sksl/shared/Ossfuzz28904.sksl",
381 "/sksl/shared/Ossfuzz29444.sksl",
Brian Osman21d2b6a2021-02-01 13:48:50 -0500382 "/sksl/shared/Ossfuzz29494.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500383 "/sksl/shared/OutParams.sksl",
384 "/sksl/shared/OutParamsTricky.sksl",
385 "/sksl/shared/RectangleTexture.sksl",
386 "/sksl/shared/ResizeMatrix.sksl",
John Stilesd4374782021-02-05 09:31:21 -0500387 "/sksl/shared/ResizeMatrixNonsquare.sksl",
John Stiles4d6310a2021-01-26 19:58:22 -0500388 "/sksl/shared/ReturnBadTypeFromMain.sksl",
389 "/sksl/shared/ReturnColorFromMain.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500390 "/sksl/shared/SampleLocations.vert",
391 "/sksl/shared/SampleMask.sksl",
John Stilesd4374782021-02-05 09:31:21 -0500392 "/sksl/shared/ScalarConversionConstructorsES2.sksl",
393 "/sksl/shared/ScalarConversionConstructorsES3.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500394 "/sksl/shared/ScopedSymbol.sksl",
395 "/sksl/shared/StackingVectorCasts.sksl",
396 "/sksl/shared/StaticIf.sksl",
397 "/sksl/shared/StaticSwitch.sksl",
398 "/sksl/shared/StaticSwitchWithBreak.sksl",
399 "/sksl/shared/StaticSwitchWithBreakInsideBlock.sksl",
400 "/sksl/shared/StaticSwitchWithConditionalBreak.sksl",
401 "/sksl/shared/StaticSwitchWithConditionalBreakInsideBlock.sksl",
402 "/sksl/shared/StaticSwitchWithFallthroughA.sksl",
403 "/sksl/shared/StaticSwitchWithFallthroughB.sksl",
404 "/sksl/shared/StaticSwitchWithStaticConditionalBreak.sksl",
405 "/sksl/shared/StaticSwitchWithStaticConditionalBreakInsideBlock.sksl",
406 "/sksl/shared/Structs.sksl",
Brian Osmanbf7b4b82021-01-27 13:53:43 -0500407 "/sksl/shared/StructsInFunctions.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500408 "/sksl/shared/StructMaxDepth.sksl",
409 "/sksl/shared/Switch.sksl",
410 "/sksl/shared/SwitchContainingDeadCode.sksl",
411 "/sksl/shared/SwitchWithFallthrough.sksl",
412 "/sksl/shared/SwizzleBoolConstants.sksl",
John Stilesc2c1b0c2021-02-05 16:24:03 -0500413 "/sksl/shared/SwizzleByConstantIndex.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500414 "/sksl/shared/SwizzleByIndex.sksl",
415 "/sksl/shared/SwizzleConstants.sksl",
416 "/sksl/shared/SwizzleLTRB.sksl",
417 "/sksl/shared/SwizzleOpt.sksl",
418 "/sksl/shared/SwizzleScalar.sksl",
419 "/sksl/shared/TernaryAsLValueEntirelyFoldable.sksl",
420 "/sksl/shared/TernaryAsLValueFoldableTest.sksl",
421 "/sksl/shared/Texture1D.sksl",
422 "/sksl/shared/Texture2D.sksl",
423 "/sksl/shared/TextureSharpen.sksl",
424 "/sksl/shared/UnaryPositiveNegative.sksl",
425 "/sksl/shared/UniformArray.sksl",
John Stilesda5cdf62021-01-28 11:47:29 -0500426 "/sksl/shared/UniformBuffers.sksl",
427 "/sksl/shared/Uniforms.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500428 "/sksl/shared/UnusedVariables.sksl",
429 "/sksl/shared/VectorConstructors.sksl",
430 "/sksl/shared/VertexEarlyReturn.vert",
431 "/sksl/shared/VertexID.vert",
John Stiles7add07f2021-01-26 11:16:34 -0500432 "/sksl/shared/WhileLoopControlFlow.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500433 "/sksl/shared/Width.sksl",
John Stiles7e248712020-09-24 16:42:09 -0400434]
435
John Stiles74192fd2021-01-11 11:07:01 -0500436sksl_folding_tests = [
John Stiles34c098d2021-02-09 10:38:59 -0500437 "/sksl/folding/AssignmentOps.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500438 "/sksl/folding/BoolFolding.sksl",
439 "/sksl/folding/FloatFolding.sksl",
440 "/sksl/folding/IntFoldingES2.sksl",
441 "/sksl/folding/IntFoldingES3.sksl",
442 "/sksl/folding/MatrixFoldingES2.sksl",
443 "/sksl/folding/MatrixFoldingES3.sksl",
John Stiles0ac6c152021-02-10 14:04:24 -0500444 "/sksl/folding/SelfAssignment.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500445 "/sksl/folding/ShortCircuitBoolFolding.sksl",
446 "/sksl/folding/VectorScalarFolding.sksl",
447 "/sksl/folding/VectorVectorFolding.sksl",
John Stiles74192fd2021-01-11 11:07:01 -0500448]
449
John Stiles7e248712020-09-24 16:42:09 -0400450sksl_inliner_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -0500451 "/sksl/inliner/DoWhileBodyMustBeInlinedIntoAScope.sksl",
452 "/sksl/inliner/DoWhileTestCannotBeInlined.sksl",
453 "/sksl/inliner/EnumsCanBeInlinedSafely.sksl",
454 "/sksl/inliner/ForBodyMustBeInlinedIntoAScope.sksl",
455 "/sksl/inliner/ForInitializerExpressionsCanBeInlined.sksl",
456 "/sksl/inliner/ForWithReturnInsideCannotBeInlined.sksl",
457 "/sksl/inliner/ForWithoutReturnInsideCanBeInlined.sksl",
458 "/sksl/inliner/IfBodyMustBeInlinedIntoAScope.sksl",
459 "/sksl/inliner/IfElseBodyMustBeInlinedIntoAScope.sksl",
460 "/sksl/inliner/IfElseChainWithReturnsCanBeInlined.sksl",
461 "/sksl/inliner/IfTestCanBeInlined.sksl",
462 "/sksl/inliner/IfWithReturnsCanBeInlined.sksl",
463 "/sksl/inliner/InlineKeywordOverridesThreshold.sksl",
464 "/sksl/inliner/InlineThreshold.sksl",
465 "/sksl/inliner/InlinerElidesTempVarForReturnsInsideBlock.sksl",
466 "/sksl/inliner/InlinerUsesTempVarForMultipleReturns.sksl",
467 "/sksl/inliner/InlinerUsesTempVarForReturnsInsideBlockWithVar.sksl",
468 "/sksl/inliner/InlineWithInoutArgument.sksl",
469 "/sksl/inliner/InlineWithModifiedArgument.sksl",
470 "/sksl/inliner/InlineWithNestedBigCalls.sksl",
471 "/sksl/inliner/InlineWithNestedCalls.sksl",
472 "/sksl/inliner/InlineWithUnmodifiedArgument.sksl",
473 "/sksl/inliner/InlineWithUnnecessaryBlocks.sksl",
474 "/sksl/inliner/InlinerAvoidsVariableNameOverlap.sksl",
John Stiles92d83b72021-02-13 11:25:51 -0500475 "/sksl/inliner/InlinerHonorsGLSLOutParamSemantics.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500476 "/sksl/inliner/InlinerManglesNames.sksl",
477 "/sksl/inliner/InlinerWrapsEarlyReturnsWithForLoop.sksl",
478 "/sksl/inliner/InlinerWrapsSwitchWithReturnInsideWithForLoop.sksl",
479 "/sksl/inliner/ShortCircuitEvaluationsCannotInlineRightHandSide.sksl",
480 "/sksl/inliner/StructsCanBeInlinedSafely.sksl",
481 "/sksl/inliner/SwitchWithCastCanBeInlined.sksl",
482 "/sksl/inliner/SwitchWithoutReturnInsideCanBeInlined.sksl",
483 "/sksl/inliner/SwizzleCanBeInlinedDirectly.sksl",
484 "/sksl/inliner/TernaryResultsCannotBeInlined.sksl",
485 "/sksl/inliner/TernaryTestCanBeInlined.sksl",
486 "/sksl/inliner/TrivialArgumentsInlineDirectly.sksl",
487 "/sksl/inliner/WhileBodyMustBeInlinedIntoAScope.sksl",
488 "/sksl/inliner/WhileTestCannotBeInlined.sksl",
John Stilesea9e7ca2020-09-14 16:46:40 -0400489]
John Stiles0ed9f312020-09-16 17:46:37 -0400490
John Stiles7e248712020-09-24 16:42:09 -0400491sksl_blend_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -0500492 "/sksl/blend/BlendClear.sksl",
493 "/sksl/blend/BlendColor.sksl",
494 "/sksl/blend/BlendColorBurn.sksl",
495 "/sksl/blend/BlendColorDodge.sksl",
496 "/sksl/blend/BlendDarken.sksl",
497 "/sksl/blend/BlendDifference.sksl",
498 "/sksl/blend/BlendDst.sksl",
499 "/sksl/blend/BlendDstAtop.sksl",
500 "/sksl/blend/BlendDstIn.sksl",
501 "/sksl/blend/BlendDstOut.sksl",
502 "/sksl/blend/BlendDstOver.sksl",
503 "/sksl/blend/BlendEnum.sksl",
504 "/sksl/blend/BlendExclusion.sksl",
505 "/sksl/blend/BlendHardLight.sksl",
506 "/sksl/blend/BlendHue.sksl",
507 "/sksl/blend/BlendLighten.sksl",
508 "/sksl/blend/BlendLuminosity.sksl",
509 "/sksl/blend/BlendModulate.sksl",
510 "/sksl/blend/BlendMultiply.sksl",
511 "/sksl/blend/BlendOverlay.sksl",
512 "/sksl/blend/BlendPlus.sksl",
513 "/sksl/blend/BlendSaturation.sksl",
514 "/sksl/blend/BlendScreen.sksl",
515 "/sksl/blend/BlendSoftLight.sksl",
516 "/sksl/blend/BlendSrc.sksl",
517 "/sksl/blend/BlendSrcAtop.sksl",
518 "/sksl/blend/BlendSrcIn.sksl",
519 "/sksl/blend/BlendSrcOut.sksl",
520 "/sksl/blend/BlendSrcOver.sksl",
521 "/sksl/blend/BlendXor.sksl",
John Stiles7e248712020-09-24 16:42:09 -0400522]
523
524sksl_settings_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -0500525 "/sksl/glsl/TypePrecision.sksl",
526 "/sksl/inliner/ExponentialGrowth.sksl",
527 "/sksl/inliner/InlinerCanBeDisabled.sksl",
528 "/sksl/shared/Derivatives.sksl",
529 "/sksl/shared/DerivativesFlipY.sksl",
530 "/sksl/workarounds/AbsInt.sksl",
531 "/sksl/workarounds/BlendGuardedDivide.sksl",
532 "/sksl/workarounds/BlendModesAllZeroVec.sksl",
533 "/sksl/workarounds/FractNegative.sksl",
534 "/sksl/workarounds/FragCoords.sksl",
535 "/sksl/workarounds/LoopCondition.sksl",
536 "/sksl/workarounds/MinAndAbsTogether.sksl",
537 "/sksl/workarounds/NegatedAtan.sksl",
538 "/sksl/workarounds/PowWithConstantExponent.sksl",
539 "/sksl/workarounds/RewriteDoWhileLoops.sksl",
540 "/sksl/workarounds/TernaryShortCircuit.sksl",
John Stiles0ed9f312020-09-16 17:46:37 -0400541]
John Stiles7e248712020-09-24 16:42:09 -0400542
Brian Osman977feec2020-12-22 11:28:59 -0500543sksl_rte_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -0500544 "/sksl/runtime/ArrayIndexing.rte",
545 "/sksl/runtime/ConversionConstructors.rte",
546 "/sksl/runtime/LoopInt.rte",
547 "/sksl/runtime/LoopFloat.rte",
548 "/sksl/runtime/SampleWithConstantMatrix.rte",
549 "/sksl/runtime/SampleWithExplicitCoord.rte",
550 "/sksl/runtime/SampleWithUniformMatrix.rte",
551 "/sksl/runtime/SampleWithVariableMatrix.rte",
552 "/sksl/runtime/VectorIndexing.rte",
Brian Osman977feec2020-12-22 11:28:59 -0500553]
554
555sksl_rte_error_tests = [
John Stilese6095982021-02-04 12:42:01 -0500556 "/sksl/runtime_errors/FirstClassArrays.rte",
Brian Osman6e2dccb2021-02-16 16:23:03 -0500557 "/sksl/runtime_errors/IllegalArrayOps.rte",
John Stilesbfc9be02021-01-22 11:55:48 -0500558 "/sksl/runtime_errors/IllegalIndexing.rte",
559 "/sksl/runtime_errors/IllegalOperators.rte",
560 "/sksl/runtime_errors/IllegalStatements.rte",
561 "/sksl/runtime_errors/LoopConditionErrors.rte",
562 "/sksl/runtime_errors/LoopExpressionErrors.rte",
563 "/sksl/runtime_errors/LoopInitializerErrors.rte",
564 "/sksl/runtime_errors/LoopStructureErrors.rte",
565 "/sksl/runtime_errors/UnsupportedTypeSampler.rte",
566 "/sksl/runtime_errors/UnsupportedTypeTexture.rte",
Brian Osman977feec2020-12-22 11:28:59 -0500567]
568
John Stiles7e248712020-09-24 16:42:09 -0400569# Tests in sksl_fp_tests_sources will be compiled with --settings on, and are expected to generate
570# a .cpp and a .h output file.
571sksl_fp_tests_sources = sksl_fp_error_tests + sksl_fp_tests
572
573# Tests in sksl_glsl_tests_sources will be compiled with --settings on, and are expected to generate
574# a .glsl output file.
575sksl_glsl_tests_sources =
John Stiles74192fd2021-01-11 11:07:01 -0500576 sksl_error_tests + sksl_glsl_tests + sksl_inliner_tests +
577 sksl_folding_tests + sksl_shared_tests
John Stiles7e248712020-09-24 16:42:09 -0400578
579# Tests in sksl_glsl_settings_tests_sources will be compiled twice, once with --settings and once
580# using --nosettings. In the latter mode, StandaloneSettings is appended to the output filename.
581sksl_glsl_settings_tests_sources = sksl_blend_tests + sksl_settings_tests
John Stilesaeae3a52020-09-25 13:35:58 -0400582
583# Tests in sksl_metal_tests_sources will be compiled with --settings on, and are expected to
584# generate a .metal output file.
John Stiles34de5cb2020-11-13 18:14:11 -0500585sksl_metal_tests_sources =
586 sksl_metal_tests + sksl_blend_tests + sksl_shared_tests
John Stilesdda1d312020-11-20 16:28:50 -0500587
588# Tests in sksl_spirv_tests_sources will be compiled with --settings on, and are expected to
589# generate a .asm.(frag|vert|geom) output file.
John Stilesba067aa2020-11-25 16:55:37 -0500590sksl_spirv_tests_sources =
591 sksl_blend_tests + sksl_shared_tests + sksl_spirv_tests
Brian Osman977feec2020-12-22 11:28:59 -0500592
593## Tests in sksl_skvm_tests_sources will be compiled with --settings on, and are expected to
594## generate a .skvm output file.
595sksl_skvm_tests_sources = sksl_rte_tests + sksl_rte_error_tests
Brian Osman62b039b2021-02-08 13:49:53 -0500596
597## Tests in sksl_stage_tests_sources will be compiled with --settings on, and are expected to
598## generate a .stage output file.
599sksl_stage_tests_sources = sksl_rte_tests