Bug 244252

Summary: Hide more ANGLE internal formats from WebGL
Product: WebKit Reporter: Alexey Knyazev <lexa.knyazev>
Component: WebGLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, kbr, kkinnunen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 223352    
Bug Blocks:    

Description Alexey Knyazev 2022-08-23 07:25:22 PDT
Some internal texture formats are either implicitly supported by ANGLE or explicitly enabled by WebKit even if they are not exposed to WebGL apps. Since ANGLE does not know whether a particular API call is done by WebKit itself or by a WebGL application, it cannot reject those extra formats.

Affected entry points and internal formats:
  texImage
    GL_DEPTH_COMPONENT32_OES
    GL_RGBX8_ANGLE
  texStorage
    GL_BGRA4_ANGLEX
    GL_BGR5_A1_ANGLEX
    GL_DEPTH_COMPONENT32_OES
    GL_BGRA8_EXT
    GL_RGBX8_ANGLE
  copyTexImage2D
    GL_BGRA_EXT
    GL_BGRA8_EXT
    GL_RGBX8_ANGLE
Comment 1 EWS 2022-08-24 00:56:22 PDT
Committed 253718@main (8bd3169fe62b): <https://commits.webkit.org/253718@main>

Reviewed commits have been landed. Closing PR #3579 and removing active labels.
Comment 2 Radar WebKit Bug Importer 2022-08-24 00:57:17 PDT
<rdar://problem/99072542>