[webkit-changes] [WebKit/WebKit] c22ca9: [WebGPU] CTS api, validation, texture, destroy test i...
mwyrzykowski
noreply at github.com
Sat Jan 6 00:17:37 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c22ca98693565713efde37e8311190dd00e165ef
https://github.com/WebKit/WebKit/commit/c22ca98693565713efde37e8311190dd00e165ef
Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
Date: 2024-01-06 (Sat, 06 Jan 2024)
Changed paths:
M LayoutTests/http/tests/webgpu/webgpu/api/validation/texture/destroy-expected.txt
M Source/WebGPU/WebGPU/CommandBuffer.h
M Source/WebGPU/WebGPU/CommandEncoder.h
M Source/WebGPU/WebGPU/CommandEncoder.mm
M Source/WebGPU/WebGPU/ComputePassEncoder.h
M Source/WebGPU/WebGPU/ComputePassEncoder.mm
M Source/WebGPU/WebGPU/RenderPassEncoder.h
M Source/WebGPU/WebGPU/RenderPassEncoder.mm
M Source/WebGPU/WebGPU/Texture.h
M Source/WebGPU/WebGPU/Texture.mm
M Source/WebGPU/WebGPU/TextureView.h
M Source/WebGPU/WebGPU/TextureView.mm
Log Message:
-----------
[WebGPU] CTS api,validation,texture,destroy test is failing
https://bugs.webkit.org/show_bug.cgi?id=266593
<radar://119829762>
Reviewed by Tadeu Zagallo.
The spec requires us to fail command buffer submission if a texture
is destroyed before the command buffer is submitted to the queue.
With this change, all validation/texture/* CTS tests pass.
* LayoutTests/http/tests/webgpu/webgpu/api/validation/texture/destroy-expected.txt:
* Source/WebGPU/WebGPU/CommandBuffer.h:
* Source/WebGPU/WebGPU/CommandEncoder.h:
(WebGPU::CommandEncoder::makeInvalid): Deleted.
* Source/WebGPU/WebGPU/CommandEncoder.mm:
(WebGPU::CommandEncoder::beginComputePass):
(WebGPU::CommandEncoder::beginRenderPass):
(WebGPU::CommandEncoder::makeInvalid):
(WebGPU::CommandEncoder::finish):
* Source/WebGPU/WebGPU/ComputePassEncoder.h:
(WebGPU::ComputePassEncoder::createInvalid):
* Source/WebGPU/WebGPU/ComputePassEncoder.mm:
(WebGPU::ComputePassEncoder::ComputePassEncoder):
(WebGPU::ComputePassEncoder::endPass):
* Source/WebGPU/WebGPU/RenderPassEncoder.h:
(WebGPU::RenderPassEncoder::createInvalid):
* Source/WebGPU/WebGPU/RenderPassEncoder.mm:
(WebGPU::RenderPassEncoder::RenderPassEncoder):
(WebGPU::RenderPassEncoder::endPass):
* Source/WebGPU/WebGPU/Texture.h:
* Source/WebGPU/WebGPU/Texture.mm:
(WebGPU::Texture::createView):
(WebGPU::Texture::destroy):
* Source/WebGPU/WebGPU/TextureView.h:
* Source/WebGPU/WebGPU/TextureView.mm:
(WebGPU::TextureView::destroy):
(WebGPU::TextureView::setCommandEncoder):
Canonical link: https://commits.webkit.org/272725@main
More information about the webkit-changes
mailing list