-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WebGPU] CTS test validation/buffer/mapping.html is failing
https://bugs.webkit.org/show_bug.cgi?id=266497 <radar://119731119> Reviewed by Tadeu Zagallo. Add correct validation for Buffer mapping. With this change, all GPUBuffer CTS tests are passing. * LayoutTests/http/tests/webgpu/webgpu/api/validation/buffer/mapping-expected.txt: * Source/WebCore/Modules/WebGPU/GPUBuffer.cpp: (WebCore::GPUBuffer::GPUBuffer): (WebCore::GPUBuffer::mapAsync): (WebCore::containsRange): (WebCore::GPUBuffer::getMappedRange): (WebCore::GPUBuffer::internalUnmap): (WebCore::GPUBuffer::destroy): * Source/WebCore/Modules/WebGPU/GPUBuffer.h: * Source/WebGPU/WebGPU/Buffer.h: * Source/WebGPU/WebGPU/Buffer.mm: (WebGPU::Buffer::errorValidatingMapAsync const): (WebGPU::Buffer::mapAsync): (WebGPU::Buffer::validateUnmap const): (WebGPU::Buffer::unmap): (WebGPU::Buffer::validateMapAsync const): Deleted. * Source/WebKit/GPUProcess/graphics/WebGPU/RemoteBuffer.cpp: (WebKit::RemoteBuffer::mapAsync): (WebKit::RemoteBuffer::unmap): * Source/WebKit/WebProcess/GPU/graphics/WebGPU/RemoteBufferProxy.cpp: (WebKit::WebGPU::RemoteBufferProxy::unmap): Canonical link: https://commits.webkit.org/272526@main
- Loading branch information
1 parent
d47bd56
commit e0e9721
Showing
7 changed files
with
157 additions
and
57 deletions.
There are no files selected for viewing
38 changes: 37 additions & 1 deletion
38
LayoutTests/http/tests/webgpu/webgpu/api/validation/buffer/mapping-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,37 @@ | ||
(Populate me when we're ready to investigate this test) | ||
|
||
PASS :mapAsync,usage: | ||
PASS :mapAsync,invalidBuffer: | ||
PASS :mapAsync,state,destroyed: | ||
PASS :mapAsync,state,mappedAtCreation: | ||
PASS :mapAsync,state,mapped: | ||
PASS :mapAsync,state,mappingPending: | ||
PASS :mapAsync,sizeUnspecifiedOOB: | ||
PASS :mapAsync,offsetAndSizeAlignment: | ||
PASS :mapAsync,offsetAndSizeOOB: | ||
PASS :mapAsync,earlyRejection: | ||
PASS :mapAsync,abort_over_invalid_error: | ||
PASS :getMappedRange,state,mapped: | ||
PASS :getMappedRange,state,mappedAtCreation: | ||
PASS :getMappedRange,state,invalid_mappedAtCreation: | ||
PASS :getMappedRange,state,mappedAgain: | ||
PASS :getMappedRange,state,unmapped: | ||
PASS :getMappedRange,state,destroyed: | ||
PASS :getMappedRange,state,mappingPending: | ||
PASS :getMappedRange,subrange,mapped:mapMode=1 | ||
PASS :getMappedRange,subrange,mapped:mapMode=2 | ||
PASS :getMappedRange,subrange,mappedAtCreation: | ||
PASS :getMappedRange,offsetAndSizeAlignment,mapped:mapMode=1 | ||
PASS :getMappedRange,offsetAndSizeAlignment,mapped:mapMode=2 | ||
PASS :getMappedRange,offsetAndSizeAlignment,mappedAtCreation: | ||
PASS :getMappedRange,sizeAndOffsetOOB,mappedAtCreation: | ||
PASS :getMappedRange,sizeAndOffsetOOB,mapped: | ||
PASS :getMappedRange,disjointRanges: | ||
PASS :getMappedRange,disjoinRanges_many: | ||
PASS :unmap,state,unmapped: | ||
PASS :unmap,state,destroyed: | ||
PASS :unmap,state,mappedAtCreation: | ||
PASS :unmap,state,mapped: | ||
PASS :unmap,state,mappingPending: | ||
PASS :gc_behavior,mappedAtCreation: | ||
PASS :gc_behavior,mapAsync: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters