WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
195427
[Web GPU] GPUSampler implementation
https://bugs.webkit.org/show_bug.cgi?id=195427
Summary
[Web GPU] GPUSampler implementation
Justin Fan
Reported
2019-03-07 12:17:16 PST
[Web GPU] GPUSampler implementation
Attachments
Patch
(65.76 KB, patch)
2019-03-07 12:47 PST
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Patch
(65.83 KB, patch)
2019-03-07 12:56 PST
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Patch
(67.07 KB, patch)
2019-03-07 13:15 PST
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Patch for landing
(67.63 KB, patch)
2019-03-07 14:30 PST
,
Justin Fan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-03-07 12:38:40 PST
<
rdar://problem/48686011
>
Justin Fan
Comment 2
2019-03-07 12:47:09 PST
Created
attachment 363910
[details]
Patch
EWS Watchlist
Comment 3
2019-03-07 12:50:31 PST
Attachment 363910
[details]
did not pass style-queue: ERROR: Source/WebCore/platform/graphics/gpu/GPUProgrammablePassEncoder.h:64: The parameter name "const" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/platform/graphics/gpu/GPUProgrammablePassEncoder.h:65: The parameter name "const" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/platform/graphics/gpu/GPUProgrammablePassEncoder.h:66: The parameter name "const" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 3 in 34 files If any of these errors are false positives, please file a bug against check-webkit-style.
Justin Fan
Comment 4
2019-03-07 12:56:36 PST
Created
attachment 363913
[details]
Patch
EWS Watchlist
Comment 5
2019-03-07 13:00:06 PST
Attachment 363913
[details]
did not pass style-queue: ERROR: Source/WebCore/platform/graphics/gpu/GPUProgrammablePassEncoder.h:64: The parameter name "const" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/platform/graphics/gpu/GPUProgrammablePassEncoder.h:65: The parameter name "const" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/platform/graphics/gpu/GPUProgrammablePassEncoder.h:66: The parameter name "const" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 3 in 34 files If any of these errors are false positives, please file a bug against check-webkit-style.
Justin Fan
Comment 6
2019-03-07 13:15:05 PST
Created
attachment 363916
[details]
Patch
EWS Watchlist
Comment 7
2019-03-07 13:18:23 PST
Attachment 363916
[details]
did not pass style-queue: ERROR: Source/WebCore/platform/graphics/gpu/GPUProgrammablePassEncoder.h:64: The parameter name "const" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/platform/graphics/gpu/GPUProgrammablePassEncoder.h:65: The parameter name "const" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/platform/graphics/gpu/GPUProgrammablePassEncoder.h:66: The parameter name "const" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 3 in 35 files If any of these errors are false positives, please file a bug against check-webkit-style.
Dean Jackson
Comment 8
2019-03-07 13:57:04 PST
Comment on
attachment 363916
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=363916&action=review
> Source/WebCore/platform/graphics/gpu/GPUSamplerDescriptor.h:63 > + AddressMode addressModeU = AddressMode::ClampToEdge; > + AddressMode addressModeV = AddressMode::ClampToEdge; > + AddressMode addressModeW = AddressMode::ClampToEdge; > + FilterMode magFilter = FilterMode::Nearest; > + FilterMode minFilter = FilterMode::Nearest; > + FilterMode mipmapFilter = FilterMode::Nearest; > + float lodMinClamp = 0; > + float lodMaxClamp = 0xffffffff; > + unsigned maxAnisotropy = 1; > + GPUCompareFunction compareFunction = GPUCompareFunction::Never; > + BorderColor borderColor = BorderColor::TransparentBlack;
Is there any difference between this syntax and using AddressMode addressModeU { AddressMode::ClampToEdge }; ?
Justin Fan
Comment 9
2019-03-07 14:21:23 PST
(In reply to Dean Jackson from
comment #8
)
> Comment on
attachment 363916
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=363916&action=review
> > > Source/WebCore/platform/graphics/gpu/GPUSamplerDescriptor.h:63 > > + AddressMode addressModeU = AddressMode::ClampToEdge; > > + AddressMode addressModeV = AddressMode::ClampToEdge; > > + AddressMode addressModeW = AddressMode::ClampToEdge; > > + FilterMode magFilter = FilterMode::Nearest; > > + FilterMode minFilter = FilterMode::Nearest; > > + FilterMode mipmapFilter = FilterMode::Nearest; > > + float lodMinClamp = 0; > > + float lodMaxClamp = 0xffffffff; > > + unsigned maxAnisotropy = 1; > > + GPUCompareFunction compareFunction = GPUCompareFunction::Never; > > + BorderColor borderColor = BorderColor::TransparentBlack; > > Is there any difference between this syntax and using AddressMode > addressModeU { AddressMode::ClampToEdge }; ?
In this case there is no difference. I guess in the case of default initialization, brace initialization is a little less error-prone, but it's a style choice.
Justin Fan
Comment 10
2019-03-07 14:30:09 PST
Created
attachment 363928
[details]
Patch for landing
WebKit Commit Bot
Comment 11
2019-03-07 15:03:08 PST
The commit-queue encountered the following flaky tests while processing
attachment 363928
[details]
: loader/load-defer-resume-crash.html
bug 195438
(authors:
max.hong.shen@gmail.com
and
rniwa@webkit.org
) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 12
2019-03-07 15:03:59 PST
Comment on
attachment 363928
[details]
Patch for landing Clearing flags on attachment: 363928 Committed
r242615
: <
https://trac.webkit.org/changeset/242615
>
WebKit Commit Bot
Comment 13
2019-03-07 15:04:01 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