mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 00:47:13 +00:00
Remove some validation for alpha.src/dstFactor
Validation rules revised at https://github.com/gpuweb/gpuweb/issues/2013#issuecomment-897364617 Bug: dawn:1063 Change-Id: I8ae1cd00f75c8049206a8c5f6fcdb879e1b6a469 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/61821 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Shrek Shao <shrekshao@google.com> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Shrek Shao <shrekshao@google.com>
This commit is contained in:
@@ -329,15 +329,7 @@ TEST_F(RenderPipelineValidationTest, FragmentOutputComponentCountCompatibility)
|
||||
if (BlendFactorContainsSrcAlpha(
|
||||
descriptor.cTargets[0].blend->color.srcFactor) ||
|
||||
BlendFactorContainsSrcAlpha(
|
||||
descriptor.cTargets[0].blend->color.dstFactor) ||
|
||||
descriptor.cTargets[0].blend->alpha.srcFactor !=
|
||||
wgpu::BlendFactor::Zero ||
|
||||
descriptor.cTargets[0].blend->alpha.dstFactor ==
|
||||
wgpu::BlendFactor::Src ||
|
||||
descriptor.cTargets[0].blend->alpha.dstFactor ==
|
||||
wgpu::BlendFactor::OneMinusSrc ||
|
||||
BlendFactorContainsSrcAlpha(
|
||||
descriptor.cTargets[0].blend->alpha.dstFactor)) {
|
||||
descriptor.cTargets[0].blend->color.dstFactor)) {
|
||||
valid = componentCount == 4;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user