Add nonzero_clear_resources_on_creation_for_testing toggle to opengl

Forces texture to clear to nonzero on creation to test the logic of
lazy clearing.

Bug: dawn:145
Change-Id: Ib1f6e8f961927008e3c09960ad0219f975d86cc6
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/7240
Commit-Queue: Natasha Lee <natlee@microsoft.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Natasha Lee
2019-05-20 21:00:17 +00:00
committed by Commit Bot service account
parent 2bc3169f0d
commit 2a7b631482
3 changed files with 17 additions and 0 deletions

View File

@@ -95,5 +95,7 @@ TEST_P(NonzeroTextureCreationTests, ArrayLayerClears) {
}
DAWN_INSTANTIATE_TEST(NonzeroTextureCreationTests,
ForceWorkaround(OpenGLBackend,
"nonzero_clear_resources_on_creation_for_testing"),
ForceWorkaround(VulkanBackend,
"nonzero_clear_resources_on_creation_for_testing"));