[Webkit-unassigned] [Bug 200872] New: [WHLSL] Consider moving as much work from prepare() into createShaderModule as possible

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 18 15:00:59 PDT 2019


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

            Bug ID: 200872
           Summary: [WHLSL] Consider moving as much work from prepare()
                    into createShaderModule as possible
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGPU
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mmaxfield at apple.com

Presumably, we could put almost all the processing of prepareShared() inside createShaderModule(). This could be an optimization on some content which reuses shader modules among multiple pipelines.

When we try to merge two modules (when creating a render pipeline), we'll have to have a story about duplicate standard library functions. We can do one of the following:

1) Defer standard library processing until this step, and do it once regardless of the number of shader modules are being joined. This means less work is being done up front inside createShaderModule(), which makes the optimization less powerful.
2) Perform standard library processing in createShaderModule(), and make pipeline creation smart enough to de-duplicate standard library functions.
3) Simply allow duplicate standard library functions. This would likely increase Metal's compile times.
4) Keep it the way it is, and have shader modules be a thin wrapper around strings.

-- 
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/20190818/629ba584/attachment.html>


More information about the webkit-unassigned mailing list