-
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] setDepthBias: is never called, depth bias and related functi…
…ons are not implemented https://bugs.webkit.org/show_bug.cgi?id=263906 <rdar://problem/117696050> Reviewed by Dan Glastonbury. Call setDepthBias for regular passes and ICBs and update the test expectations. * LayoutTests/http/tests/webgpu/webgpu/api/operation/rendering/depth_bias-expected.txt: * Source/WebCore/Modules/WebGPU/GPUDepthStencilState.h: (WebCore::GPUDepthStencilState::convertToBacking const): * Source/WebCore/Modules/WebGPU/Implementation/WebGPUDeviceImpl.cpp: (WebCore::WebGPU::convertToBacking): * Source/WebGPU/WebGPU/RenderBundleEncoder.h: * Source/WebGPU/WebGPU/RenderBundleEncoder.mm: (-[RenderBundleICBWithResources initWithICB:pipelineState:depthStencilState:cullMode:frontFace:depthClipMode:depthBias:depthBiasSlopeScale:depthBiasClamp:]): (WebGPU::makeRenderBundleICBWithResources): (WebGPU::RenderBundleEncoder::endCurrentICB): (WebGPU::icbNeedsToBeSplit): (WebGPU::RenderBundleEncoder::setPipeline): (-[RenderBundleICBWithResources initWithICB:pipelineState:depthStencilState:cullMode:frontFace:depthClipMode:]): Deleted. * Source/WebGPU/WebGPU/RenderPassEncoder.mm: (WebGPU::RenderPassEncoder::executeBundles): (WebGPU::RenderPassEncoder::setPipeline): * Source/WebGPU/WebGPU/RenderPipeline.h: (WebGPU::RenderPipeline::create): (WebGPU::RenderPipeline::depthBias const): (WebGPU::RenderPipeline::depthBiasSlopeScale const): (WebGPU::RenderPipeline::depthBiasClamp const): * Source/WebGPU/WebGPU/RenderPipeline.mm: (WebGPU::Device::createRenderPipeline): (WebGPU::RenderPipeline::RenderPipeline): Canonical link: https://commits.webkit.org/269995@main
- Loading branch information
1 parent
02a3627
commit 7111a43
Showing
8 changed files
with
89 additions
and
32 deletions.
There are no files selected for viewing
16 changes: 15 additions & 1 deletion
16
LayoutTests/http/tests/webgpu/webgpu/api/operation/rendering/depth_bias-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,15 @@ | ||
(Populate me when we're ready to investigate this test) | ||
|
||
PASS :depth_bias:quadAngle=0;bias=8388608;biasSlopeScale=0;biasClamp=0 | ||
PASS :depth_bias:quadAngle=0;bias=8388608;biasSlopeScale=0;biasClamp=0.125 | ||
PASS :depth_bias:quadAngle=0;bias=-8388608;biasSlopeScale=0;biasClamp=0.125 | ||
PASS :depth_bias:quadAngle=0;bias=-8388608;biasSlopeScale=0;biasClamp=-0.125 | ||
PASS :depth_bias:quadAngle=1;bias=0;biasSlopeScale=0;biasClamp=0 | ||
PASS :depth_bias:quadAngle=1;bias=0;biasSlopeScale=1;biasClamp=0 | ||
PASS :depth_bias:quadAngle=1;bias=0;biasSlopeScale=-0.5;biasClamp=0 | ||
PASS :depth_bias_24bit_format:format="depth24plus";quadAngle=0;bias=8388608;biasSlopeScale=0;biasClamp=0 | ||
PASS :depth_bias_24bit_format:format="depth24plus";quadAngle=0;bias=8388608;biasSlopeScale=0;biasClamp=0.1 | ||
PASS :depth_bias_24bit_format:format="depth24plus";quadAngle=1;bias=8388608;biasSlopeScale=1;biasClamp=0 | ||
PASS :depth_bias_24bit_format:format="depth24plus-stencil8";quadAngle=0;bias=8388608;biasSlopeScale=0;biasClamp=0 | ||
PASS :depth_bias_24bit_format:format="depth24plus-stencil8";quadAngle=0;bias=8388608;biasSlopeScale=0;biasClamp=0.1 | ||
PASS :depth_bias_24bit_format:format="depth24plus-stencil8";quadAngle=1;bias=8388608;biasSlopeScale=1;biasClamp=0 | ||
|
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
Oops, something went wrong.