Zebediah Figura : d3d10core/tests: Don't run the 32-bit tests multithreaded.

Alexandre Julliard julliard at winehq.org
Mon Feb 7 15:56:05 CST 2022


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

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Mon Feb  7 14:46:31 2022 +0100

d3d10core/tests: Don't run the 32-bit tests multithreaded.

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

---

 dlls/d3d10core/tests/d3d10core.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/d3d10core/tests/d3d10core.c b/dlls/d3d10core/tests/d3d10core.c
index a5f7f4202d5..49622bd0e26 100644
--- a/dlls/d3d10core/tests/d3d10core.c
+++ b/dlls/d3d10core/tests/d3d10core.c
@@ -19223,6 +19223,11 @@ START_TEST(d3d10core)
     char **argv;
 
     use_mt = !getenv("WINETEST_NO_MT_D3D");
+    /* Some host drivers (MacOS, Mesa radeonsi) never unmap memory even when
+     * requested. When using the chunk allocator, running the tests with more
+     * than one thread can exceed the 32-bit virtual address space. */
+    if (sizeof(void *) == 4 && !strcmp(winetest_platform, "wine"))
+        use_mt = FALSE;
 
     argc = winetest_get_mainargs(&argv);
     for (i = 2; i < argc; ++i)




More information about the wine-cvs mailing list