Bug 196474

Summary: [Web GPU] Implement blend states and color write mask for GPUColorStateDescriptor
Product: WebKit Reporter: Justin Fan <justin_fan>
Component: New BugsAssignee: Justin Fan <justin_fan>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, mmaxfield, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Justin Fan 2019-04-01 17:19:54 PDT
[Web GPU] Implement blend states and color write mask for  GPUColorStateDescriptor
Comment 1 Justin Fan 2019-04-01 17:34:14 PDT
Created attachment 366450 [details]
Patch
Comment 2 Justin Fan 2019-04-01 20:07:56 PDT
Created attachment 366462 [details]
Patch
Comment 3 Myles C. Maxfield 2019-04-02 12:40:18 PDT
Comment on attachment 366462 [details]
Patch

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

> Source/WebCore/platform/graphics/gpu/cocoa/GPURenderPipelineMetal.mm:450
> +        [descriptor setBlendingEnabled:YES];

Can we get some extra perf here by turning this off in some circumstances?
Comment 4 Myles C. Maxfield 2019-04-02 12:41:11 PDT
Comment on attachment 366462 [details]
Patch

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

>> Source/WebCore/platform/graphics/gpu/cocoa/GPURenderPipelineMetal.mm:450
>> +        [descriptor setBlendingEnabled:YES];
> 
> Can we get some extra perf here by turning this off in some circumstances?

There might be some side-effects by turning this off (maybe no depth testing?) so perhaps we should just file a follow-up bug to do an investigation.
Comment 5 WebKit Commit Bot 2019-04-02 13:00:01 PDT
Comment on attachment 366462 [details]
Patch

Clearing flags on attachment: 366462

Committed r243755: <https://trac.webkit.org/changeset/243755>
Comment 6 WebKit Commit Bot 2019-04-02 13:00:02 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 Radar WebKit Bug Importer 2019-04-02 13:48:26 PDT
<rdar://problem/49532669>