Bug 219266

Summary: Support KHR_parallel_shader_compile
Product: WebKit Reporter: James Darpinian <jdarpinian>
Component: WebGLAssignee: James Darpinian <jdarpinian>
Status: RESOLVED FIXED    
Severity: Normal CC: annulen, cdumez, changseok, dino, esprehn+autocc, ews-watchlist, graouts, gyuyoung.kim, kbr, kkinnunen, kondapallykalyan, ryuan.choi, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Description James Darpinian 2020-11-23 17:08:20 PST
Support KHR_parallel_shader_compile
Comment 1 James Darpinian 2020-11-23 17:09:23 PST
Created attachment 414816 [details]
Patch
Comment 2 Kimmo Kinnunen 2020-11-23 22:39:07 PST
Comment on attachment 414816 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=414816&action=review

Looks good to me

> Source/WebCore/html/canvas/KHRParallelShaderCompile.h:36
> +    virtual ~KHRParallelShaderCompile();

Nit: maybe the virtual here could be removed and override/final added?
Comment 3 Kenneth Russell 2020-11-24 13:16:34 PST
Comment on attachment 414816 [details]
Patch

Looks good to me modulo Kimmo's feedback. r+
Comment 4 James Darpinian 2020-11-24 15:53:53 PST
Created attachment 414855 [details]
Patch
Comment 5 Kenneth Russell 2020-11-24 16:00:52 PST
Comment on attachment 414855 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=414855&action=review

Good to see the conformance test and associated fixes. One minor comment about Kimmo's previous review. r+

> Source/WebCore/html/canvas/KHRParallelShaderCompile.h:36
> +    virtual ~KHRParallelShaderCompile();

Kimmo had a comment about marking this final in the last patch set.
Comment 6 James Darpinian 2020-11-24 16:01:46 PST
Created attachment 414856 [details]
Patch
Comment 7 James Darpinian 2020-11-24 16:02:58 PST
Comment on attachment 414816 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=414816&action=review

Thanks, I updated the patch with a test and a behavior change for the context loss case. The test and spec clarification are also upstream here: https://github.com/KhronosGroup/WebGL/pull/3188

>> Source/WebCore/html/canvas/KHRParallelShaderCompile.h:36
>> +    virtual ~KHRParallelShaderCompile();
> 
> Nit: maybe the virtual here could be removed and override/final added?

Done.
Comment 8 James Darpinian 2020-11-24 16:07:38 PST
Created attachment 414857 [details]
Patch
Comment 9 EWS 2020-11-30 10:24:02 PST
Tools/Scripts/svn-apply failed to apply attachment 414857 [details] to trunk.
Please resolve the conflicts and upload a new patch.
Comment 10 James Darpinian 2020-11-30 11:10:26 PST
Created attachment 415036 [details]
Patch
Comment 11 EWS 2020-11-30 12:30:01 PST
Committed r270257: <https://trac.webkit.org/changeset/270257>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 415036 [details].
Comment 12 Radar WebKit Bug Importer 2020-11-30 12:31:16 PST
<rdar://problem/71817989>