From c5ee8576e10d182f6539afaaa6e75e230627b814 Mon Sep 17 00:00:00 2001 From: "Pavel.Sergeev" Date: Wed, 3 Aug 2022 21:24:40 +0200 Subject: [PATCH] add path that disables AtlasPathRenderer on D3D --- patches/13519_AtlasPathRenderer.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 patches/13519_AtlasPathRenderer.patch diff --git a/patches/13519_AtlasPathRenderer.patch b/patches/13519_AtlasPathRenderer.patch new file mode 100644 index 0000000..fdfe4fd --- /dev/null +++ b/patches/13519_AtlasPathRenderer.patch @@ -0,0 +1,18 @@ +diff --git a/src/gpu/ganesh/ops/AtlasPathRenderer.cpp b/src/gpu/ganesh/ops/AtlasPathRenderer.cpp +index 2a31b5a0d8..943bd29ece 100644 +--- a/src/gpu/ganesh/ops/AtlasPathRenderer.cpp ++++ b/src/gpu/ganesh/ops/AtlasPathRenderer.cpp +@@ -106,6 +106,13 @@ bool AtlasPathRenderer::IsSupported(GrRecordingContext* rContext) { + if (rContext->backend() == GrBackendApi::kOpenGL) { + return false; + } ++#endif ++#ifdef SK_BUILD_FOR_WIN ++ // http://skbug.com/13519 There is a bug with the atlas path renderer on Direct3D, running on ++ // Radeon hardware and possibly others. Disable until we can investigate. ++ if (rContext->backend() == GrBackendApi::kDirect3D) { ++ return false; ++ } + #endif + const GrCaps& caps = *rContext->priv().caps(); + auto atlasFormat = caps.getDefaultBackendFormat(kAtlasAlpha8Type, GrRenderable::kYes);