Bug 189122

Summary: [WHLSL] Enumerate which operations require uniform control flow and dynamically uniform expressions
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: WebGPUAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: jonlee, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=189125
https://bugs.webkit.org/show_bug.cgi?id=189123
Bug Depends on:    
Bug Blocks: 176199, 189202    

Myles C. Maxfield
Reported 2018-08-29 16:35:44 PDT
Indexing into an array of textures requires a dynamically uniform expression sample() involves an implicit derivative, and so requires uniform control flow
Attachments
Radar WebKit Bug Importer
Comment 1 2018-09-12 18:50:46 PDT
Myles C. Maxfield
Comment 2 2018-09-22 23:51:38 PDT
The following functions require uniform control flow: ddx() ddy() AllMemoryBarrierWithGroupSync() DeviceMemoryBarrierWithGroupSync() GroupMemoryBarrierWithGroupSync() Sample() SampleBias() Gather() GatherRed() GatherGreen() GatherBlue() GatherAlpha() SampleCmp() GatherCmp() GatherCmpRed() GatherCmp() GatherCmpRed()
Myles C. Maxfield
Comment 3 2018-09-22 23:52:57 PDT
Indexing into an array which contains textures requires dynamically uniform expressions. I think that's the only operation.
Myles C. Maxfield
Comment 4 2018-09-22 23:54:08 PDT
I suppose this is done now.
Myles C. Maxfield
Comment 5 2018-10-13 14:50:33 PDT
Note You need to log in before you can comment on or make changes to this bug.