Add nonzero_clear_resources_on_creation_for_testing toggle for d3d12

Forces texture to clear to non-zero on creation to test the logic of
lazy clearing.

Bug: dawn:145
Change-Id: Ia738bf03be29dc620caf5f6d04b57c29b6919e85
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/7280
Commit-Queue: Natasha Lee <natlee@microsoft.com>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
Natasha Lee
2019-05-24 22:53:31 +00:00
committed by Commit Bot service account
parent 8aa036e9e4
commit 58ae08e132
4 changed files with 61 additions and 27 deletions

View File

@@ -94,8 +94,8 @@ TEST_P(NonzeroTextureCreationTests, ArrayLayerClears) {
EXPECT_TEXTURE_RGBA8_EQ(expected.data(), texture, 0, 0, kSize, kSize, 0, 2);
}
DAWN_INSTANTIATE_TEST(NonzeroTextureCreationTests,
ForceWorkaround(OpenGLBackend,
"nonzero_clear_resources_on_creation_for_testing"),
ForceWorkaround(VulkanBackend,
"nonzero_clear_resources_on_creation_for_testing"));
DAWN_INSTANTIATE_TEST(
NonzeroTextureCreationTests,
ForceWorkaround(D3D12Backend, "nonzero_clear_resources_on_creation_for_testing"),
ForceWorkaround(OpenGLBackend, "nonzero_clear_resources_on_creation_for_testing"),
ForceWorkaround(VulkanBackend, "nonzero_clear_resources_on_creation_for_testing"));