[Webkit-unassigned] [Bug 229180] New: [WebGL2] ETC1 texture is unable to upload using texStorage2D & compressTexSubImage2D

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 16 23:59:16 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=229180

            Bug ID: 229180
           Summary: [WebGL2] ETC1 texture is unable to upload using
                    texStorage2D & compressTexSubImage2D
           Product: WebKit
           Version: Safari 14
          Hardware: iPhone / iPad
                OS: iOS 14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: ANGLE
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: andrew.shaitorov at gmail.com
                CC: dino at apple.com, kbr at google.com, kkinnunen at apple.com

Hi!

We were trying to optimize texture upload for our HTML5 game and have discovered a bug on WebGL2:

This works for ETC1 textures:
gl.compressedTexImage2D(gl.TEXTURE_2D, 0, ext.COMPRESSED_RGB_ETC1_WEBGL, width, height, 0, data);

This doesn't (but works fine for DXT or PVRTC textures where these formats are available):
gl.texStorage2D(gl.TEXTURE_2D, 1, ext.COMPRESSED_RGB_ETC1_WEBGL, width, height);
gl.compressedTexSubImage2D(gl.TEXTURE_2D, 0, 0, 0, width, height, ext.COMPRESSED_RGB_ETC1_WEBGL, data);

Reproduces on Android devices in Chrome and iOS 14 (enabled WebGL2 in Safari Settings menu).

Original WebGL1 texture tester with compressedTexImage2D (you can find ETC1 textures at the bottom of the page):
https://toji.github.io/texture-tester/

Our WebGL2 modified version of the tester with texStorage2D & compressedTexSubImage2D:
https://texstorage.fra1.digitaloceanspaces.com/index.html

-- 
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/20210817/a69630ad/attachment.htm>


More information about the webkit-unassigned mailing list