Avoid infinite recursion when command buffer creation fails
Created attachment 435308 [details] Patch
Note that there are important steps to take when updating ANGLE. See https://trac.webkit.org/wiki/UpdatingANGLE
Created attachment 435309 [details] Patch
Comment on attachment 435309 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=435309&action=review Looks good; r+. Minor comment about the ChangeLog. If there are any cases where this was found in the wild, I'd appreciate it if you could mention them on https://bugs.webkit.org/show_bug.cgi?id=228978 . > Source/ThirdParty/ANGLE/ChangeLog:9 > + In cases where the MTLCommandBuffer is not a valid metal object, we can end up in an infinite recursive loop during context steup. Refactor setupDraw to take no more than two attempts through the setup function. Could you reflow to 80 columns? This makes it easier to read the ChangeLogs and commit messages later. Also: steup -> setup.
We've had a few reports in from the wild, but no luck with a repro case. The best I've got is that we ended up in a state where the metal device was available, but we failed to create a command queue for another process as well.
Created attachment 435368 [details] Patch for landing
Committed r280926 (240444@main): <https://commits.webkit.org/240444@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 435368 [details].
<rdar://problem/81809463>