Fixes a couple of issues found when using Google Earth, specifically zooming in towards Earth. 1. Stencil only states previously only worked if combined as depth stencil, stencil only formats such as GL_STENCIL_INDEX8 were being incorrectly set as the Metal depth attachment. 2. WebGL contexts issuing many draws and updating a lot of uniforms would have the command encoder be invalidated before they were finished rendering. Previously the command encoder was restarted from an empty state, this change fixes that such that the command buffer and encoder is completely invalidated and the next draw call will set up where the previous command encoder finished. 3. 'Angle_out' transformation was being applied to the result of Angle_swizzle_ref, which may cause issues due to the different address space. I'm not exactly sure what's intended here, but the change looks reasonable and fixes Google Earth. Let the tests run and make sure this doesn't regress something else.
Created attachment 425149 [details] Patch
Note that there are important steps to take when updating ANGLE. See https://trac.webkit.org/wiki/UpdatingANGLE
rdar://76157243
commit-queue failed to commit attachment 425149 [details] to WebKit repository. To retry, please set cq+ flag again.
Comment on attachment 425149 [details] Patch Reflagging for CQ. The CQ error seems bogus.
Committed r275476: <https://commits.webkit.org/r275476> All reviewed patches have been landed. Closing bug and clearing flags on attachment 425149 [details].