Bug 233396

Summary: [WebGPU] Send WebGPU messages in the web process
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: New BugsAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
ews-feeder: commit-queue-
Patch
dino: review+, ews-feeder: commit-queue-
Patch for committing none

Myles C. Maxfield
Reported 2021-11-20 04:00:34 PST
[WebGPU] Send WebGPU messages in the web process
Attachments
Patch (272.06 KB, patch)
2021-11-20 04:04 PST, Myles C. Maxfield
no flags
Patch (273.33 KB, patch)
2021-11-20 13:10 PST, Myles C. Maxfield
ews-feeder: commit-queue-
Patch (273.18 KB, patch)
2021-11-20 13:14 PST, Myles C. Maxfield
dino: review+
ews-feeder: commit-queue-
Patch for committing (273.13 KB, patch)
2021-11-20 13:56 PST, Myles C. Maxfield
no flags
Myles C. Maxfield
Comment 1 2021-11-20 04:04:01 PST
Myles C. Maxfield
Comment 2 2021-11-20 13:10:47 PST
Myles C. Maxfield
Comment 3 2021-11-20 13:14:33 PST
Dean Jackson
Comment 4 2021-11-20 13:19:14 PST
Comment on attachment 444905 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=444905&action=review > Source/WebKit/Shared/WebGPU/WebGPUBindGroupEntry.cpp:44 > + /* > + PAL::WebGPU::Index32 binding; > + BufferBinding bufferBinding; > + WebGPUIdentifier identifier; > + BindingResourceType type; > + */ Did you mean to leave this here?
Dean Jackson
Comment 5 2021-11-20 13:41:56 PST
Comment on attachment 444906 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=444906&action=review > Source/WebKit/Shared/WebGPU/WebGPURenderPassDescriptor.cpp:58 > + auto depthStencilAttachment = ([&] () -> std::optional<RenderPassDepthStencilAttachment> { > + if (renderPassDescriptor.depthStencilAttachment) > + return convertToBacking(*renderPassDescriptor.depthStencilAttachment); > + return std::nullopt; > + })(); > + if (renderPassDescriptor.depthStencilAttachment && !depthStencilAttachment) > + return std::nullopt; Isn't it less lines to simply do: std::optional<RenderPassDepthStencilAttachment> depthStencilAttachment; if (renderPassDescriptor.depthStencilAttachment) { depthStencilAttachment = convertToBacking(*renderPassDescriptor.depthStencilAttachment); if (!depthStencilAttachment) return std::nullopt; } > Source/WebKit/Shared/WebGPU/WebGPURenderPipelineDescriptor.cpp:74 > + auto fragment = ([&] () -> std::optional<FragmentState> { > + if (renderPipelineDescriptor.fragment) > + return convertToBacking(*renderPipelineDescriptor.fragment); > + return std::nullopt; > + })(); > + if (renderPipelineDescriptor.fragment && !fragment) > + return std::nullopt; Another one here.
Myles C. Maxfield
Comment 6 2021-11-20 13:45:31 PST
Comment on attachment 444906 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=444906&action=review >> Source/WebKit/Shared/WebGPU/WebGPURenderPassDescriptor.cpp:58 >> + return std::nullopt; > > Isn't it less lines to simply do: > > std::optional<RenderPassDepthStencilAttachment> depthStencilAttachment; > if (renderPassDescriptor.depthStencilAttachment) { > depthStencilAttachment = convertToBacking(*renderPassDescriptor.depthStencilAttachment); > if (!depthStencilAttachment) > return std::nullopt; > } yessssss will do.
Myles C. Maxfield
Comment 7 2021-11-20 13:56:59 PST
Created attachment 444907 [details] Patch for committing
EWS
Comment 8 2021-11-20 16:04:02 PST
Committed r286098 (244485@main): <https://commits.webkit.org/244485@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 444907 [details].
Radar WebKit Bug Importer
Comment 9 2021-11-20 16:05:22 PST
Note You need to log in before you can comment on or make changes to this bug.