Bug 243591 - WebGL Video upload to SRGB8 textures is slow
Summary: WebGL Video upload to SRGB8 textures is slow
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on: 222822
Blocks:
  Show dependency treegraph
 
Reported: 2022-08-05 10:13 PDT by Kimmo Kinnunen
Modified: 2022-08-12 10:14 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kimmo Kinnunen 2022-08-05 10:13:41 PDT
WebGL Video upload to SRGB8 textures is  slow

The GPU codepath uses OpenGL to render the texture. 
SRGB8 is not color-renderable in OpenGL. This should not be a real HW limitation.

ANGLE has more fast paths with glCopyTextureCHROMIUM, but
a) likely it doesn't do source color space conversions(?)
b) it doesn't have x flip
c) it's unclear if it does the SRGB8_ALPHA8 the same way as the current
Comment 1 Radar WebKit Bug Importer 2022-08-12 10:14:17 PDT
<rdar://problem/98575053>