[Webkit-unassigned] [Bug 234926] Dynamic indexing into a fixed-size uniform array with GLSL makes the Safari tab hang

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 7 23:21:01 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=234926

--- Comment #10 from Kevin Rogovin <kevinrogovin at invisionapp.com> ---
(In reply to Kevin Rogovin from comment #9)
> I have the same issue on both an M1 and AMD GPU on MacOS in a complicated
> application when WebGL2 is configured to be translated to Metal. I
> work-around the issue by using usampler2D(then the application works, but
> less efficiently than it would with a uniform buffer object). In my
> application the UBO's in question are of the form:
> 
> ```
> uniform UBO
> {
>   uvec4 data[N];
> };
> ```
> 
> and access is dynamic on the index into `data`. 
> 
> As a side note, Safari from around a year ago did work with this code (but I
> think I needed to configure it to use the GL backend, but the GL backend is
> even more broken because even with the work around the tab crashes).

One more thing, which I forgot to mention, the value of N is made so that the size of the UBO does not exceed GL_MAX_UNIFORM_BLOCK_SIZE

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220408/2ee075c6/attachment.htm>


More information about the webkit-unassigned mailing list