Skip to content

Commit

Permalink
add path that disables AtlasPathRenderer on D3D
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeevPavel committed Aug 3, 2022
1 parent 557ef0b commit c5ee857
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions patches/13519_AtlasPathRenderer.patch
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit c5ee857

Please sign in to comment.