Bug 240896

Summary: [Angle] Uniform buffer reuse causes flush, creates invalid state
Product: WebKit Reporter: Kyle Piddington <kpiddington>
Component: New BugsAssignee: Kyle Piddington <kpiddington>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, ews-watchlist, gman, kbr, kkinnunen, kondapallykalyan, mmaxfield, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 240948, 241894    
Attachments:
Description Flags
Patch
none
For landing ews-feeder: commit-queue-

Description Kyle Piddington 2022-05-24 18:44:53 PDT
[Angle] Uniform buffer reuse causes flush, creates invalid state
Comment 1 Kyle Piddington 2022-05-24 18:46:27 PDT
Created attachment 459740 [details]
Patch
Comment 2 EWS Watchlist 2022-05-24 18:48:27 PDT
Note that there are important steps to take when updating ANGLE. See https://trac.webkit.org/wiki/UpdatingANGLE
Comment 3 Kimmo Kinnunen 2022-05-25 03:06:32 PDT
Comment on attachment 459740 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=459740&action=review

> Source/ThirdParty/ANGLE/src/libANGLE/renderer/metal/ContextMtl.mm:2224
>  {

this would need some context in the commit message.
If you've not updated your checkout, maybe you need to do pull.
The commit messages come now from the commit message instead of ChangeLog files.
Comment 4 Kimmo Kinnunen 2022-05-25 03:07:09 PDT
Do we have any idea in which specific case this happens? In other words, can we write a test for it?
Comment 5 Myles C. Maxfield 2022-05-25 15:40:49 PDT
Comment on attachment 459740 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=459740&action=review

> Source/ThirdParty/ANGLE/src/libANGLE/renderer/metal/ContextMtl.mm:2232
> +    ASSERT(mRenderEncoder.valid());

Is this really right? ASSERT()s are supposed to only be for things that are provably true.
Comment 6 Kimmo Kinnunen 2022-05-26 04:15:11 PDT
Created attachment 459782 [details]
For landing
Comment 7 Kimmo Kinnunen 2022-05-26 04:19:18 PDT
At the time, happened on earth.google.com.
Most likely started happening once we increased the max uniforms?
Could be tested in WebGL test suite, bug 240948.
Comment 8 EWS 2022-05-26 07:00:43 PDT
Committed r294877 (251007@main): <https://commits.webkit.org/251007@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 459782 [details].
Comment 9 Radar WebKit Bug Importer 2022-05-26 07:01:14 PDT
<rdar://problem/93967506>