From: Zebediah Figura z.figura12@gmail.com
Signed-off-by: Zebediah Figura z.figura12@gmail.com --- dlls/d3d11/tests/d3d11.c | 80 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+)
diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c index e8c2f649f8..b8a90ec1ae 100644 --- a/dlls/d3d11/tests/d3d11.c +++ b/dlls/d3d11/tests/d3d11.c @@ -29290,6 +29290,85 @@ static void test_standard_pattern(void) release_test_context(&test_context); }
+static void test_desktop_window(void) +{ + ID3D11RenderTargetView *backbuffer_rtv; + DXGI_SWAP_CHAIN_DESC swapchain_desc; + ID3D11DeviceContext *context; + ID3D11Texture2D *backbuffer; + IDXGISwapChain *swapchain; + IDXGIDevice *dxgi_device; + IDXGIAdapter *adapter; + IDXGIFactory *factory; + ID3D11Device *device; + ULONG refcount; + HRESULT hr; + + static const float red[] = {1.0f, 0.0f, 0.0f, 1.0f}; + + if (!(device = create_device(NULL))) + { + skip("Failed to create device.\n"); + return; + } + + hr = ID3D11Device_QueryInterface(device, &IID_IDXGIDevice, (void **)&dxgi_device); + ok(SUCCEEDED(hr), "Failed to get DXGI device, hr %#x.\n", hr); + hr = IDXGIDevice_GetAdapter(dxgi_device, &adapter); + ok(SUCCEEDED(hr), "Failed to get adapter, hr %#x.\n", hr); + IDXGIDevice_Release(dxgi_device); + hr = IDXGIAdapter_GetParent(adapter, &IID_IDXGIFactory, (void **)&factory); + ok(SUCCEEDED(hr), "Failed to get factory, hr %#x.\n", hr); + IDXGIAdapter_Release(adapter); + + swapchain_desc.BufferDesc.Width = 640; + swapchain_desc.BufferDesc.Height = 480; + swapchain_desc.BufferDesc.RefreshRate.Numerator = 60; + swapchain_desc.BufferDesc.RefreshRate.Denominator = 1; + swapchain_desc.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + swapchain_desc.BufferDesc.ScanlineOrdering = DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED; + swapchain_desc.BufferDesc.Scaling = DXGI_MODE_SCALING_UNSPECIFIED; + swapchain_desc.SampleDesc.Count = 1; + swapchain_desc.SampleDesc.Quality = 0; + swapchain_desc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; + swapchain_desc.BufferCount = 1; + swapchain_desc.OutputWindow = GetDesktopWindow(); + swapchain_desc.Windowed = TRUE; + swapchain_desc.SwapEffect = DXGI_SWAP_EFFECT_DISCARD; + swapchain_desc.Flags = 0; + + hr = IDXGIFactory_CreateSwapChain(factory, (IUnknown *)device, &swapchain_desc, &swapchain); + todo_wine ok(hr == S_OK || broken(hr == DXGI_ERROR_INVALID_CALL) /* Not available on all Windows versions. */, + "Failed to create swapchain, hr %#x.\n", hr); + IDXGIFactory_Release(factory); + if (FAILED(hr)) + { + ID3D11Device_Release(device); + return; + } + + hr = IDXGISwapChain_GetBuffer(swapchain, 0, &IID_ID3D11Texture2D, (void **)&backbuffer); + ok(SUCCEEDED(hr), "Failed to get buffer, hr %#x.\n", hr); + + hr = ID3D11Device_CreateRenderTargetView(device, (ID3D11Resource *)backbuffer, NULL, &backbuffer_rtv); + ok(SUCCEEDED(hr), "Failed to create rendertarget view, hr %#x.\n", hr); + + ID3D11Device_GetImmediateContext(device, &context); + + ID3D11DeviceContext_ClearRenderTargetView(context, backbuffer_rtv, red); + check_texture_color(backbuffer, 0xff0000ff, 1); + + hr = IDXGISwapChain_Present(swapchain, 0, 0); + ok(hr == S_OK, "Got unexpected hr %#x.\n", hr); + + ID3D11RenderTargetView_Release(backbuffer_rtv); + ID3D11Texture2D_Release(backbuffer); + IDXGISwapChain_Release(swapchain); + ID3D11DeviceContext_Release(context); + refcount = ID3D11Device_Release(device); + ok(!refcount, "Device has %u references left.\n", refcount); +} + START_TEST(d3d11) { unsigned int argc, i; @@ -29448,6 +29527,7 @@ START_TEST(d3d11) queue_test(test_staging_buffers); queue_test(test_render_a8); queue_test(test_standard_pattern); + queue_test(test_desktop_window);
run_queued_tests(); }
From: Zebediah Figura z.figura12@gmail.com
Signed-off-by: Zebediah Figura z.figura12@gmail.com --- dlls/d3d10core/tests/d3d10core.c | 76 ++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+)
diff --git a/dlls/d3d10core/tests/d3d10core.c b/dlls/d3d10core/tests/d3d10core.c index ecf1f38147..81442e9bc4 100644 --- a/dlls/d3d10core/tests/d3d10core.c +++ b/dlls/d3d10core/tests/d3d10core.c @@ -17981,6 +17981,81 @@ static void test_render_a8(void) release_test_context(&test_context); }
+static void test_desktop_window(void) +{ + ID3D10RenderTargetView *backbuffer_rtv; + DXGI_SWAP_CHAIN_DESC swapchain_desc; + ID3D10Texture2D *backbuffer; + IDXGISwapChain *swapchain; + IDXGIDevice *dxgi_device; + IDXGIAdapter *adapter; + IDXGIFactory *factory; + ID3D10Device *device; + ULONG refcount; + HRESULT hr; + + static const float red[] = {1.0f, 0.0f, 0.0f, 1.0f}; + + if (!(device = create_device())) + { + skip("Failed to create device.\n"); + return; + } + + hr = ID3D10Device_QueryInterface(device, &IID_IDXGIDevice, (void **)&dxgi_device); + ok(SUCCEEDED(hr), "Failed to get DXGI device, hr %#x.\n", hr); + hr = IDXGIDevice_GetAdapter(dxgi_device, &adapter); + ok(SUCCEEDED(hr), "Failed to get adapter, hr %#x.\n", hr); + IDXGIDevice_Release(dxgi_device); + hr = IDXGIAdapter_GetParent(adapter, &IID_IDXGIFactory, (void **)&factory); + ok(SUCCEEDED(hr), "Failed to get factory, hr %#x.\n", hr); + IDXGIAdapter_Release(adapter); + + swapchain_desc.BufferDesc.Width = 640; + swapchain_desc.BufferDesc.Height = 480; + swapchain_desc.BufferDesc.RefreshRate.Numerator = 60; + swapchain_desc.BufferDesc.RefreshRate.Denominator = 1; + swapchain_desc.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + swapchain_desc.BufferDesc.ScanlineOrdering = DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED; + swapchain_desc.BufferDesc.Scaling = DXGI_MODE_SCALING_UNSPECIFIED; + swapchain_desc.SampleDesc.Count = 1; + swapchain_desc.SampleDesc.Quality = 0; + swapchain_desc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; + swapchain_desc.BufferCount = 1; + swapchain_desc.OutputWindow = GetDesktopWindow(); + swapchain_desc.Windowed = TRUE; + swapchain_desc.SwapEffect = DXGI_SWAP_EFFECT_DISCARD; + swapchain_desc.Flags = 0; + + hr = IDXGIFactory_CreateSwapChain(factory, (IUnknown *)device, &swapchain_desc, &swapchain); + todo_wine ok(hr == S_OK || broken(hr == DXGI_ERROR_INVALID_CALL) /* Not available on all Windows versions. */, + "Failed to create swapchain, hr %#x.\n", hr); + IDXGIFactory_Release(factory); + if (FAILED(hr)) + { + ID3D10Device_Release(device); + return; + } + + hr = IDXGISwapChain_GetBuffer(swapchain, 0, &IID_ID3D10Texture2D, (void **)&backbuffer); + ok(SUCCEEDED(hr), "Failed to get buffer, hr %#x.\n", hr); + + hr = ID3D10Device_CreateRenderTargetView(device, (ID3D10Resource *)backbuffer, NULL, &backbuffer_rtv); + ok(SUCCEEDED(hr), "Failed to create rendertarget view, hr %#x.\n", hr); + + ID3D10Device_ClearRenderTargetView(device, backbuffer_rtv, red); + check_texture_color(backbuffer, 0xff0000ff, 1); + + hr = IDXGISwapChain_Present(swapchain, 0, 0); + ok(hr == S_OK, "Got unexpected hr %#x.\n", hr); + + ID3D10RenderTargetView_Release(backbuffer_rtv); + ID3D10Texture2D_Release(backbuffer); + IDXGISwapChain_Release(swapchain); + refcount = ID3D10Device_Release(device); + ok(!refcount, "Device has %u references left.\n", refcount); +} + START_TEST(d3d10core) { unsigned int argc, i; @@ -18098,6 +18173,7 @@ START_TEST(d3d10core) queue_test(test_depth_clip); queue_test(test_staging_buffers); queue_test(test_render_a8); + queue_test(test_desktop_window);
run_queued_tests();
Hi,
While running your changed tests, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check?
Full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=53969
Your paranoid android.
=== debian9 (32 bit report) ===
d3d10core: d3d10core.c:4962: Test succeeded inside todo block: Got unexpected PrimitivesStorageNeeded: 0. d3d10core.c:12590: Test failed: Got {-1.00787401e+000, 0.00000000e+000, 1.00000000e+000, 5.03937006e-001}, expected {-1.00000000e+000, 0.00000000e+000, 1.00000000e+000, 5.03937006e-001} at (0, 0), sub-resource 0.
=== debian9 (32 bit Japanese:Japan report) ===
d3d10core: d3d10core.c:4779: Test failed: Got unexpected CPrimitives count: 3. d3d10core.c:12950: Test failed: Got {0x00000001, 0xffffffff, 0x00000000, 0x00000000}, expected {0x00000001, 0x00000000, 0x00000000, 0x00000000} at (0, 0), sub-resource 0.
=== debian9 (32 bit Chinese:China report) ===
d3d10core: d3d10core.c:4962: Test succeeded inside todo block: Got unexpected PrimitivesStorageNeeded: 0.
=== debian9 (32 bit WoW report) ===
d3d10core: d3d10core.c:12590: Test failed: Got {-1.00003052e+000, 0.00000000e+000, 1.00000000e+000, 0.00000000e+000}, expected {-1.00000000e+000, 0.00000000e+000, 1.00000000e+000, 0.00000000e+000} at (0, 0), sub-resource 0. d3d10core.c:12950: Test failed: Got {0x00000000, 0x00000000, 0x00000000, 0x00000000}, expected {0x00000000, 0xffffffff, 0x00000000, 0x00000000} at (0, 0), sub-resource 0. d3d10core.c:12950: Test failed: Got {0x00000000, 0x00000000, 0x00000000, 0x00000000}, expected {0xffffffff, 0x00000000, 0x00000000, 0x00000000} at (0, 0), sub-resource 0. d3d10core.c:12950: Test failed: Got {0xffffffff, 0x00000001, 0x00000000, 0x00000000}, expected {0x00000000, 0x00000001, 0x00000000, 0x00000000} at (0, 0), sub-resource 0. d3d10core.c:12590: Test failed: Got {-1.00787401e+000, 0.00000000e+000, 1.00000000e+000, 5.03937006e-001}, expected {-1.00000000e+000, 0.00000000e+000, 1.00000000e+000, 5.03937006e-001} at (0, 0), sub-resource 0. d3d10core.c:12950: Test failed: Got {0x00000001, 0xffffffff, 0x00000000, 0x00000000}, expected {0x00000001, 0x00000000, 0x00000000, 0x00000000} at (0, 0), sub-resource 0. d3d10core.c:16912: Test failed: Resource type 1, test 7: pixel (200, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 1, test 7: pixel (280, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 1, test 7: pixel (360, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 1, test 7: pixel (440, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 1, test 7: pixel (200, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 1, test 7: pixel (280, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 1, test 7: pixel (360, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 1, test 7: pixel (440, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 1, test 8: pixel (200, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 1, test 8: pixel (280, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 1, test 8: pixel (360, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 1, test 8: pixel (440, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 1, test 8: pixel (200, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 1, test 8: pixel (280, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 1, test 8: pixel (360, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 1, test 8: pixel (440, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 2, test 7: pixel (200, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 2, test 7: pixel (280, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 2, test 7: pixel (360, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 2, test 7: pixel (440, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 2, test 7: pixel (200, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 2, test 7: pixel (280, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 2, test 7: pixel (360, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 2, test 7: pixel (440, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 2, test 8: pixel (200, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 2, test 8: pixel (280, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 2, test 8: pixel (360, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 2, test 8: pixel (440, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 2, test 8: pixel (200, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 2, test 8: pixel (280, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 2, test 8: pixel (360, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 2, test 8: pixel (440, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 3, test 7: pixel (200, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 3, test 7: pixel (280, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 3, test 7: pixel (360, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 3, test 7: pixel (440, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 3, test 7: pixel (200, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 3, test 7: pixel (280, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 3, test 7: pixel (360, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 3, test 7: pixel (440, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 3, test 8: pixel (200, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 3, test 8: pixel (280, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 3, test 8: pixel (360, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 3, test 8: pixel (440, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 3, test 8: pixel (200, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 3, test 8: pixel (280, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 3, test 8: pixel (360, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 3, test 8: pixel (440, 270) has color 00000000, expected ff000000. d3d10core.c:15844: Test failed: Got depth 2.51951814e-003, expected 2.51948950e-003. d3d10core.c:15844: Test failed: Got depth 2.51951814e-003, expected 2.51948950e-003. d3d10core.c:15844: Test failed: Got depth 1.27950311e-003, expected 1.27948953e-003. d3d10core.c:15844: Test failed: Got depth 1.27950311e-003, expected 1.27948953e-003. d3d10core.c:15844: Test failed: Got depth 1.27950311e-003, expected 1.27948953e-003. d3d10core.c:15844: Test failed: Got depth 1.27950311e-003, expected 1.27948953e-003. d3d10core.c:15844: Test failed: Got depth 1.27950311e-003, expected 1.27948953e-003. d3d10core.c:15844: Test failed: Got depth 1.27950311e-003, expected 1.27948953e-003. d3d10core.c:15844: Test failed: Got depth 5.03277779e-003, expected 5.03897900e-003. d3d10core.c:15844: Test failed: Got depth 5.03277779e-003, expected 5.03897900e-003. d3d10core.c:15844: Test failed: Got depth 2.54905224e-003, expected 2.54897905e-003. d3d10core.c:15844: Test failed: Got depth 7.52645731e-003, expected 7.53897894e-003. d3d10core.c:15844: Test failed: Got depth 7.52645731e-003, expected 7.53897894e-003. d3d10core.c:15844: Test failed: Got depth 2.54905224e-003, expected 2.54897905e-003. d3d10core.c:15844: Test failed: Got depth 1.25139356e-002, expected 1.25389788e-002. d3d10core.c:15844: Test failed: Got depth 1.25139356e-002, expected 1.25389788e-002. d3d10core.c:15844: Test failed: Got depth 2.54905224e-003, expected 2.54897905e-003. d3d10core.c:15844: Test failed: Got depth 6.40938997e-001, expected 6.42538965e-001. d3d10core.c:15844: Test failed: Got depth 6.40938997e-001, expected 6.42538965e-001. d3d10core.c:15844: Test failed: Got depth 2.54905224e-003, expected 2.54897905e-003. d3d10core.c:15844: Test failed: Got depth 2.54905224e-003, expected 2.54897905e-003. d3d10core.c:15844: Test failed: Got depth 2.54905224e-003, expected 2.54897905e-003. d3d10core.c:15852: Test failed: Got value 0x149d4 (5.03277809e-003), expected 0x14a3c (5.03897697e-003). d3d10core.c:15852: Test failed: Got value 0x149d4 (5.03277809e-003), expected 0x14a3c (5.03897697e-003). d3d10core.c:15852: Test failed: Got value 0x5c5c2 (2.25487961e-002), expected 0x5c5c6 (2.25490345e-002). d3d10core.c:15852: Test failed: Got value 0x1ed41 (7.52645776e-003), expected 0x1ee13 (7.53897473e-003). d3d10core.c:15852: Test failed: Got value 0x1ed41 (7.52645776e-003), expected 0x1ee13 (7.53897473e-003). d3d10core.c:15852: Test failed: Got value 0x5c5c2 (2.25487961e-002), expected 0x5c5c6 (2.25490345e-002). d3d10core.c:15852: Test failed: Got value 0x3341d (1.25139363e-002), expected 0x335c1 (1.25389703e-002). d3d10core.c:15852: Test failed: Got value 0x3341d (1.25139363e-002), expected 0x335c1 (1.25389703e-002). d3d10core.c:15852: Test failed: Got value 0x5c5c2 (2.25487961e-002), expected 0x5c5c6 (2.25490345e-002). d3d10core.c:15852: Test failed: Got value 0xa41493 (6.40938976e-001), expected 0xa47d6e (6.42538943e-001). d3d10core.c:15852: Test failed: Got value 0xa41493 (6.40938976e-001), expected 0xa47d6e (6.42538943e-001). d3d10core.c:15852: Test failed: Got value 0x5c5c2 (2.25487961e-002), expected 0x5c5c6 (2.25490345e-002). d3d10core.c:15852: Test failed: Got value 0x5c5c2 (2.25487961e-002), expected 0x5c5c6 (2.25490345e-002). d3d10core.c:15852: Test failed: Got value 0x5c5c2 (2.25487961e-002), expected 0x5c5c6 (2.25490345e-002). d3d10core.c:15861: Test failed: Got value 0x3d8 (1.50148775e-002), expected 0x3da (1.50453956e-002). d3d10core.c:15861: Test failed: Got value 0x3d8 (1.50148775e-002), expected 0x3da (1.50453956e-002). d3d10core.c:15861: Test failed: Got value 0x333 (1.24971389e-002), expected 0x336 (1.25429160e-002). d3d10core.c:15861: Test failed: Got value 0x333 (1.24971389e-002), expected 0x336 (1.25429160e-002). d3d10core.c:15861: Test failed: Got value 0x479 (1.74715801e-002), expected 0x47d (1.75326162e-002). d3d10core.c:15861: Test failed: Got value 0x479 (1.74715801e-002), expected 0x47d (1.75326162e-002). d3d10core.c:15861: Test failed: Got value 0xa414 (6.40939956e-001), expected 0xa47c (6.42526894e-001). d3d10core.c:15861: Test failed: Got value 0xa414 (6.40939956e-001), expected 0xa47c (6.42526894e-001).
Signed-off-by: Henri Verbeet hverbeet@codeweavers.com
From: Zebediah Figura z.figura12@gmail.com
Signed-off-by: Zebediah Figura z.figura12@gmail.com --- dlls/d3d9/tests/visual.c | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+)
diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c index 053636dd6c..bed74f1e59 100644 --- a/dlls/d3d9/tests/visual.c +++ b/dlls/d3d9/tests/visual.c @@ -25790,6 +25790,50 @@ static void test_nrm_instruction(void) DestroyWindow(window); }
+static void test_desktop_window(void) +{ + IDirect3DDevice9 *device; + IDirect3D9 *d3d; + D3DCOLOR color; + ULONG refcount; + HWND window; + HRESULT hr; + + window = create_window(); + d3d = Direct3DCreate9(D3D_SDK_VERSION); + ok(!!d3d, "Failed to create a D3D object.\n"); + if (!(device = create_device(d3d, window, window, TRUE))) + { + skip("Failed to create a D3D device, skipping tests.\n"); + IDirect3D9_Release(d3d); + DestroyWindow(window); + return; + } + IDirect3DDevice9_Release(device); + DestroyWindow(window); + + device = create_device(d3d, GetDesktopWindow(), GetDesktopWindow(), TRUE); + todo_wine ok(!!device, "Failed to create a D3D device.\n"); + if (!device) + { + IDirect3D9_Release(d3d); + return; + } + + hr = IDirect3DDevice9_Clear(device, 0, NULL, D3DCLEAR_TARGET, 0xffff0000, 1.0f, 0); + ok(SUCCEEDED(hr), "Failed to clear, hr %#x.\n", hr); + color = getPixelColor(device, 1, 1); + ok(color == 0x00ff0000, "Got unexpected color 0x%08x.\n", color); + + hr = IDirect3DDevice9_Present(device, NULL, NULL, NULL, NULL); + ok(SUCCEEDED(hr), "Failed to present, hr %#x.\n", hr); + + refcount = IDirect3DDevice9_Release(device); + ok(!refcount, "Device has %u references left.\n", refcount); + + IDirect3D9_Release(d3d); +} + START_TEST(visual) { D3DADAPTER_IDENTIFIER9 identifier; @@ -25932,4 +25976,5 @@ START_TEST(visual) test_color_vertex(); test_sysmem_draw(); test_nrm_instruction(); + test_desktop_window(); }
Signed-off-by: Henri Verbeet hverbeet@codeweavers.com
From: Zebediah Figura z.figura12@gmail.com
Signed-off-by: Zebediah Figura z.figura12@gmail.com --- dlls/d3d8/tests/visual.c | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+)
diff --git a/dlls/d3d8/tests/visual.c b/dlls/d3d8/tests/visual.c index 474dc69ff2..a35b180a1d 100644 --- a/dlls/d3d8/tests/visual.c +++ b/dlls/d3d8/tests/visual.c @@ -11001,6 +11001,50 @@ done: DestroyWindow(window); }
+static void test_desktop_window(void) +{ + IDirect3DDevice8 *device; + IDirect3D8 *d3d; + D3DCOLOR color; + ULONG refcount; + HWND window; + HRESULT hr; + + window = create_window(); + d3d = Direct3DCreate8(D3D_SDK_VERSION); + ok(!!d3d, "Failed to create a D3D object.\n"); + if (!(device = create_device(d3d, window, window, TRUE))) + { + skip("Failed to create a D3D device, skipping tests.\n"); + IDirect3D8_Release(d3d); + DestroyWindow(window); + return; + } + IDirect3DDevice8_Release(device); + DestroyWindow(window); + + device = create_device(d3d, GetDesktopWindow(), GetDesktopWindow(), TRUE); + todo_wine ok(!!device, "Failed to create a D3D device.\n"); + if (!device) + { + IDirect3D8_Release(d3d); + return; + } + + hr = IDirect3DDevice8_Clear(device, 0, NULL, D3DCLEAR_TARGET, 0xffff0000, 1.0f, 0); + ok(SUCCEEDED(hr), "Failed to clear, hr %#x.\n", hr); + color = getPixelColor(device, 1, 1); + ok(color == 0x00ff0000, "Got unexpected color 0x%08x.\n", color); + + hr = IDirect3DDevice8_Present(device, NULL, NULL, NULL, NULL); + ok(SUCCEEDED(hr), "Failed to present, hr %#x.\n", hr); + + refcount = IDirect3DDevice8_Release(device); + ok(!refcount, "Device has %u references left.\n", refcount); + + IDirect3D8_Release(d3d); +} + START_TEST(visual) { D3DADAPTER_IDENTIFIER8 identifier; @@ -11077,4 +11121,5 @@ START_TEST(visual) test_color_vertex(); test_sysmem_draw(); test_alphatest(); + test_desktop_window(); }
Signed-off-by: Henri Verbeet hverbeet@codeweavers.com
From: Zebediah Figura z.figura12@gmail.com
This patch was written by "naur". Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=18490
Signed-off-by: Zebediah Figura z.figura12@gmail.com --- dlls/d3d10core/tests/d3d10core.c | 2 +- dlls/d3d11/tests/d3d11.c | 2 +- dlls/d3d8/tests/visual.c | 7 +------ dlls/d3d9/tests/visual.c | 7 +------ dlls/wined3d/context.c | 8 +++++++- 5 files changed, 11 insertions(+), 15 deletions(-)
diff --git a/dlls/d3d10core/tests/d3d10core.c b/dlls/d3d10core/tests/d3d10core.c index 81442e9bc4..a395467125 100644 --- a/dlls/d3d10core/tests/d3d10core.c +++ b/dlls/d3d10core/tests/d3d10core.c @@ -18028,7 +18028,7 @@ static void test_desktop_window(void) swapchain_desc.Flags = 0;
hr = IDXGIFactory_CreateSwapChain(factory, (IUnknown *)device, &swapchain_desc, &swapchain); - todo_wine ok(hr == S_OK || broken(hr == DXGI_ERROR_INVALID_CALL) /* Not available on all Windows versions. */, + ok(hr == S_OK || broken(hr == DXGI_ERROR_INVALID_CALL) /* Not available on all Windows versions. */, "Failed to create swapchain, hr %#x.\n", hr); IDXGIFactory_Release(factory); if (FAILED(hr)) diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c index b8a90ec1ae..1d7a7c7fe7 100644 --- a/dlls/d3d11/tests/d3d11.c +++ b/dlls/d3d11/tests/d3d11.c @@ -29338,7 +29338,7 @@ static void test_desktop_window(void) swapchain_desc.Flags = 0;
hr = IDXGIFactory_CreateSwapChain(factory, (IUnknown *)device, &swapchain_desc, &swapchain); - todo_wine ok(hr == S_OK || broken(hr == DXGI_ERROR_INVALID_CALL) /* Not available on all Windows versions. */, + ok(hr == S_OK || broken(hr == DXGI_ERROR_INVALID_CALL) /* Not available on all Windows versions. */, "Failed to create swapchain, hr %#x.\n", hr); IDXGIFactory_Release(factory); if (FAILED(hr)) diff --git a/dlls/d3d8/tests/visual.c b/dlls/d3d8/tests/visual.c index a35b180a1d..fc7c3cc293 100644 --- a/dlls/d3d8/tests/visual.c +++ b/dlls/d3d8/tests/visual.c @@ -11024,12 +11024,7 @@ static void test_desktop_window(void) DestroyWindow(window);
device = create_device(d3d, GetDesktopWindow(), GetDesktopWindow(), TRUE); - todo_wine ok(!!device, "Failed to create a D3D device.\n"); - if (!device) - { - IDirect3D8_Release(d3d); - return; - } + ok(!!device, "Failed to create a D3D device.\n");
hr = IDirect3DDevice8_Clear(device, 0, NULL, D3DCLEAR_TARGET, 0xffff0000, 1.0f, 0); ok(SUCCEEDED(hr), "Failed to clear, hr %#x.\n", hr); diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c index bed74f1e59..5ba07a36dd 100644 --- a/dlls/d3d9/tests/visual.c +++ b/dlls/d3d9/tests/visual.c @@ -25813,12 +25813,7 @@ static void test_desktop_window(void) DestroyWindow(window);
device = create_device(d3d, GetDesktopWindow(), GetDesktopWindow(), TRUE); - todo_wine ok(!!device, "Failed to create a D3D device.\n"); - if (!device) - { - IDirect3D9_Release(d3d); - return; - } + ok(!!device, "Failed to create a D3D device.\n");
hr = IDirect3DDevice9_Clear(device, 0, NULL, D3DCLEAR_TARGET, 0xffff0000, 1.0f, 0); ok(SUCCEEDED(hr), "Failed to clear, hr %#x.\n", hr); diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index 5b293b46c0..619b5ff7d0 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -1961,10 +1961,16 @@ HRESULT wined3d_context_gl_init(struct wined3d_context_gl *context_gl, struct wi
context_gl->tid = GetCurrentThreadId(); context_gl->window = context->swapchain->win_handle; - if (!(context_gl->dc = GetDCEx(context_gl->window, 0, DCX_USESTYLE | DCX_CACHE))) + if (context_gl->window == GetDesktopWindow()) { + TRACE("Swapchain is created on the desktop window, trying backup device context.\n"); + context_gl->dc = NULL; + } + else if (!(context_gl->dc = GetDCEx(context_gl->window, 0, DCX_USESTYLE | DCX_CACHE))) WARN("Failed to retrieve device context, trying swapchain backup.\n");
+ if (!context_gl->dc) + { if (!(context_gl->dc = swapchain_get_backup_dc(context->swapchain))) { ERR("Failed to retrieve a device context.\n");
Hi,
While running your changed tests, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check?
Full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=53972
Your paranoid android.
=== wvistau64_fr (32 bit report) ===
d3d10core: d3d10core.c:4759: Test failed: Got unexpected IAVertices count: 0. d3d10core.c:4760: Test failed: Got unexpected IAPrimitives count: 0. d3d10core.c:4761: Test failed: Got unexpected VSInvocations count: 0. d3d10core.c:4764: Test failed: Got unexpected CInvocations count: 0. d3d10core.c:4765: Test failed: Got unexpected CPrimitives count: 0.
=== w2008s64 (32 bit report) ===
d3d10core: d3d10core.c:4759: Test failed: Got unexpected IAVertices count: 4294966996. d3d10core.c:4760: Test failed: Got unexpected IAPrimitives count: 4294966993. d3d10core.c:4761: Test failed: Got unexpected VSInvocations count: 4294966991. d3d10core.c:4762: Test failed: Got unexpected GSInvocations count: 4294966988. d3d10core.c:4763: Test failed: Got unexpected GSPrimitives count: 4294966985. d3d10core.c:4764: Test failed: Got unexpected CInvocations count: 4294966983. d3d10core.c:4765: Test failed: Got unexpected CPrimitives count: 4294966980. d3d10core.c:4767: Test failed: Got unexpected PSInvocations count: 4294966977.
=== debian9 (32 bit report) ===
d3d10core: d3d10core.c:4962: Test succeeded inside todo block: Got unexpected PrimitivesStorageNeeded: 0. d3d10core.c:4779: Test failed: Got unexpected CPrimitives count: 3.
d3d11: d3d11.c:6101: Test succeeded inside todo block: Got unexpected PrimitivesStorageNeeded: 0.
=== debian9 (32 bit French report) ===
d3d10core: d3d10core.c:12590: Test failed: Got {-1.00787401e+000, 0.00000000e+000, 1.00000000e+000, 5.03937006e-001}, expected {-1.00000000e+000, 0.00000000e+000, 1.00000000e+000, 5.03937006e-001} at (0, 0), sub-resource 0.
d3d11: d3d11.c:16849: Test failed: Got {-1.00787401e+000, 0.00000000e+000, 1.00000000e+000, 5.03937006e-001}, expected {-1.00000000e+000, 0.00000000e+000, 1.00000000e+000, 5.03937006e-001} at (0, 0), sub-resource 0.
=== debian9 (32 bit Japanese:Japan report) ===
d3d10core: d3d10core.c:4779: Test failed: Got unexpected CPrimitives count: 3.
d3d11: d3d11.c:6101: Test succeeded inside todo block: Got unexpected PrimitivesStorageNeeded: 0. d3d11.c:16849: Test failed: Got {-1.00787401e+000, 0.00000000e+000, 1.00000000e+000, 5.03937006e-001}, expected {-1.00000000e+000, 0.00000000e+000, 1.00000000e+000, 5.03937006e-001} at (0, 0), sub-resource 0.
=== debian9 (32 bit Chinese:China report) ===
d3d10core: d3d10core.c:12590: Test failed: Got {-1.00787401e+000, 0.00000000e+000, 1.00000000e+000, 5.03937006e-001}, expected {-1.00000000e+000, 0.00000000e+000, 1.00000000e+000, 5.03937006e-001} at (0, 0), sub-resource 0.
d3d11: d3d11.c:6111: Test succeeded inside todo block: Got unexpected PrimitivesStorageNeeded: 0. d3d11.c:17933: Test failed: Got {0x00000001, 0xffffffff, 0x00000000, 0x00000000}, expected {0x00000001, 0x00000000, 0x00000000, 0x00000000} at (0, 0), sub-resource 0.
=== debian9 (32 bit WoW report) ===
d3d10core: d3d10core.c:12590: Test failed: Got {-1.00003052e+000, 0.00000000e+000, 1.00000000e+000, 0.00000000e+000}, expected {-1.00000000e+000, 0.00000000e+000, 1.00000000e+000, 0.00000000e+000} at (0, 0), sub-resource 0. d3d10core.c:12950: Test failed: Got {0x00000000, 0x00000000, 0x00000000, 0x00000000}, expected {0x00000000, 0xffffffff, 0x00000000, 0x00000000} at (0, 0), sub-resource 0. d3d10core.c:12950: Test failed: Got {0x00000000, 0x00000000, 0x00000000, 0x00000000}, expected {0xffffffff, 0x00000000, 0x00000000, 0x00000000} at (0, 0), sub-resource 0. d3d10core.c:12950: Test failed: Got {0xffffffff, 0x00000001, 0x00000000, 0x00000000}, expected {0x00000000, 0x00000001, 0x00000000, 0x00000000} at (0, 0), sub-resource 0. d3d10core.c:12950: Test failed: Got {0x00000001, 0xffffffff, 0x00000000, 0x00000000}, expected {0x00000001, 0x00000000, 0x00000000, 0x00000000} at (0, 0), sub-resource 0. d3d10core.c:12590: Test failed: Got {-1.00787401e+000, 0.00000000e+000, 1.00000000e+000, 5.03937006e-001}, expected {-1.00000000e+000, 0.00000000e+000, 1.00000000e+000, 5.03937006e-001} at (0, 0), sub-resource 0. d3d10core.c:16912: Test failed: Resource type 1, test 7: pixel (200, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 1, test 7: pixel (280, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 1, test 7: pixel (360, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 1, test 7: pixel (440, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 1, test 7: pixel (200, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 1, test 7: pixel (280, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 1, test 7: pixel (360, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 1, test 7: pixel (440, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 1, test 8: pixel (200, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 1, test 8: pixel (280, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 1, test 8: pixel (360, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 1, test 8: pixel (440, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 1, test 8: pixel (200, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 1, test 8: pixel (280, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 1, test 8: pixel (360, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 1, test 8: pixel (440, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 2, test 7: pixel (200, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 2, test 7: pixel (280, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 2, test 7: pixel (360, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 2, test 7: pixel (440, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 2, test 7: pixel (200, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 2, test 7: pixel (280, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 2, test 7: pixel (360, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 2, test 7: pixel (440, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 2, test 8: pixel (200, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 2, test 8: pixel (280, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 2, test 8: pixel (360, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 2, test 8: pixel (440, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 2, test 8: pixel (200, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 2, test 8: pixel (280, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 2, test 8: pixel (360, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 2, test 8: pixel (440, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 3, test 7: pixel (200, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 3, test 7: pixel (280, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 3, test 7: pixel (360, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 3, test 7: pixel (440, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 3, test 7: pixel (200, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 3, test 7: pixel (280, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 3, test 7: pixel (360, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 3, test 7: pixel (440, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 3, test 8: pixel (200, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 3, test 8: pixel (280, 200) has color 00000000, expected ffff0000. d3d10core.c:16912: Test failed: Resource type 3, test 8: pixel (360, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 3, test 8: pixel (440, 200) has color 00000000, expected ff00ff00. d3d10core.c:16912: Test failed: Resource type 3, test 8: pixel (200, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 3, test 8: pixel (280, 270) has color 00000000, expected ff0000ff. d3d10core.c:16912: Test failed: Resource type 3, test 8: pixel (360, 270) has color 00000000, expected ff000000. d3d10core.c:16912: Test failed: Resource type 3, test 8: pixel (440, 270) has color 00000000, expected ff000000. d3d10core.c:15844: Test failed: Got depth 2.51951814e-003, expected 2.51948950e-003. d3d10core.c:15844: Test failed: Got depth 2.51951814e-003, expected 2.51948950e-003. d3d10core.c:15844: Test failed: Got depth 1.27950311e-003, expected 1.27948953e-003. d3d10core.c:15844: Test failed: Got depth 1.27950311e-003, expected 1.27948953e-003. d3d10core.c:15844: Test failed: Got depth 1.27950311e-003, expected 1.27948953e-003. d3d10core.c:15844: Test failed: Got depth 1.27950311e-003, expected 1.27948953e-003. d3d10core.c:15844: Test failed: Got depth 1.27950311e-003, expected 1.27948953e-003. d3d10core.c:15844: Test failed: Got depth 1.27950311e-003, expected 1.27948953e-003. d3d10core.c:15844: Test failed: Got depth 5.03277779e-003, expected 5.03897900e-003. d3d10core.c:15844: Test failed: Got depth 5.03277779e-003, expected 5.03897900e-003. d3d10core.c:15844: Test failed: Got depth 2.54905224e-003, expected 2.54897905e-003. d3d10core.c:15844: Test failed: Got depth 7.52645731e-003, expected 7.53897894e-003. d3d10core.c:15844: Test failed: Got depth 7.52645731e-003, expected 7.53897894e-003. d3d10core.c:15844: Test failed: Got depth 2.54905224e-003, expected 2.54897905e-003. d3d10core.c:15844: Test failed: Got depth 1.25139356e-002, expected 1.25389788e-002. d3d10core.c:15844: Test failed: Got depth 1.25139356e-002, expected 1.25389788e-002. d3d10core.c:15844: Test failed: Got depth 2.54905224e-003, expected 2.54897905e-003. d3d10core.c:15844: Test failed: Got depth 6.40938997e-001, expected 6.42538965e-001. d3d10core.c:15844: Test failed: Got depth 6.40938997e-001, expected 6.42538965e-001. d3d10core.c:15844: Test failed: Got depth 2.54905224e-003, expected 2.54897905e-003. d3d10core.c:15844: Test failed: Got depth 2.54905224e-003, expected 2.54897905e-003. d3d10core.c:15844: Test failed: Got depth 2.54905224e-003, expected 2.54897905e-003. d3d10core.c:15852: Test failed: Got value 0x149d4 (5.03277809e-003), expected 0x14a3c (5.03897697e-003). d3d10core.c:15852: Test failed: Got value 0x149d4 (5.03277809e-003), expected 0x14a3c (5.03897697e-003). d3d10core.c:15852: Test failed: Got value 0x5c5c2 (2.25487961e-002), expected 0x5c5c6 (2.25490345e-002). d3d10core.c:15852: Test failed: Got value 0x1ed41 (7.52645776e-003), expected 0x1ee13 (7.53897473e-003). d3d10core.c:15852: Test failed: Got value 0x1ed41 (7.52645776e-003), expected 0x1ee13 (7.53897473e-003). d3d10core.c:15852: Test failed: Got value 0x5c5c2 (2.25487961e-002), expected 0x5c5c6 (2.25490345e-002). d3d10core.c:15852: Test failed: Got value 0x3341d (1.25139363e-002), expected 0x335c1 (1.25389703e-002). d3d10core.c:15852: Test failed: Got value 0x3341d (1.25139363e-002), expected 0x335c1 (1.25389703e-002). d3d10core.c:15852: Test failed: Got value 0x5c5c2 (2.25487961e-002), expected 0x5c5c6 (2.25490345e-002). d3d10core.c:15852: Test failed: Got value 0xa41493 (6.40938976e-001), expected 0xa47d6e (6.42538943e-001). d3d10core.c:15852: Test failed: Got value 0xa41493 (6.40938976e-001), expected 0xa47d6e (6.42538943e-001). d3d10core.c:15852: Test failed: Got value 0x5c5c2 (2.25487961e-002), expected 0x5c5c6 (2.25490345e-002). d3d10core.c:15852: Test failed: Got value 0x5c5c2 (2.25487961e-002), expected 0x5c5c6 (2.25490345e-002). d3d10core.c:15852: Test failed: Got value 0x5c5c2 (2.25487961e-002), expected 0x5c5c6 (2.25490345e-002). d3d10core.c:15861: Test failed: Got value 0x3d8 (1.50148775e-002), expected 0x3da (1.50453956e-002). d3d10core.c:15861: Test failed: Got value 0x3d8 (1.50148775e-002), expected 0x3da (1.50453956e-002). d3d10core.c:15861: Test failed: Got value 0x333 (1.24971389e-002), expected 0x336 (1.25429160e-002). d3d10core.c:15861: Test failed: Got value 0x333 (1.24971389e-002), expected 0x336 (1.25429160e-002). d3d10core.c:15861: Test failed: Got value 0x479 (1.74715801e-002), expected 0x47d (1.75326162e-002). d3d10core.c:15861: Test failed: Got value 0x479 (1.74715801e-002), expected 0x47d (1.75326162e-002). d3d10core.c:15861: Test failed: Got value 0xa414 (6.40939956e-001), expected 0xa47c (6.42526894e-001). d3d10core.c:15861: Test failed: Got value 0xa414 (6.40939956e-001), expected 0xa47c (6.42526894e-001).
d3d11: d3d11.c:6111: Test succeeded inside todo block: Got unexpected PrimitivesStorageNeeded: 0.
Report errors: d3d11:d3d11 has no test summary line (early exit of the main process?) d3d11:d3d11 has unaccounted for failure messages d3d11:d3d11 has unaccounted for todo messages d3d11:d3d11 has unaccounted for skip messages d3d11:d3d11 returned success despite having failures
=== debian9 (64 bit WoW report) ===
d3d11: d3d11.c:16849: Test failed: Got {-1.00787401e+000, 0.00000000e+000, 1.00000000e+000, 5.03937006e-001}, expected {-1.00000000e+000, 0.00000000e+000, 1.00000000e+000, 5.03937006e-001} at (0, 0), sub-resource 0.
=== debian9 (build log) ===
X Error of failed request: GLXBadFBConfig Major opcode of failed request: 154 (GLX) Minor opcode of failed request: 34 ()
Signed-off-by: Henri Verbeet hverbeet@codeweavers.com
Hi,
While running your changed tests, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check?
Full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=53968
Your paranoid android.
=== debian9 (32 bit report) ===
d3d11: d3d11.c:6101: Test succeeded inside todo block: Got unexpected PrimitivesStorageNeeded: 0. d3d11.c:6111: Test succeeded inside todo block: Got unexpected PrimitivesStorageNeeded: 0.
=== debian9 (32 bit Japanese:Japan report) ===
d3d11: d3d11.c:6101: Test succeeded inside todo block: Got unexpected PrimitivesStorageNeeded: 0. d3d11.c:6111: Test succeeded inside todo block: Got unexpected PrimitivesStorageNeeded: 0.
=== debian9 (32 bit Chinese:China report) ===
d3d11: d3d11.c:6101: Test succeeded inside todo block: Got unexpected PrimitivesStorageNeeded: 0.
=== debian9 (32 bit WoW report) ===
d3d11: d3d11.c:6101: Test succeeded inside todo block: Got unexpected PrimitivesStorageNeeded: 0.
=== debian9 (64 bit WoW report) ===
Report errors: d3d11:d3d11 has no test summary line (early exit of the main process?) d3d11:d3d11 has unaccounted for failure messages d3d11:d3d11 has unaccounted for todo messages d3d11:d3d11 has unaccounted for skip messages d3d11:d3d11 returned success despite having failures
=== debian9 (build log) ===
X Error of failed request: GLXBadFBConfig Major opcode of failed request: 154 (GLX) Minor opcode of failed request: 34 ()