WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 233396
[WebGPU] Send WebGPU messages in the web process
https://bugs.webkit.org/show_bug.cgi?id=233396
Summary
[WebGPU] Send WebGPU messages in the web process
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
Details
Formatted Diff
Diff
Patch
(273.33 KB, patch)
2021-11-20 13:10 PST
,
Myles C. Maxfield
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(273.18 KB, patch)
2021-11-20 13:14 PST
,
Myles C. Maxfield
dino
: review+
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch for committing
(273.13 KB, patch)
2021-11-20 13:56 PST
,
Myles C. Maxfield
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Myles C. Maxfield
Comment 1
2021-11-20 04:04:01 PST
Created
attachment 444894
[details]
Patch
Myles C. Maxfield
Comment 2
2021-11-20 13:10:47 PST
Created
attachment 444905
[details]
Patch
Myles C. Maxfield
Comment 3
2021-11-20 13:14:33 PST
Created
attachment 444906
[details]
Patch
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
<
rdar://problem/85638093
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug