Bug 240896 - [Angle] Uniform buffer reuse causes flush, creates invalid state
Summary: [Angle] Uniform buffer reuse causes flush, creates invalid state
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kyle Piddington
URL:
Keywords: InRadar
Depends on:
Blocks: 240948 241894
  Show dependency treegraph
 
Reported: 2022-05-24 18:44 PDT by Kyle Piddington
Modified: 2022-06-22 17:35 PDT (History)
8 users (show)

See Also:


Attachments
Patch (1.91 KB, patch)
2022-05-24 18:46 PDT, Kyle Piddington
no flags Details | Formatted Diff | Diff
For landing (3.05 KB, patch)
2022-05-26 04:15 PDT, Kimmo Kinnunen
ews-feeder: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>