Lines Matching +full:vega +full:- +full:runtime
4 * Use of this source code is governed by a BSD-style license that can be
88 /** `CPU` tests must pass when painted to a CPU-backed surface via SkRuntimeEffect. */
93 * They aren't compatible with SkRuntimeEffect, since they use non-ES2 features.
97 /** `GPU` tests must pass when painted to a GPU-backed surface via SkRuntimeEffect. */
100 /** `GPU_ES3` tests must pass on ES3-compatible GPUs when "enforce ES2 restrictions" is off. */
134 static constexpr float kUniformTestInputs[] = {-1.25f, 0.0f, 0.75f, 2.25f};
146 static constexpr float kUniformTestArrayNegative[] = {-1, -2, -3, -4, -5};
180 surface->getCanvas()->clear(SK_ColorBLACK); in bitmap_from_shader()
184 surface->getCanvas()->drawRect(SkRect::MakeWH(kWidth, kHeight), paintShader); in bitmap_from_shader()
187 REPORTER_ASSERT(r, bitmap.tryAllocPixels(surface->imageInfo())); in bitmap_from_shader()
188 REPORTER_ASSERT(r, surface->readPixels(bitmap, /*srcX=*/0, /*srcY=*/0)); in bitmap_from_shader()
194 // The Metal shader compiler (which is also used under-the-hood for some GL/GLES contexts on in gpu_generates_nan()
195 // these platforms) enables fast-math by default. That prevents NaN-based tests from passing: in gpu_generates_nan()
196 // https://developer.apple.com/documentation/metal/mtlcompileoptions/1515914-fastmathenabled in gpu_generates_nan()
200 if (!ctx->priv().caps()->shaderCaps()->fInfinitySupport) { in gpu_generates_nan()
235 return SkString{reinterpret_cast<const char*>(shaderData->bytes()), shaderData->size()}; in load_source()
253 // TODO(b/40044139): migrate test-disable list from dm_flags into this map in failure_is_expected()
288 // - Apple -------------------------------------------------------------------------------- in failure_is_expected()
289 // MacOS/iOS do not handle short-circuit evaluation properly in OpenGL (chromium:307751) in failure_is_expected()
295 // ANGLE has a handful of Mac-specific bugs. in failure_is_expected()
310 // - ARM ---------------------------------------------------------------------------------- in failure_is_expected()
319 disables[test].push_back({regex("Mali-400"), _, GPU, _}); in failure_is_expected()
322 // - Nvidia ------------------------------------------------------------------------------- in failure_is_expected()
343 // constant-fold expressions with side-effects in constructors when compiling GLSL. in failure_is_expected()
368 // - PowerVR ------------------------------------------------------------------------------ in failure_is_expected()
374 // - Radeon ------------------------------------------------------------------------------- in failure_is_expected()
386 // The Radeon Vega 6 doesn't return zero for the derivative of a uniform. in failure_is_expected()
393 // - Adreno ------------------------------------------------------------------------------- in failure_is_expected()
434 // Adrenos alias out-params to globals improperly (b/40044222) in failure_is_expected()
448 // - Intel -------------------------------------------------------------------------------- in failure_is_expected()
459 // Swizzled-index store is broken across many Intel GPUs. (b/40045254) in failure_is_expected()
514 if (const std::vector<TestDisable>* testDisables = testDisableMap->find(name)) { in failure_is_expected()
643 // Create a raster-backed surface. in test_cpu()
659 // If this is an ES3-only test on a GPU which doesn't support SkSL ES3, return immediately. in test_ganesh()
663 (ctx->priv().caps()->shaderCaps()->supportedSkSLVerion() >= SkSL::Version::k300); in test_ganesh()
675 // Create a GPU-backed Ganesh surface. in test_ganesh()
678 std::string_view deviceName = ctx->priv().caps()->deviceName(); in test_ganesh()
700 // If this is an ES3-only test on a GPU which doesn't support SkSL ES3, return immediately. in test_graphite()
704 (ctx->priv().caps()->shaderCaps()->supportedSkSLVerion() >= SkSL::Version::k300); in test_graphite()
710 if (ctx->backend() == skgpu::BackendApi::kDawn) { in test_graphite()
719 // Create a GPU-backed Graphite surface. in test_graphite()
720 std::unique_ptr<skgpu::graphite::Recorder> recorder = ctx->makeRecorder(); in test_graphite()
726 std::string_view deviceName = ctx->priv().caps()->deviceName(); in test_graphite()
727 std::string_view backendAPI = skgpu::ContextTypeName(testCtx->contextType()); in test_graphite()
764 std::string cloned = expr.clone()->description(); in test_clone()
814 const SkSL::FunctionDeclaration* main = program->getFunction("main"); in test_raster_pipeline()
826 for (const SkSL::ProgramElement* elem : program->elements()) { in test_raster_pipeline()
828 if (elem->is<SkSL::GlobalVarDeclaration>()) { in test_raster_pipeline()
829 const SkSL::GlobalVarDeclaration& global = elem->as<SkSL::GlobalVarDeclaration>(); in test_raster_pipeline()
830 const SkSL::VarDeclaration& varDecl = global.declaration()->as<SkSL::VarDeclaration>(); in test_raster_pipeline()
867 *main->definition(), in test_raster_pipeline()
876 rasterProg->appendStages(&pipeline, &alloc, /*callbacks=*/nullptr, SkSpan(uniformValues)); in test_raster_pipeline()
943 * - CPU: this test should pass on the CPU backend
944 * - GPU: this test should pass on the Ganesh GPU backends
945 * - GPU_ES3: this test should pass on an ES3-compatible GPU when "enforce ES2 restrictions" is off
953 // clang-format off
1078 SKSL_TEST(ES3 | GPU_ES3, kNever, ArrayNarrowingConversions, "runtime/ArrayNarrowingConve…
1079 SKSL_TEST(ES3 | GPU_ES3, kNever, Commutative, "runtime/Commutative.rts")
1080 SKSL_TEST(CPU, kNever, DivideByZero, "runtime/DivideByZero.rts")
1081 SKSL_TEST(CPU | GPU, kNextRelease,FunctionParameterAliasingFirst, "runtime/FunctionParameterAl…
1082 SKSL_TEST(CPU | GPU, kNextRelease,FunctionParameterAliasingSecond, "runtime/FunctionParameterAl…
1083 SKSL_TEST(CPU | GPU, kNextRelease,IfElseBinding, "runtime/IfElseBinding.rts")
1084 SKSL_TEST(CPU | GPU, kNextRelease,IncrementDisambiguation, "runtime/IncrementDisambigua…
1085 SKSL_TEST(CPU | GPU, kApiLevel_T, LoopFloat, "runtime/LoopFloat.rts")
1086 SKSL_TEST(CPU | GPU, kApiLevel_T, LoopInt, "runtime/LoopInt.rts")
1087 SKSL_TEST(CPU | GPU, kApiLevel_U, Ossfuzz52603, "runtime/Ossfuzz52603.rts")
1088 SKSL_TEST(CPU | GPU, kApiLevel_T, QualifierOrder, "runtime/QualifierOrder.rts")
1089 SKSL_TEST(CPU | GPU, kApiLevel_T, PrecisionQualifiers, "runtime/PrecisionQualifiers…
1091 SKSL_TEST(ES3 | GPU_ES3 | UsesNaN, kNever, RecursiveComparison_Arrays, "runtime/RecursiveCompariso…
1092 SKSL_TEST(ES3 | GPU_ES3 | UsesNaN, kNever, RecursiveComparison_Structs, "runtime/RecursiveCompariso…
1093 SKSL_TEST(ES3 | GPU_ES3 | UsesNaN, kNever, RecursiveComparison_Types, "runtime/RecursiveCompariso…
1094 SKSL_TEST(ES3 | GPU_ES3 | UsesNaN, kNever, RecursiveComparison_Vectors, "runtime/RecursiveCompariso…
1178 // TODO(skia:13920): StructComparison currently exposes a bug in SPIR-V codegen.