Title: [291218] trunk/Source/ThirdParty/ANGLE
Revision
291218
Author
[email protected]
Date
2022-03-14 01:42:04 -0700 (Mon, 14 Mar 2022)

Log Message

REGRESSION (iOS 15.4 beta) - WebGL yields incorrect results when using preserveDrawingBuffer on iOS 15.4 Beta
https://bugs.webkit.org/show_bug.cgi?id=237113

Patch by Kimmo Kinnunen <[email protected]> on 2022-03-14
Reviewed by Myles C. Maxfield.

Cherry-pick without tests conflicting tests.

Cherry-pick ANGLE commit: 74f3270214394c896154e4bf9338e7d75002de61
From: Gregg Tavares <[email protected]>
Date: Thu, 3 Mar 2022 13:13:34 -0800
Subject: [PATCH] Metal: Fix for mulitsampled buffers losing their contents

Fixes tst included as well as WebGL CTS

https://www.khronos.org/registry/webgl/sdk/tests/conformance2/renderbuffers/multisample-draws-between-blits.html

Both fail on M1 without this fix.

Also fixes WebKit bug https://bugs.webkit.org/show_bug.cgi?id=237113

Bug: angleproject:7073

* src/libANGLE/renderer/metal/FrameBufferMtl.mm:
(rx::FramebufferMtl::setLoadStoreActionOnRenderPassFirstStart):

Modified Paths

Diff

Modified: trunk/Source/ThirdParty/ANGLE/ChangeLog (291217 => 291218)


--- trunk/Source/ThirdParty/ANGLE/ChangeLog	2022-03-13 14:34:17 UTC (rev 291217)
+++ trunk/Source/ThirdParty/ANGLE/ChangeLog	2022-03-14 08:42:04 UTC (rev 291218)
@@ -1,3 +1,30 @@
+2022-03-14  Kimmo Kinnunen  <[email protected]>
+
+        REGRESSION (iOS 15.4 beta) - WebGL yields incorrect results when using preserveDrawingBuffer on iOS 15.4 Beta
+        https://bugs.webkit.org/show_bug.cgi?id=237113
+
+        Reviewed by Myles C. Maxfield.
+
+        Cherry-pick without tests conflicting tests.
+
+        Cherry-pick ANGLE commit: 74f3270214394c896154e4bf9338e7d75002de61
+        From: Gregg Tavares <[email protected]>
+        Date: Thu, 3 Mar 2022 13:13:34 -0800
+        Subject: [PATCH] Metal: Fix for mulitsampled buffers losing their contents
+
+        Fixes tst included as well as WebGL CTS
+
+        https://www.khronos.org/registry/webgl/sdk/tests/conformance2/renderbuffers/multisample-draws-between-blits.html
+
+        Both fail on M1 without this fix.
+
+        Also fixes WebKit bug https://bugs.webkit.org/show_bug.cgi?id=237113
+
+        Bug: angleproject:7073
+
+        * src/libANGLE/renderer/metal/FrameBufferMtl.mm:
+        (rx::FramebufferMtl::setLoadStoreActionOnRenderPassFirstStart):
+
 2022-03-12  Tim Horton  <[email protected]>
 
         Adopt FALLBACK_PLATFORM_NAME in place of FALLBACK_PLATFORM

Modified: trunk/Source/ThirdParty/ANGLE/src/libANGLE/renderer/metal/FrameBufferMtl.mm (291217 => 291218)


--- trunk/Source/ThirdParty/ANGLE/src/libANGLE/renderer/metal/FrameBufferMtl.mm	2022-03-13 14:34:17 UTC (rev 291217)
+++ trunk/Source/ThirdParty/ANGLE/src/libANGLE/renderer/metal/FrameBufferMtl.mm	2022-03-14 08:42:04 UTC (rev 291218)
@@ -821,17 +821,7 @@
 
     if (attachment.hasImplicitMSTexture())
     {
-        if (mBackbuffer)
-        {
-            // Default action for default framebuffer is resolve and keep MS texture's content.
-            // We only discard MS texture's content at the end of the frame. See onFrameEnd().
-            attachment.storeAction = MTLStoreActionStoreAndMultisampleResolve;
-        }
-        else
-        {
-            // Default action is resolve but don't keep MS texture's content.
-            attachment.storeAction = MTLStoreActionMultisampleResolve;
-        }
+        attachment.storeAction = MTLStoreActionStoreAndMultisampleResolve;
     }
     else
     {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to