RESOLVED FIXED 217198
Support EXT_texture_compression_rgtc WebGL extension
https://bugs.webkit.org/show_bug.cgi?id=217198
Summary Support EXT_texture_compression_rgtc WebGL extension
James Darpinian
Reported 2020-10-01 17:11:03 PDT
Support EXT_texture_compression_rgtc WebGL extension
Attachments
Patch (22.47 KB, patch)
2020-10-01 17:12 PDT, James Darpinian
no flags
Patch (45.66 KB, patch)
2020-10-02 15:43 PDT, James Darpinian
no flags
Patch (85.76 KB, patch)
2020-10-06 15:35 PDT, James Darpinian
no flags
Patch (86.21 KB, patch)
2020-10-07 14:41 PDT, James Darpinian
no flags
Patch (85.85 KB, patch)
2020-10-08 12:02 PDT, James Darpinian
no flags
James Darpinian
Comment 1 2020-10-01 17:12:51 PDT
James Darpinian
Comment 2 2020-10-01 17:15:54 PDT
Will add conformance test tomorrow.
James Darpinian
Comment 3 2020-10-02 15:43:09 PDT
Kenneth Russell
Comment 4 2020-10-02 15:54:11 PDT
Comment on attachment 410383 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=410383&action=review Looks great! One question. r+ > Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:6739 > + const int kBlockHeight = 4; Have you confirmed that these values (from the extension spec) are correct, and that the tests both successfully enable the extension, and pass?
James Darpinian
Comment 5 2020-10-02 16:14:50 PDT
Comment on attachment 410383 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=410383&action=review >> Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp:6739 >> + const int kBlockHeight = 4; > > Have you confirmed that these values (from the extension spec) are correct, and that the tests both successfully enable the extension, and pass? Yes. Although the existing conformance test doesn't appear to load any images or do any rendering. So I guess we don't truly know if any existing implementation actually works. I will try to find some sample images.
James Darpinian
Comment 6 2020-10-06 15:35:20 PDT
James Darpinian
Comment 7 2020-10-06 15:38:39 PDT
Comment on attachment 410704 [details] Patch Added very thorough rendering test based on the existing S3TC test.
EWS
Comment 8 2020-10-06 16:23:15 PDT
Committed r268085: <https://trac.webkit.org/changeset/268085> All reviewed patches have been landed. Closing bug and clearing flags on attachment 410704 [details].
Radar WebKit Bug Importer
Comment 9 2020-10-06 16:24:23 PDT
Aakash Jain
Comment 10 2020-10-07 03:58:22 PDT
(In reply to EWS from comment #8) > Committed r268085: <https://trac.webkit.org/changeset/268085> The newly added test: webgl/conformance/extensions/s3tc-and-rgtc.html seems to be consistently failing on ios-wk2. EWS indicated this failure on previous version of this patch. Should have waited for ios-wk2 EWS to complete before landing. History: https://results.webkit.org/?suite=layout-tests&test=webgl%2Fconformance%2Fextensions%2Fs3tc-and-rgtc.html
WebKit Commit Bot
Comment 11 2020-10-07 03:59:04 PDT
Re-opened since this is blocked by bug 217424
Kenneth Russell
Comment 12 2020-10-07 12:17:53 PDT
From this run: https://build.webkit.org/results/Apple-iOS-14-Simulator-Release-WK2-Tests/r268117%20(171)/results.html https://build.webkit.org/results/Apple-iOS-14-Simulator-Release-WK2-Tests/r268117%20(171)/webgl/conformance/extensions/s3tc-and-rgtc-pretty-diff.html it looks like the bug in the test is that it doesn't handle the case where the extension isn't available: 1CONSOLE MESSAGE: TypeError: undefined is not an object (evaluating 'ext_rgtc.COMPRESSED_RED_RGTC1_EXT')
James Darpinian
Comment 13 2020-10-07 14:41:04 PDT
James Darpinian
Comment 14 2020-10-07 14:45:11 PDT
Sorry for the breakage. The code to check whether the extension was supported was buggy. Will wait for EWS before relanding.
Kenneth Russell
Comment 15 2020-10-07 15:04:32 PDT
Comment on attachment 410784 [details] Patch Looks good assuming the revised test has been tested locally when EXT_texture_compression_rgtc is not supported. r+
James Darpinian
Comment 16 2020-10-08 12:02:20 PDT
EWS
Comment 17 2020-10-08 17:24:46 PDT
Committed r268234: <https://trac.webkit.org/changeset/268234> All reviewed patches have been landed. Closing bug and clearing flags on attachment 410868 [details].
Note You need to log in before you can comment on or make changes to this bug.