mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 23:56:16 +00:00
Fix a bug in PassResourceUsageTracker.cpp
In a render/compute pass, if a texture is used as the same usages across its subresources, and it is also used as different usages across its subresources. We should mark that it is not used as the same usages across its subresources for this pass, and we need to visit every single subresource to track its usages transition. Bug: dawn:462 Change-Id: Ide0770db62a3b7b85664757b21eb3280a0bb646c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/23300 Commit-Queue: Yunchao He <yunchao.he@intel.com> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
bf27bd7a5e
commit
1c9e045024
@@ -422,9 +422,6 @@ TEST_P(MultisampledRenderingTest, ResolveOneMultisampledTextureTwice) {
|
||||
|
||||
// Test using a layer of a 2D texture as resolve target works correctly.
|
||||
TEST_P(MultisampledRenderingTest, ResolveIntoOneMipmapLevelOf2DTexture) {
|
||||
// TODO(dawn:462): Investigate backend validation failure.
|
||||
DAWN_SKIP_TEST_IF(IsD3D12() && IsBackendValidationEnabled());
|
||||
|
||||
constexpr uint32_t kBaseMipLevel = 2;
|
||||
|
||||
wgpu::TextureViewDescriptor textureViewDescriptor;
|
||||
@@ -462,9 +459,6 @@ TEST_P(MultisampledRenderingTest, ResolveIntoOneMipmapLevelOf2DTexture) {
|
||||
|
||||
// Test using a level or a layer of a 2D array texture as resolve target works correctly.
|
||||
TEST_P(MultisampledRenderingTest, ResolveInto2DArrayTexture) {
|
||||
// TODO(dawn:462): Investigate backend validation failure.
|
||||
DAWN_SKIP_TEST_IF(IsD3D12() && IsBackendValidationEnabled());
|
||||
|
||||
wgpu::TextureView multisampledColorView2 =
|
||||
CreateTextureForOutputAttachment(kColorFormat, kSampleCount).CreateView();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user