[webkit-changes] [WebKit/WebKit] b34b56: EXT_norm16_texture fails with texSubImage and sign...

Kimmo Kinnunen noreply at github.com
Fri Feb 10 09:58:44 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b34b56522035449a6458e6b1750b580c4a9d5794
      https://github.com/WebKit/WebKit/commit/b34b56522035449a6458e6b1750b580c4a9d5794
  Author: Kimmo Kinnunen <kkinnunen at apple.com>
  Date:   2023-02-10 (Fri, 10 Feb 2023)

  Changed paths:
    A LayoutTests/platform/glib/webgl/webgl-ext-norm16-texture-texsubimage-nocrash-expected.txt
    A LayoutTests/platform/mac-bigsur-wk2/webgl/webgl-ext-norm16-texture-texsubimage-nocrash-expected.txt
    A LayoutTests/webgl/webgl-ext-norm16-texture-texsubimage-nocrash-expected.txt
    A LayoutTests/webgl/webgl-ext-norm16-texture-texsubimage-nocrash.html
    M Source/ThirdParty/ANGLE/src/libANGLE/ErrorStrings.h
    M Source/ThirdParty/ANGLE/src/libANGLE/formatutils.cpp
    M Source/ThirdParty/ANGLE/src/libANGLE/validationES.cpp

  Log Message:
  -----------
  EXT_norm16_texture fails with texSubImage and signed types
https://bugs.webkit.org/show_bug.cgi?id=252039
rdar://104340031

Reviewed by Dean Jackson.

The supported texture format tables would have entries for
a signed or unsigned internal format and matching type.

The texSubImage variants do not communicate the sized internal format,
rather unsized format type. Data parameters are validated based on
format, not internal format. For these, the signed variants were
missing.

Add texture format table entries for signed types that match the format
parameters.

Add a precautionary validation case so that future such bugs would not
pass the control flow forward, into the copying phase.

* LayoutTests/webgl/webgl-ext-norm16-texture-texsubimage3d-nocrash.html: Added.
* Source/ThirdParty/ANGLE/src/libANGLE/ErrorStrings.h:
* Source/ThirdParty/ANGLE/src/libANGLE/formatutils.cpp:
(gl::BuildInternalFormatInfoMap):
* Source/ThirdParty/ANGLE/src/libANGLE/validationES.cpp:
(gl::ValidImageDataSize):

Canonical link: https://commits.webkit.org/260114@main




More information about the webkit-changes mailing list