mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
Fix D3D12 over-eager lazy zero initialization for textures
Bug: dawn:145, dawn:348 Change-Id: Iafa1644424e67020b004765a0c9ccff2e077ead3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/16980 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
022952303c
commit
c7e16e351f
@@ -195,7 +195,7 @@ TEST_P(NonzeroTextureCreationTests, NonRenderableTextureClearWithMultiArrayLayer
|
||||
// Test that all subresources of a renderable texture are filled because the toggle is enabled.
|
||||
TEST_P(NonzeroTextureCreationTests, AllSubresourcesFilled) {
|
||||
// TODO(crbug.com/dawn/145): Implement on other platforms.
|
||||
DAWN_SKIP_TEST_IF(!IsMetal());
|
||||
DAWN_SKIP_TEST_IF(!IsMetal() && !IsD3D12());
|
||||
|
||||
wgpu::TextureDescriptor baseDescriptor;
|
||||
baseDescriptor.dimension = wgpu::TextureDimension::e2D;
|
||||
@@ -251,7 +251,7 @@ TEST_P(NonzeroTextureCreationTests, AllSubresourcesFilled) {
|
||||
// Test that all subresources of a nonrenderable texture are filled because the toggle is enabled.
|
||||
TEST_P(NonzeroTextureCreationTests, NonRenderableAllSubresourcesFilled) {
|
||||
// TODO(crbug.com/dawn/145): Implement on other platforms.
|
||||
DAWN_SKIP_TEST_IF(!IsMetal());
|
||||
DAWN_SKIP_TEST_IF(!IsMetal() && !IsD3D12());
|
||||
|
||||
wgpu::TextureDescriptor baseDescriptor;
|
||||
baseDescriptor.dimension = wgpu::TextureDimension::e2D;
|
||||
@@ -259,7 +259,7 @@ TEST_P(NonzeroTextureCreationTests, NonRenderableAllSubresourcesFilled) {
|
||||
baseDescriptor.size.height = kSize;
|
||||
baseDescriptor.size.depth = 1;
|
||||
baseDescriptor.sampleCount = 1;
|
||||
baseDescriptor.format = wgpu::TextureFormat::RGBA8Unorm;
|
||||
baseDescriptor.format = wgpu::TextureFormat::RGBA8Snorm;
|
||||
baseDescriptor.mipLevelCount = 1;
|
||||
baseDescriptor.arrayLayerCount = 1;
|
||||
baseDescriptor.usage = wgpu::TextureUsage::CopySrc;
|
||||
|
||||
@@ -872,7 +872,7 @@ TEST_P(TextureZeroInitTest, RenderingLoadingDepthStencilStoreOpClear) {
|
||||
// uninitialized mip does not clear the initialized mip.
|
||||
TEST_P(TextureZeroInitTest, PreservesInitializedMip) {
|
||||
// TODO(crbug.com/dawn/145): Fix this on other backends
|
||||
DAWN_SKIP_TEST_IF(!IsMetal());
|
||||
DAWN_SKIP_TEST_IF(!IsMetal() && !IsD3D12());
|
||||
|
||||
wgpu::TextureDescriptor sampleTextureDescriptor = CreateTextureDescriptor(
|
||||
2, 1,
|
||||
@@ -953,7 +953,7 @@ TEST_P(TextureZeroInitTest, PreservesInitializedMip) {
|
||||
// the uninitialized layer does not clear the initialized layer.
|
||||
TEST_P(TextureZeroInitTest, PreservesInitializedArrayLayer) {
|
||||
// TODO(crbug.com/dawn/145): Fix this on other backends
|
||||
DAWN_SKIP_TEST_IF(!IsMetal());
|
||||
DAWN_SKIP_TEST_IF(!IsMetal() && !IsD3D12());
|
||||
|
||||
wgpu::TextureDescriptor sampleTextureDescriptor = CreateTextureDescriptor(
|
||||
1, 2,
|
||||
|
||||
Reference in New Issue
Block a user