[Webkit-unassigned] [Bug 261870] REGRESSION(267646 at main): [TextureMapper][WPE] 2.42 doesn't render anything on the rpi3 with the proprietary drivers
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Dec 10 03:52:35 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=261870
--- Comment #6 from Miguel Gomez <magomez at igalia.com> ---
It seems this is not a problem on rpi3, but a problem wiht GLES2.
>From the specs in https://registry.khronos.org/OpenGL/specs/es/2.0/GLSL_ES_Specification_1.00.pdf :
In general, control flow is limited to forward branching and to loops where the maximum number of iterations can easily be determined at compile time.
[…]
for loops are supported but with the following restrictions:
[…]
The for statement has the form:
for ( init-declaration ; condition ; expression ) statement
[…]
condition has the form
loop_index relational_operator constant_expression
where relational_operator is one of: > >= < <= == or !=
When working on the desktop, eglCreate context is probably returning a GLES3 context even when we request a GLES2 one (the specs state that it may return a backwards compatible version). When this happens, the error doesn't trigger because GLES3 doesn't have the loop limitation.
But the rpi3 supports GLES2 only and that's why the problem reproduces there. Fujii, the condition you're looking for in your patch is something like GLContext::current()->version() <= 200, which means that were using GLES2. But this needs to checked at runtime and not during compilation, so a change in the approach is required.
--
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/20231210/18734403/attachment.htm>
More information about the webkit-unassigned
mailing list