WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
192843
[WebGPU] Add stubs for WebGPUPipelineLayout/Descriptor and device::createPipelineLayout
https://bugs.webkit.org/show_bug.cgi?id=192843
Summary
[WebGPU] Add stubs for WebGPUPipelineLayout/Descriptor and device::createPipe...
Justin Fan
Reported
2018-12-18 21:31:15 PST
[WebGPU] WebGPUPipelineLayout/Descriptor and device::createPipelineLayout
Attachments
Patch
(39.81 KB, patch)
2018-12-18 21:40 PST
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Patch
(39.87 KB, patch)
2018-12-18 21:43 PST
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Patch
(40.39 KB, patch)
2018-12-19 11:42 PST
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Patch
(41.66 KB, patch)
2018-12-19 16:18 PST
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Justin Fan
Comment 1
2018-12-18 21:40:40 PST
Created
attachment 357652
[details]
Patch
Justin Fan
Comment 2
2018-12-18 21:41:32 PST
<
rdar://problem/46820395
>
Justin Fan
Comment 3
2018-12-18 21:43:37 PST
Created
attachment 357653
[details]
Patch
Justin Fan
Comment 4
2018-12-19 11:42:07 PST
Created
attachment 357700
[details]
Patch
Myles C. Maxfield
Comment 5
2018-12-19 15:25:59 PST
Comment on
attachment 357700
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=357700&action=review
> Source/WebCore/ChangeLog:3 > + [WebGPU] WebGPUPipelineLayout/Descriptor and device::createPipelineLayout
I think you're missing a verb
> Source/WebCore/Modules/webgpu/WebGPUPipelineLayout.h:44 > + Ref<GPUPipelineLayout> m_pipelineLayout;
👍
> Source/WebCore/platform/graphics/gpu/GPUPipelineLayout.h:44 > + GPUPipelineLayoutDescriptor m_descriptor;
We shouldn't be retaining the Descriptors. The descriptor is just a blueprint, not the actual object itself. The implementation of this should copy the bugs of the GPUBindGroupLayouts into itself. (Or ref() them instead)
> Source/WebCore/platform/graphics/gpu/GPUPipelineLayoutDescriptor.h:37 > + Vector<RefPtr<const GPUBindGroupLayout>> bindGroupLayouts;
How does RefPtr<const Thingy> work? How can ref() and deref() be const?
Myles C. Maxfield
Comment 6
2018-12-19 15:26:56 PST
Comment on
attachment 357700
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=357700&action=review
>> Source/WebCore/platform/graphics/gpu/GPUPipelineLayout.h:44 >> + GPUPipelineLayoutDescriptor m_descriptor; > > We shouldn't be retaining the Descriptors. The descriptor is just a blueprint, not the actual object itself. > > The implementation of this should copy the bugs of the GPUBindGroupLayouts into itself. (Or ref() them instead)
s/bugs/guts/
Myles C. Maxfield
Comment 7
2018-12-19 15:53:21 PST
Comment on
attachment 357700
[details]
Patch r- for retaining descriptors
Justin Fan
Comment 8
2018-12-19 16:18:55 PST
Created
attachment 357747
[details]
Patch
WebKit Commit Bot
Comment 9
2018-12-19 16:59:21 PST
Comment on
attachment 357747
[details]
Patch Clearing flags on attachment: 357747 Committed
r239410
: <
https://trac.webkit.org/changeset/239410
>
WebKit Commit Bot
Comment 10
2018-12-19 16:59:23 PST
All reviewed patches have been landed. Closing bug.
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