[Webkit-unassigned] [Bug 231354] ANGLE Metal RGB textures are slow to initialise compared to RGBA textures when uploading video contents
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 12 07:44:09 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=231354
--- Comment #2 from Geoff Lang <geofflang at google.com> ---
There are a couple options we've done on different backends:
- Clear with a GPU clear when possible
- Use swizzled samplers to always sample 1.0 from the alpha channel of these textures. I think it's still recommended to clear first even with this, there are many paths that need to be aware of this emulated alpha (ReadPixels, CopyTexImage, Blit)
- If this is a glTexImage2D call with non-null data, you can add a new data upload function that writes the 1.0 alpha.
Otherwise, just try to avoid re-initializing textures too frequently. Caching the allocated textures would avoid this issue.
--
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/20211012/96075a58/attachment-0001.htm>
More information about the webkit-unassigned
mailing list