diff --git a/src/tests/end2end/BlendStateTests.cpp b/src/tests/end2end/BlendStateTests.cpp index d9407afa39..b4ec73ca90 100644 --- a/src/tests/end2end/BlendStateTests.cpp +++ b/src/tests/end2end/BlendStateTests.cpp @@ -62,6 +62,7 @@ class BlendStateTest : public NXTTest { .SetAttachmentCount(1) .SetSubpassCount(1) .AttachmentSetFormat(0, nxt::TextureFormat::R8G8B8A8Unorm) + .AttachmentSetColorLoadOp(0, nxt::LoadOp::Clear) .SubpassSetColorAttachment(0, 0, 0) .GetResult(); diff --git a/src/tests/end2end/DepthStencilStateTests.cpp b/src/tests/end2end/DepthStencilStateTests.cpp index a67b82f0cd..a71a1f68a2 100644 --- a/src/tests/end2end/DepthStencilStateTests.cpp +++ b/src/tests/end2end/DepthStencilStateTests.cpp @@ -28,7 +28,9 @@ class DepthStencilStateTest : public NXTTest { renderpass = device.CreateRenderPassBuilder() .SetAttachmentCount(2) .AttachmentSetFormat(0, nxt::TextureFormat::R8G8B8A8Unorm) + .AttachmentSetColorLoadOp(0, nxt::LoadOp::Clear) .AttachmentSetFormat(1, nxt::TextureFormat::D32FloatS8Uint) + .AttachmentSetDepthStencilLoadOps(1, nxt::LoadOp::Clear, nxt::LoadOp::Clear) .SetSubpassCount(1) .SubpassSetColorAttachment(0, 0, 0) .SubpassSetDepthStencilAttachment(0, 1) diff --git a/src/tests/end2end/InputStateTests.cpp b/src/tests/end2end/InputStateTests.cpp index 51bcdf1781..0ab644b2b1 100644 --- a/src/tests/end2end/InputStateTests.cpp +++ b/src/tests/end2end/InputStateTests.cpp @@ -40,6 +40,7 @@ class InputStateTest : public NXTTest { renderpass = device.CreateRenderPassBuilder() .SetAttachmentCount(1) .AttachmentSetFormat(0, nxt::TextureFormat::R8G8B8A8Unorm) + .AttachmentSetColorLoadOp(0, nxt::LoadOp::Clear) .SetSubpassCount(1) .SubpassSetColorAttachment(0, 0, 0) .GetResult(); diff --git a/src/tests/end2end/PrimitiveTopologyTests.cpp b/src/tests/end2end/PrimitiveTopologyTests.cpp index 0cfc80ccdc..ecef65a22f 100644 --- a/src/tests/end2end/PrimitiveTopologyTests.cpp +++ b/src/tests/end2end/PrimitiveTopologyTests.cpp @@ -148,6 +148,7 @@ class PrimitiveTopologyTest : public NXTTest { renderpass = device.CreateRenderPassBuilder() .SetAttachmentCount(1) .AttachmentSetFormat(0, nxt::TextureFormat::R8G8B8A8Unorm) + .AttachmentSetColorLoadOp(0, nxt::LoadOp::Clear) .SetSubpassCount(1) .SubpassSetColorAttachment(0, 0, 0) .GetResult();