blob: 400df5a08cac3bde0ba5c32a749ea507b0c84275 [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",
John Stilesbfc9be02021-01-22 11:55:48 -050020 "/sksl/fp/GrChildProcessorSampleCoords.fp",
21 "/sksl/fp/GrChildProcessorSampleMatrixAndCoords.fp",
22 "/sksl/fp/GrChildProcessorSampleMatrixConstant.fp",
23 "/sksl/fp/GrChildProcessorSampleMatrixConstantAndCoords.fp",
24 "/sksl/fp/GrChildProcessorSampleMatrixMultipleUniforms.fp",
25 "/sksl/fp/GrChildProcessorSampleMatrixSingleInUniform.fp",
26 "/sksl/fp/GrChildProcessorSampleMatrixSingleUniform.fp",
27 "/sksl/fp/GrChildProcessorSampleMatrixSingleUniformExpr.fp",
28 "/sksl/fp/GrChildProcessorWithInputExpression.fp",
29 "/sksl/fp/GrChildProcessors.fp",
30 "/sksl/fp/GrChildProcessorsWithInput.fp",
31 "/sksl/fp/GrConditionalInUniform.fp",
32 "/sksl/fp/GrFunction.fp",
John Stiles9fc9b872021-02-01 15:50:32 -050033 "/sksl/fp/GrFunctionArgTypes.fp",
34 "/sksl/fp/GrFunctionReturnTypes.fp",
John Stilesbfc9be02021-01-22 11:55:48 -050035 "/sksl/fp/GrGrSLTypesAreSupported.fp",
36 "/sksl/fp/GrHelloWorld.fp",
37 "/sksl/fp/GrInUniform.fp",
38 "/sksl/fp/GrInUniformCType.fp",
39 "/sksl/fp/GrInlinedFunction.fp",
40 "/sksl/fp/GrKeyIn.fp",
41 "/sksl/fp/GrLayoutWhen.fp",
42 "/sksl/fp/GrMainCoords.fp",
43 "/sksl/fp/GrModuloOp.fp",
44 "/sksl/fp/GrNestedCall.fp",
45 "/sksl/fp/GrNestedChildProcessors.fp",
46 "/sksl/fp/GrNonInlinedInUniform.fp",
47 "/sksl/fp/GrSectionClass.fp",
48 "/sksl/fp/GrSectionConstructor.fp",
49 "/sksl/fp/GrSectionConstructorParams.fp",
50 "/sksl/fp/GrSectionCpp.fp",
51 "/sksl/fp/GrSectionDumpInfo.fp",
52 "/sksl/fp/GrSectionEmitCode.fp",
53 "/sksl/fp/GrSectionFields.fp",
54 "/sksl/fp/GrSectionHeader.fp",
55 "/sksl/fp/GrSectionInitializers.fp",
56 "/sksl/fp/GrSectionMake.fp",
57 "/sksl/fp/GrSectionSetData.fp",
58 "/sksl/fp/GrSectionTest.fp",
59 "/sksl/fp/GrTrackedInUniform.fp",
60 "/sksl/fp/GrUniform.fp",
61 "/sksl/fp/GrUniformArrays.fp",
62 "/sksl/fp/GrUseExplicitReturn.fp",
John Stilesea9e7ca2020-09-14 16:46:40 -040063]
John Stilesd836f842020-09-14 10:21:44 -040064
John Stiles7e248712020-09-24 16:42:09 -040065sksl_error_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -050066 "/sksl/errors/ArgumentCountMismatch.sksl",
67 "/sksl/errors/ArgumentMismatch.sksl",
68 "/sksl/errors/ArgumentModifiers.sksl",
John Stiles248f57b2021-02-03 15:11:18 -050069 "/sksl/errors/ArrayConstructorElementCount.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -050070 "/sksl/errors/ArrayIndexOutOfRange.sksl",
John Stiles80b02af2021-02-12 17:07:51 -050071 "/sksl/errors/ArrayOfVoid.sksl",
72 "/sksl/errors/ArrayOfVoidInStruct.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -050073 "/sksl/errors/ArrayReturnTypes.sksl",
John Stiles80b02af2021-02-12 17:07:51 -050074 "/sksl/errors/ArraySplitDimensions.sksl",
75 "/sksl/errors/ArraySplitDimensionsInFuncBody.sksl",
76 "/sksl/errors/ArraySplitDimensionsInFuncDecl.sksl",
77 "/sksl/errors/ArraySplitDimensionsInStruct.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -050078 "/sksl/errors/ArrayTooManyDimensions.sksl",
John Stiles80b02af2021-02-12 17:07:51 -050079 "/sksl/errors/ArrayTooManyDimensionsInFuncBody.sksl",
80 "/sksl/errors/ArrayTooManyDimensionsInFuncDecl.sksl",
81 "/sksl/errors/ArrayTooManyDimensionsInStruct.sksl",
82 "/sksl/errors/ArrayTypeTooManyDimensions.sksl",
83 "/sksl/errors/ArrayTypeTooManyDimensionsInFuncBody.sksl",
84 "/sksl/errors/ArrayTypeTooManyDimensionsInFuncDecl.sksl",
85 "/sksl/errors/ArrayTypeTooManyDimensionsInStruct.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -050086 "/sksl/errors/ArrayUnspecifiedDimensions.sksl",
87 "/sksl/errors/AssignmentTypeMismatch.sksl",
88 "/sksl/errors/BadCaps.sksl",
Brian Osman7b361492021-02-25 11:25:30 -050089 "/sksl/errors/BadConstInitializers.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -050090 "/sksl/errors/BadFieldAccess.sksl",
91 "/sksl/errors/BadIndex.sksl",
92 "/sksl/errors/BadModifiers.sksl",
93 "/sksl/errors/BinaryInvalidType.sksl",
94 "/sksl/errors/BinaryTypeCoercion.sksl",
95 "/sksl/errors/BinaryTypeMismatch.sksl",
96 "/sksl/errors/BitShiftFloat.sksl",
97 "/sksl/errors/BitShiftFloatMatrix.sksl",
98 "/sksl/errors/BitShiftFloatVector.sksl",
99 "/sksl/errors/BooleanArithmetic.sksl",
100 "/sksl/errors/BreakOutsideLoop.sksl",
101 "/sksl/errors/CallNonFunction.sksl",
102 "/sksl/errors/CanExitWithoutReturningValue.sksl",
103 "/sksl/errors/ConstructorArgumentCount.sksl",
104 "/sksl/errors/ConstructorTypeMismatch.sksl",
105 "/sksl/errors/ContinueOutsideLoop.sksl",
106 "/sksl/errors/DivideByZero.sksl",
107 "/sksl/errors/DoTypeMismatch.sksl",
108 "/sksl/errors/DuplicateFunction.sksl",
109 "/sksl/errors/DuplicateOutput.sksl",
110 "/sksl/errors/DuplicateSymbol.sksl",
Brian Osman6c3b23f2021-02-12 13:09:58 -0500111 "/sksl/errors/EmptyStruct.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500112 "/sksl/errors/EnumValueMustBeConstInt.sksl",
113 "/sksl/errors/ErrorsInDeadCode.sksl",
114 "/sksl/errors/FloatRemainder.sksl",
115 "/sksl/errors/ForTypeMismatch.sksl",
116 "/sksl/errors/GenericArgumentMismatch.sksl",
117 "/sksl/errors/IfTypeMismatch.sksl",
118 "/sksl/errors/InVarWithInitializerExpression.sksl",
119 "/sksl/errors/InterfaceBlockScope.sksl",
120 "/sksl/errors/InterfaceBlockStorageModifiers.sksl",
121 "/sksl/errors/InterfaceBlockWithNoMembers.sksl",
122 "/sksl/errors/InvalidAssignment.sksl",
123 "/sksl/errors/InvalidOutParams.sksl",
124 "/sksl/errors/InvalidToken.sksl",
125 "/sksl/errors/InvalidUnary.sksl",
Brian Osmana654faa2021-02-26 11:52:59 -0500126 "/sksl/errors/LayoutInFunctions.sksl",
Brian Osmana77ed8b2021-02-23 12:54:22 -0500127 "/sksl/errors/LayoutMultiplePrimitiveTypes.sksl",
128 "/sksl/errors/LayoutRepeatedQualifiers.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500129 "/sksl/errors/MismatchedNumbers.sksl",
130 "/sksl/errors/ModifiersInStruct.sksl",
131 "/sksl/errors/OpaqueTypeAssignment.sksl",
132 "/sksl/errors/OpaqueTypeConstruction.sksl",
133 "/sksl/errors/OpaqueTypeInArray.sksl",
134 "/sksl/errors/OpaqueTypeInInterfaceBlock.sksl",
135 "/sksl/errors/OpaqueTypeInStruct.sksl",
136 "/sksl/errors/OpenArray.sksl",
137 "/sksl/errors/Ossfuzz26700.sksl",
John Stilesbb8542f2021-02-26 11:32:06 -0500138 "/sksl/errors/Ossfuzz27614.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500139 "/sksl/errors/Ossfuzz27650.sksl",
140 "/sksl/errors/Ossfuzz27663.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 Stilesbb8542f2021-02-26 11:32:06 -0500143 "/sksl/errors/Ossfuzz31410.sksl",
John Stiles0c2d14a2021-03-01 10:08:08 -0500144 "/sksl/errors/Ossfuzz31469.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500145 "/sksl/errors/OverflowFloatLiteral.sksl",
146 "/sksl/errors/OverflowIntLiteral.sksl",
147 "/sksl/errors/OverflowParamArraySize.sksl",
148 "/sksl/errors/OverflowUintLiteral.sksl",
John Stiles8dabeac2021-02-12 16:05:00 -0500149 "/sksl/errors/PrototypeInFuncBody.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500150 "/sksl/errors/PrivateTypes.sksl",
151 "/sksl/errors/RedeclareBasicType.sksl",
152 "/sksl/errors/RedeclareEnum.sksl",
153 "/sksl/errors/RedeclareSamplerType.sksl",
154 "/sksl/errors/RedeclareStruct.sksl",
155 "/sksl/errors/RedeclareStructTypeWithName.sksl",
156 "/sksl/errors/RedeclareUserType.sksl",
157 "/sksl/errors/RedeclareVariable.sksl",
158 "/sksl/errors/ReturnDifferentType.sksl",
159 "/sksl/errors/ReturnFromVoid.sksl",
160 "/sksl/errors/ReturnMissingValue.sksl",
161 "/sksl/errors/ReturnTypeMismatch.sksl",
162 "/sksl/errors/SelfReferentialInitializerExpression.sksl",
163 "/sksl/errors/SpuriousFloat.sksl",
164 "/sksl/errors/StaticIfTest.sksl",
165 "/sksl/errors/StaticSwitchConditionalBreak.sksl",
166 "/sksl/errors/StaticSwitchTest.sksl",
John Stiles04ca41a2021-02-23 09:58:04 -0500167 "/sksl/errors/StaticSwitchWithConditionalBreak.sksl",
168 "/sksl/errors/StaticSwitchWithConditionalContinue.sksl",
169 "/sksl/errors/StaticSwitchWithConditionalReturn.sksl",
Brian Osman00fea5b2021-01-28 09:46:30 -0500170 "/sksl/errors/StructNameWithoutIdentifier.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500171 "/sksl/errors/StructTooDeeplyNested.sksl",
172 "/sksl/errors/SwitchDuplicateCase.sksl",
John Stiles463fad22021-02-19 15:13:46 -0500173 "/sksl/errors/SwitchDuplicateDefault.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500174 "/sksl/errors/SwitchTypes.sksl",
175 "/sksl/errors/SwizzleConstantOutput.sksl",
176 "/sksl/errors/SwizzleMatrix.sksl",
177 "/sksl/errors/SwizzleOnlyLiterals.sksl",
178 "/sksl/errors/SwizzleOutOfBounds.sksl",
179 "/sksl/errors/SwizzleTooManyComponents.sksl",
180 "/sksl/errors/TernaryMismatch.sksl",
181 "/sksl/errors/UndeclaredFunction.sksl",
182 "/sksl/errors/UndefinedFunction.sksl",
183 "/sksl/errors/UndefinedSymbol.sksl",
Brian Osman2fe67f92021-02-17 16:24:04 -0500184 "/sksl/errors/UniformVarWithInitializerExpression.sksl",
Ethan Nicholasc0f98152021-02-05 16:21:10 -0500185 "/sksl/errors/UnknownDivideByZero.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500186 "/sksl/errors/UnsupportedGLSLIdentifiers.sksl",
John Stilese3a91cf2021-01-26 10:13:58 -0500187 "/sksl/errors/UnscopedVariableInDoWhile.sksl",
188 "/sksl/errors/UnscopedVariableInElse.sksl",
John Stiles2b6ec982021-03-04 10:46:39 -0500189 "/sksl/errors/UnscopedVariableInFor.sksl",
John Stilese3a91cf2021-01-26 10:13:58 -0500190 "/sksl/errors/UnscopedVariableInIf.sksl",
191 "/sksl/errors/UnscopedVariableInWhile.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500192 "/sksl/errors/UsingInvalidValue.sksl",
193 "/sksl/errors/WhileTypeMismatch.sksl",
John Stiles7e248712020-09-24 16:42:09 -0400194]
195
John Stilesab4ab202020-09-24 17:22:42 -0400196sksl_glsl_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -0500197 "/sksl/glsl/ForceHighPrecision.sksl",
198 "/sksl/glsl/IncompleteShortIntPrecision.sksl",
199 "/sksl/glsl/LayoutQualifiers.sksl",
200 "/sksl/glsl/ShortIntPrecision.sksl",
201 "/sksl/glsl/TextureSharpenVersion110.sksl",
202 "/sksl/glsl/TextureVersion110.sksl",
203 "/sksl/glsl/UsesPrecisionModifiers.sksl",
204 "/sksl/glsl/Version110.sksl",
205 "/sksl/glsl/Version450Core.sksl",
John Stilesab4ab202020-09-24 17:22:42 -0400206]
207
John Stiles34de5cb2020-11-13 18:14:11 -0500208sksl_metal_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -0500209 "/sksl/metal/CastHalf4ToMat2x2.sksl",
210 "/sksl/metal/CastMat2x2ToMat3x3.sksl",
211 "/sksl/metal/CastMat2x3ToMat4x4.sksl",
212 "/sksl/metal/CastMat4x4ToMat3x4.sksl",
213 "/sksl/metal/CastMat4x4ToMat4x3.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500214 "/sksl/metal/NumericGlobals.sksl",
215 "/sksl/metal/OpaqueTypeInInterfaceBlock.sksl",
216 "/sksl/metal/OpaqueTypeInStruct.sksl",
217 "/sksl/metal/OutParams.sksl",
218 "/sksl/metal/OutVarsRequireLocation.sksl",
219 "/sksl/metal/SamplerGlobals.sksl",
220 "/sksl/metal/SwizzleHelper.sksl",
John Stiles34de5cb2020-11-13 18:14:11 -0500221]
222
John Stilesba067aa2020-11-25 16:55:37 -0500223sksl_spirv_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -0500224 "/sksl/spirv/ConstantVectorFromVector.sksl",
Brian Osman2a4c0fb2021-01-22 13:41:40 -0500225 "/sksl/spirv/InterfaceBlockPushConstant.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500226 "/sksl/spirv/LayoutMultipleOf4.sksl",
227 "/sksl/spirv/LayoutOutOfOrder.sksl",
228 "/sksl/spirv/OpaqueTypeInArray.sksl",
John Stiles85749c02021-03-23 17:12:03 -0400229 "/sksl/workarounds/RewriteMatrixVectorMultiply.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500230 "/sksl/errors/UndefinedFunction.sksl",
John Stilesba067aa2020-11-25 16:55:37 -0500231]
232
John Stilesab4ab202020-09-24 17:22:42 -0400233sksl_shared_tests = [
John Stilese1658b52021-01-29 11:44:13 -0500234 "/sksl/intrinsics/AbsFloat.sksl",
235 "/sksl/intrinsics/AbsInt.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500236 "/sksl/intrinsics/Acos.sksl",
237 "/sksl/intrinsics/Acosh.sksl",
238 "/sksl/intrinsics/All.sksl",
239 "/sksl/intrinsics/Any.sksl",
240 "/sksl/intrinsics/Asin.sksl",
241 "/sksl/intrinsics/Asinh.sksl",
242 "/sksl/intrinsics/Atan.sksl",
243 "/sksl/intrinsics/Atanh.sksl",
244 "/sksl/intrinsics/BitCount.sksl",
245 "/sksl/intrinsics/Ceil.sksl",
John Stiles9c9f60c2021-01-29 11:51:47 -0500246 "/sksl/intrinsics/ClampFloat.sksl",
247 "/sksl/intrinsics/ClampInt.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500248 "/sksl/intrinsics/Cos.sksl",
249 "/sksl/intrinsics/Cosh.sksl",
250 "/sksl/intrinsics/Cross.sksl",
John Stilesece1d792021-03-22 11:43:11 -0400251 "/sksl/intrinsics/CrossNoInline.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500252 "/sksl/intrinsics/Degrees.sksl",
253 "/sksl/intrinsics/Determinant.sksl",
254 "/sksl/intrinsics/DFdx.sksl",
255 "/sksl/intrinsics/DFdy.sksl",
256 "/sksl/intrinsics/Distance.sksl",
257 "/sksl/intrinsics/Dot.sksl",
258 "/sksl/intrinsics/Equal.sksl",
259 "/sksl/intrinsics/Exp.sksl",
260 "/sksl/intrinsics/Exp2.sksl",
261 "/sksl/intrinsics/FaceForward.sksl",
262 "/sksl/intrinsics/FindLSB.sksl",
263 "/sksl/intrinsics/FindMSB.sksl",
264 "/sksl/intrinsics/FloatBitsToInt.sksl",
265 "/sksl/intrinsics/FloatBitsToUint.sksl",
266 "/sksl/intrinsics/Floor.sksl",
267 "/sksl/intrinsics/Fma.sksl",
268 "/sksl/intrinsics/Fract.sksl",
269 "/sksl/intrinsics/Frexp.sksl",
270 "/sksl/intrinsics/Fwidth.sksl",
271 "/sksl/intrinsics/GreaterThan.sksl",
272 "/sksl/intrinsics/GreaterThanEqual.sksl",
273 "/sksl/intrinsics/IntBitsToFloat.sksl",
274 "/sksl/intrinsics/Inverse.sksl",
275 "/sksl/intrinsics/Inversesqrt.sksl",
276 "/sksl/intrinsics/IsInf.sksl",
277 "/sksl/intrinsics/IsNan.sksl",
278 "/sksl/intrinsics/Ldexp.sksl",
279 "/sksl/intrinsics/Length.sksl",
280 "/sksl/intrinsics/LessThan.sksl",
281 "/sksl/intrinsics/LessThanEqual.sksl",
282 "/sksl/intrinsics/Log.sksl",
283 "/sksl/intrinsics/Log2.sksl",
284 "/sksl/intrinsics/MatrixCompMult.sksl",
John Stiles9c9f60c2021-01-29 11:51:47 -0500285 "/sksl/intrinsics/MaxFloat.sksl",
286 "/sksl/intrinsics/MaxInt.sksl",
287 "/sksl/intrinsics/MinFloat.sksl",
288 "/sksl/intrinsics/MinInt.sksl",
289 "/sksl/intrinsics/MixFloat.sksl",
290 "/sksl/intrinsics/MixBool.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500291 "/sksl/intrinsics/Mod.sksl",
292 "/sksl/intrinsics/Modf.sksl",
293 "/sksl/intrinsics/Normalize.sksl",
294 "/sksl/intrinsics/Not.sksl",
295 "/sksl/intrinsics/NotEqual.sksl",
296 "/sksl/intrinsics/OuterProduct.sksl",
297 "/sksl/intrinsics/Pack.sksl",
298 "/sksl/intrinsics/Pow.sksl",
299 "/sksl/intrinsics/Radians.sksl",
300 "/sksl/intrinsics/Reflect.sksl",
301 "/sksl/intrinsics/Refract.sksl",
302 "/sksl/intrinsics/Round.sksl",
303 "/sksl/intrinsics/RoundEven.sksl",
304 "/sksl/intrinsics/Saturate.sksl",
John Stilese1658b52021-01-29 11:44:13 -0500305 "/sksl/intrinsics/SignFloat.sksl",
306 "/sksl/intrinsics/SignInt.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500307 "/sksl/intrinsics/Sin.sksl",
308 "/sksl/intrinsics/Sinh.sksl",
309 "/sksl/intrinsics/Smoothstep.sksl",
310 "/sksl/intrinsics/Sqrt.sksl",
311 "/sksl/intrinsics/Step.sksl",
312 "/sksl/intrinsics/Tan.sksl",
313 "/sksl/intrinsics/Tanh.sksl",
314 "/sksl/intrinsics/Transpose.sksl",
315 "/sksl/intrinsics/Trunc.sksl",
316 "/sksl/intrinsics/UintBitsToFloat.sksl",
317 "/sksl/intrinsics/Unpack.sksl",
318 "/sksl/shared/ArrayConstructors.sksl",
319 "/sksl/shared/ArrayIndexTypes.sksl",
320 "/sksl/shared/ArrayTypes.sksl",
321 "/sksl/shared/Assignment.sksl",
322 "/sksl/shared/Caps.sksl",
323 "/sksl/shared/CastsRoundTowardZero.sksl",
324 "/sksl/shared/Clockwise.sksl",
John Stiles5a956ce2021-02-02 13:58:42 -0500325 "/sksl/shared/CommaMixedTypes.sksl",
John Stiles94e72b92021-01-30 11:06:18 -0500326 "/sksl/shared/CommaSideEffects.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500327 "/sksl/shared/ComplexDelete.sksl",
328 "/sksl/shared/ConstArray.sksl",
329 "/sksl/shared/ConstVariableComparison.sksl",
330 "/sksl/shared/ConstantIf.sksl",
331 "/sksl/shared/Control.sksl",
332 "/sksl/shared/DeadDoWhileLoop.sksl",
333 "/sksl/shared/DeadIfStatement.sksl",
334 "/sksl/shared/DeadLoopVariable.sksl",
335 "/sksl/shared/DeadStripFunctions.sksl",
336 "/sksl/shared/DependentInitializers.sksl",
337 "/sksl/shared/DerivativesUnused.sksl",
338 "/sksl/shared/Discard.sksl",
John Stiles798021a2021-01-26 10:37:41 -0500339 "/sksl/shared/DoWhileControlFlow.sksl",
John Stilesc068a8f2021-02-01 11:52:10 -0500340 "/sksl/shared/EmptyBlocksES2.sksl",
341 "/sksl/shared/EmptyBlocksES3.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500342 "/sksl/shared/Enum.sksl",
John Stilesdac139a2021-01-26 11:06:42 -0500343 "/sksl/shared/ForLoopControlFlow.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500344 "/sksl/shared/FragCoordsFlipY.sksl",
345 "/sksl/shared/FragCoordsNew.sksl",
346 "/sksl/shared/FragCoordsOld.sksl",
John Stiles931cad12021-02-01 16:36:13 -0500347 "/sksl/shared/FunctionArgTypeMatch.sksl",
348 "/sksl/shared/FunctionReturnTypeMatch.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500349 "/sksl/shared/FunctionPrototype.sksl",
350 "/sksl/shared/Functions.sksl",
351 "/sksl/shared/GaussianBlur.sksl",
352 "/sksl/shared/GeometricIntrinsics.sksl",
353 "/sksl/shared/Geometry.geom",
354 "/sksl/shared/GeometryExtension.geom",
355 "/sksl/shared/GeometryGSInvocations.geom",
356 "/sksl/shared/GeometryNoGSInvocations.geom",
357 "/sksl/shared/GeometryNoGSInvocationsReorder.geom",
358 "/sksl/shared/Height.sksl",
359 "/sksl/shared/HelloWorld.sksl",
360 "/sksl/shared/Hex.sksl",
John Stilesecd20362021-02-03 17:44:47 -0500361 "/sksl/shared/HexUnsigned.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500362 "/sksl/shared/InstanceID.vert",
John Stilesbfc9be02021-01-22 11:55:48 -0500363 "/sksl/shared/InterfaceBlockNamed.sksl",
John Stilesda5cdf62021-01-28 11:47:29 -0500364 "/sksl/shared/InterfaceBlockNamedArray.sksl",
John Stiles56233d12021-02-03 13:03:29 -0500365 "/sksl/shared/Matrices.sksl",
366 "/sksl/shared/MatricesNonsquare.sksl",
John Stilesa0e407d2021-02-10 12:21:51 -0500367 "/sksl/shared/MatrixEquality.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500368 "/sksl/shared/MultipleAssignments.sksl",
369 "/sksl/shared/NegatedVectorLiteral.sksl",
370 "/sksl/shared/NoFragCoordsPos.vert",
371 "/sksl/shared/NoFragCoordsPosRT.vert",
372 "/sksl/shared/NormalizationGeo.geom",
373 "/sksl/shared/NormalizationVert.vert",
374 "/sksl/shared/NumberCasts.sksl",
375 "/sksl/shared/NumberConversions.sksl",
376 "/sksl/shared/Offset.sksl",
John Stiles2ff8f862021-01-30 11:08:13 -0500377 "/sksl/shared/OperatorsES2.sksl",
378 "/sksl/shared/OperatorsES3.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500379 "/sksl/shared/Ossfuzz26167.sksl",
John Stiles1b843bd2021-03-22 15:42:16 -0400380 "/sksl/shared/Ossfuzz26759.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500381 "/sksl/shared/Ossfuzz28050.sksl",
382 "/sksl/shared/Ossfuzz28794.sksl",
383 "/sksl/shared/Ossfuzz28904.sksl",
John Stiles1b843bd2021-03-22 15:42:16 -0400384 "/sksl/shared/Ossfuzz29085.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500385 "/sksl/shared/Ossfuzz29444.sksl",
Brian Osman21d2b6a2021-02-01 13:48:50 -0500386 "/sksl/shared/Ossfuzz29494.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500387 "/sksl/shared/OutParams.sksl",
Ethan Nicholase0707b72021-03-17 11:16:41 -0400388 "/sksl/shared/OutParamsNoInline.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500389 "/sksl/shared/OutParamsTricky.sksl",
390 "/sksl/shared/RectangleTexture.sksl",
391 "/sksl/shared/ResizeMatrix.sksl",
John Stilesd4374782021-02-05 09:31:21 -0500392 "/sksl/shared/ResizeMatrixNonsquare.sksl",
John Stiles4d6310a2021-01-26 19:58:22 -0500393 "/sksl/shared/ReturnBadTypeFromMain.sksl",
394 "/sksl/shared/ReturnColorFromMain.sksl",
John Stilesb3dcbb12021-03-04 16:00:20 -0500395 "/sksl/shared/ReturnsValueOnEveryPathES2.sksl",
396 "/sksl/shared/ReturnsValueOnEveryPathES3.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500397 "/sksl/shared/SampleLocations.vert",
John Stilesd4374782021-02-05 09:31:21 -0500398 "/sksl/shared/ScalarConversionConstructorsES2.sksl",
399 "/sksl/shared/ScalarConversionConstructorsES3.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500400 "/sksl/shared/ScopedSymbol.sksl",
401 "/sksl/shared/StackingVectorCasts.sksl",
402 "/sksl/shared/StaticIf.sksl",
403 "/sksl/shared/StaticSwitch.sksl",
404 "/sksl/shared/StaticSwitchWithBreak.sksl",
405 "/sksl/shared/StaticSwitchWithBreakInsideBlock.sksl",
406 "/sksl/shared/StaticSwitchWithConditionalBreak.sksl",
407 "/sksl/shared/StaticSwitchWithConditionalBreakInsideBlock.sksl",
John Stiles04ca41a2021-02-23 09:58:04 -0500408 "/sksl/shared/StaticSwitchWithContinue.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500409 "/sksl/shared/StaticSwitchWithFallthroughA.sksl",
410 "/sksl/shared/StaticSwitchWithFallthroughB.sksl",
411 "/sksl/shared/StaticSwitchWithStaticConditionalBreak.sksl",
412 "/sksl/shared/StaticSwitchWithStaticConditionalBreakInsideBlock.sksl",
413 "/sksl/shared/Structs.sksl",
Brian Osmanbf7b4b82021-01-27 13:53:43 -0500414 "/sksl/shared/StructsInFunctions.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500415 "/sksl/shared/StructMaxDepth.sksl",
416 "/sksl/shared/Switch.sksl",
417 "/sksl/shared/SwitchContainingDeadCode.sksl",
418 "/sksl/shared/SwitchWithFallthrough.sksl",
419 "/sksl/shared/SwizzleBoolConstants.sksl",
John Stilesc2c1b0c2021-02-05 16:24:03 -0500420 "/sksl/shared/SwizzleByConstantIndex.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500421 "/sksl/shared/SwizzleByIndex.sksl",
422 "/sksl/shared/SwizzleConstants.sksl",
423 "/sksl/shared/SwizzleLTRB.sksl",
424 "/sksl/shared/SwizzleOpt.sksl",
425 "/sksl/shared/SwizzleScalar.sksl",
426 "/sksl/shared/TernaryAsLValueEntirelyFoldable.sksl",
427 "/sksl/shared/TernaryAsLValueFoldableTest.sksl",
John Stiles28054ad2021-03-05 15:22:48 -0500428 "/sksl/shared/TernaryExpression.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500429 "/sksl/shared/Texture1D.sksl",
430 "/sksl/shared/Texture2D.sksl",
431 "/sksl/shared/TextureSharpen.sksl",
432 "/sksl/shared/UnaryPositiveNegative.sksl",
433 "/sksl/shared/UniformArray.sksl",
John Stilesda5cdf62021-01-28 11:47:29 -0500434 "/sksl/shared/UniformBuffers.sksl",
435 "/sksl/shared/Uniforms.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500436 "/sksl/shared/UnusedVariables.sksl",
437 "/sksl/shared/VectorConstructors.sksl",
John Stiles2febb5b2021-03-25 11:43:40 -0400438 "/sksl/shared/VectorScalarMath.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500439 "/sksl/shared/VertexEarlyReturn.vert",
440 "/sksl/shared/VertexID.vert",
John Stiles7add07f2021-01-26 11:16:34 -0500441 "/sksl/shared/WhileLoopControlFlow.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500442 "/sksl/shared/Width.sksl",
John Stiles7e248712020-09-24 16:42:09 -0400443]
444
John Stiles74192fd2021-01-11 11:07:01 -0500445sksl_folding_tests = [
John Stiles34c098d2021-02-09 10:38:59 -0500446 "/sksl/folding/AssignmentOps.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500447 "/sksl/folding/BoolFolding.sksl",
448 "/sksl/folding/FloatFolding.sksl",
449 "/sksl/folding/IntFoldingES2.sksl",
450 "/sksl/folding/IntFoldingES3.sksl",
451 "/sksl/folding/MatrixFoldingES2.sksl",
452 "/sksl/folding/MatrixFoldingES3.sksl",
John Stiles0ac6c152021-02-10 14:04:24 -0500453 "/sksl/folding/SelfAssignment.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500454 "/sksl/folding/ShortCircuitBoolFolding.sksl",
455 "/sksl/folding/VectorScalarFolding.sksl",
456 "/sksl/folding/VectorVectorFolding.sksl",
John Stiles74192fd2021-01-11 11:07:01 -0500457]
458
John Stiles7e248712020-09-24 16:42:09 -0400459sksl_inliner_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -0500460 "/sksl/inliner/DoWhileBodyMustBeInlinedIntoAScope.sksl",
461 "/sksl/inliner/DoWhileTestCannotBeInlined.sksl",
462 "/sksl/inliner/EnumsCanBeInlinedSafely.sksl",
463 "/sksl/inliner/ForBodyMustBeInlinedIntoAScope.sksl",
464 "/sksl/inliner/ForInitializerExpressionsCanBeInlined.sksl",
465 "/sksl/inliner/ForWithReturnInsideCannotBeInlined.sksl",
466 "/sksl/inliner/ForWithoutReturnInsideCanBeInlined.sksl",
467 "/sksl/inliner/IfBodyMustBeInlinedIntoAScope.sksl",
468 "/sksl/inliner/IfElseBodyMustBeInlinedIntoAScope.sksl",
469 "/sksl/inliner/IfElseChainWithReturnsCanBeInlined.sksl",
470 "/sksl/inliner/IfTestCanBeInlined.sksl",
471 "/sksl/inliner/IfWithReturnsCanBeInlined.sksl",
472 "/sksl/inliner/InlineKeywordOverridesThreshold.sksl",
473 "/sksl/inliner/InlineThreshold.sksl",
474 "/sksl/inliner/InlinerElidesTempVarForReturnsInsideBlock.sksl",
475 "/sksl/inliner/InlinerUsesTempVarForMultipleReturns.sksl",
476 "/sksl/inliner/InlinerUsesTempVarForReturnsInsideBlockWithVar.sksl",
477 "/sksl/inliner/InlineWithInoutArgument.sksl",
478 "/sksl/inliner/InlineWithModifiedArgument.sksl",
479 "/sksl/inliner/InlineWithNestedBigCalls.sksl",
480 "/sksl/inliner/InlineWithNestedCalls.sksl",
481 "/sksl/inliner/InlineWithUnmodifiedArgument.sksl",
482 "/sksl/inliner/InlineWithUnnecessaryBlocks.sksl",
483 "/sksl/inliner/InlinerAvoidsVariableNameOverlap.sksl",
John Stiles92d83b72021-02-13 11:25:51 -0500484 "/sksl/inliner/InlinerHonorsGLSLOutParamSemantics.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500485 "/sksl/inliner/InlinerManglesNames.sksl",
John Stiles0dd1a772021-03-09 22:14:27 -0500486 "/sksl/inliner/NoInline.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500487 "/sksl/inliner/ShortCircuitEvaluationsCannotInlineRightHandSide.sksl",
John Stiles66c53b92021-02-20 08:00:43 -0500488 "/sksl/inliner/StaticSwitch.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500489 "/sksl/inliner/StructsCanBeInlinedSafely.sksl",
490 "/sksl/inliner/SwitchWithCastCanBeInlined.sksl",
491 "/sksl/inliner/SwitchWithoutReturnInsideCanBeInlined.sksl",
492 "/sksl/inliner/SwizzleCanBeInlinedDirectly.sksl",
493 "/sksl/inliner/TernaryResultsCannotBeInlined.sksl",
494 "/sksl/inliner/TernaryTestCanBeInlined.sksl",
495 "/sksl/inliner/TrivialArgumentsInlineDirectly.sksl",
496 "/sksl/inliner/WhileBodyMustBeInlinedIntoAScope.sksl",
497 "/sksl/inliner/WhileTestCannotBeInlined.sksl",
John Stilesea9e7ca2020-09-14 16:46:40 -0400498]
John Stiles0ed9f312020-09-16 17:46:37 -0400499
John Stiles7e248712020-09-24 16:42:09 -0400500sksl_blend_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -0500501 "/sksl/blend/BlendClear.sksl",
502 "/sksl/blend/BlendColor.sksl",
503 "/sksl/blend/BlendColorBurn.sksl",
504 "/sksl/blend/BlendColorDodge.sksl",
505 "/sksl/blend/BlendDarken.sksl",
506 "/sksl/blend/BlendDifference.sksl",
507 "/sksl/blend/BlendDst.sksl",
508 "/sksl/blend/BlendDstAtop.sksl",
509 "/sksl/blend/BlendDstIn.sksl",
510 "/sksl/blend/BlendDstOut.sksl",
511 "/sksl/blend/BlendDstOver.sksl",
512 "/sksl/blend/BlendEnum.sksl",
513 "/sksl/blend/BlendExclusion.sksl",
514 "/sksl/blend/BlendHardLight.sksl",
515 "/sksl/blend/BlendHue.sksl",
516 "/sksl/blend/BlendLighten.sksl",
517 "/sksl/blend/BlendLuminosity.sksl",
518 "/sksl/blend/BlendModulate.sksl",
519 "/sksl/blend/BlendMultiply.sksl",
520 "/sksl/blend/BlendOverlay.sksl",
521 "/sksl/blend/BlendPlus.sksl",
522 "/sksl/blend/BlendSaturation.sksl",
523 "/sksl/blend/BlendScreen.sksl",
524 "/sksl/blend/BlendSoftLight.sksl",
525 "/sksl/blend/BlendSrc.sksl",
526 "/sksl/blend/BlendSrcAtop.sksl",
527 "/sksl/blend/BlendSrcIn.sksl",
528 "/sksl/blend/BlendSrcOut.sksl",
529 "/sksl/blend/BlendSrcOver.sksl",
530 "/sksl/blend/BlendXor.sksl",
John Stiles7e248712020-09-24 16:42:09 -0400531]
532
533sksl_settings_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -0500534 "/sksl/glsl/TypePrecision.sksl",
535 "/sksl/inliner/ExponentialGrowth.sksl",
536 "/sksl/inliner/InlinerCanBeDisabled.sksl",
537 "/sksl/shared/Derivatives.sksl",
538 "/sksl/shared/DerivativesFlipY.sksl",
539 "/sksl/workarounds/AbsInt.sksl",
540 "/sksl/workarounds/BlendGuardedDivide.sksl",
541 "/sksl/workarounds/BlendModesAllZeroVec.sksl",
542 "/sksl/workarounds/FractNegative.sksl",
543 "/sksl/workarounds/FragCoords.sksl",
544 "/sksl/workarounds/LoopCondition.sksl",
545 "/sksl/workarounds/MinAndAbsTogether.sksl",
546 "/sksl/workarounds/NegatedAtan.sksl",
547 "/sksl/workarounds/PowWithConstantExponent.sksl",
548 "/sksl/workarounds/RewriteDoWhileLoops.sksl",
John Stiles85749c02021-03-23 17:12:03 -0400549 "/sksl/workarounds/RewriteMatrixVectorMultiply.sksl",
John Stilesbfc9be02021-01-22 11:55:48 -0500550 "/sksl/workarounds/TernaryShortCircuit.sksl",
John Stiles0ed9f312020-09-16 17:46:37 -0400551]
John Stiles7e248712020-09-24 16:42:09 -0400552
Brian Osman977feec2020-12-22 11:28:59 -0500553sksl_rte_tests = [
John Stilesbfc9be02021-01-22 11:55:48 -0500554 "/sksl/runtime/ArrayIndexing.rte",
Brian Osman86e85532021-03-09 16:00:29 -0500555 "/sksl/runtime/ConstPreservation.rte",
John Stilesbfc9be02021-01-22 11:55:48 -0500556 "/sksl/runtime/ConversionConstructors.rte",
Brian Osmanb41a1f92021-02-17 11:36:43 -0500557 "/sksl/runtime/GlobalVariables.rte",
John Stilesbfc9be02021-01-22 11:55:48 -0500558 "/sksl/runtime/LoopInt.rte",
559 "/sksl/runtime/LoopFloat.rte",
560 "/sksl/runtime/SampleWithConstantMatrix.rte",
561 "/sksl/runtime/SampleWithExplicitCoord.rte",
562 "/sksl/runtime/SampleWithUniformMatrix.rte",
563 "/sksl/runtime/SampleWithVariableMatrix.rte",
564 "/sksl/runtime/VectorIndexing.rte",
Brian Osman977feec2020-12-22 11:28:59 -0500565]
566
567sksl_rte_error_tests = [
John Stilese6095982021-02-04 12:42:01 -0500568 "/sksl/runtime_errors/FirstClassArrays.rte",
Brian Osman6e2dccb2021-02-16 16:23:03 -0500569 "/sksl/runtime_errors/IllegalArrayOps.rte",
John Stilesbfc9be02021-01-22 11:55:48 -0500570 "/sksl/runtime_errors/IllegalIndexing.rte",
571 "/sksl/runtime_errors/IllegalOperators.rte",
572 "/sksl/runtime_errors/IllegalStatements.rte",
573 "/sksl/runtime_errors/LoopConditionErrors.rte",
574 "/sksl/runtime_errors/LoopExpressionErrors.rte",
575 "/sksl/runtime_errors/LoopInitializerErrors.rte",
576 "/sksl/runtime_errors/LoopStructureErrors.rte",
577 "/sksl/runtime_errors/UnsupportedTypeSampler.rte",
578 "/sksl/runtime_errors/UnsupportedTypeTexture.rte",
Brian Osman977feec2020-12-22 11:28:59 -0500579]
580
John Stiles7e248712020-09-24 16:42:09 -0400581# Tests in sksl_fp_tests_sources will be compiled with --settings on, and are expected to generate
582# a .cpp and a .h output file.
583sksl_fp_tests_sources = sksl_fp_error_tests + sksl_fp_tests
584
585# Tests in sksl_glsl_tests_sources will be compiled with --settings on, and are expected to generate
586# a .glsl output file.
587sksl_glsl_tests_sources =
John Stiles74192fd2021-01-11 11:07:01 -0500588 sksl_error_tests + sksl_glsl_tests + sksl_inliner_tests +
589 sksl_folding_tests + sksl_shared_tests
John Stiles7e248712020-09-24 16:42:09 -0400590
591# Tests in sksl_glsl_settings_tests_sources will be compiled twice, once with --settings and once
592# using --nosettings. In the latter mode, StandaloneSettings is appended to the output filename.
593sksl_glsl_settings_tests_sources = sksl_blend_tests + sksl_settings_tests
John Stilesaeae3a52020-09-25 13:35:58 -0400594
595# Tests in sksl_metal_tests_sources will be compiled with --settings on, and are expected to
596# generate a .metal output file.
John Stiles34de5cb2020-11-13 18:14:11 -0500597sksl_metal_tests_sources =
598 sksl_metal_tests + sksl_blend_tests + sksl_shared_tests
John Stilesdda1d312020-11-20 16:28:50 -0500599
600# Tests in sksl_spirv_tests_sources will be compiled with --settings on, and are expected to
601# generate a .asm.(frag|vert|geom) output file.
John Stilesba067aa2020-11-25 16:55:37 -0500602sksl_spirv_tests_sources =
603 sksl_blend_tests + sksl_shared_tests + sksl_spirv_tests
Brian Osman977feec2020-12-22 11:28:59 -0500604
605## Tests in sksl_skvm_tests_sources will be compiled with --settings on, and are expected to
606## generate a .skvm output file.
607sksl_skvm_tests_sources = sksl_rte_tests + sksl_rte_error_tests
Brian Osman62b039b2021-02-08 13:49:53 -0500608
609## Tests in sksl_stage_tests_sources will be compiled with --settings on, and are expected to
610## generate a .stage output file.
611sksl_stage_tests_sources = sksl_rte_tests