Zebediah Figura : d3d11/tests: Test specifying the multisample mask via OMSetBlendState().

Alexandre Julliard julliard at winehq.org
Wed Sep 2 15:24:33 CDT 2020


Module: wine
Branch: master
Commit: 87ab21dd35cea37f676060d09f956e0ca5ce082a
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=87ab21dd35cea37f676060d09f956e0ca5ce082a

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Wed Sep  2 00:27:39 2020 -0500

d3d11/tests: Test specifying the multisample mask via OMSetBlendState().

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d11/tests/d3d11.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c
index e107d522b2..4704dad1aa 100644
--- a/dlls/d3d11/tests/d3d11.c
+++ b/dlls/d3d11/tests/d3d11.c
@@ -29012,6 +29012,13 @@ static void test_sample_mask(void)
             (ID3D11Resource *)texture, 0, texture_desc.Format);
     check_texture_color(test_context.backbuffer, 0x7f7f7f7f, 1);
 
+    ID3D11DeviceContext_OMSetBlendState(context, NULL, NULL, 0xb);
+    ID3D11DeviceContext_ClearRenderTargetView(context, rtv, black);
+    draw_quad(&test_context);
+    ID3D11DeviceContext_ResolveSubresource(context, (ID3D11Resource *)test_context.backbuffer, 0,
+            (ID3D11Resource *)texture, 0, texture_desc.Format);
+    todo_wine check_texture_color(test_context.backbuffer, 0x3f3f3f3f, 1);
+
     ID3D11RenderTargetView_Release(rtv);
     ID3D11Texture2D_Release(texture);
     ID3D11PixelShader_Release(ps);




More information about the wine-cvs mailing list