[PATCH v2 3/4] d3d11/tests: Don't run the 32-bit tests multithreaded.

Zebediah Figura zfigura at codeweavers.com
Fri Feb 4 12:04:48 CST 2022


Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 dlls/d3d11/tests/d3d11.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c
index 4ee7155f7c4..7494d430ad7 100644
--- a/dlls/d3d11/tests/d3d11.c
+++ b/dlls/d3d11/tests/d3d11.c
@@ -201,7 +201,10 @@ static void run_queued_tests(void)
     SYSTEM_INFO si;
     LONG test_idx;
 
-    if (!use_mt)
+    /* 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 (!use_mt || (sizeof(void *) == 4 && !strcmp(winetest_platform, "wine")))
     {
         for (i = 0; i < mt_test_count; ++i)
         {
-- 
2.34.1




More information about the wine-devel mailing list