Signed-off-by: Chip Davis cdavis@codeweavers.com --- v2: Add missing locking. --- dlls/d3d11/device.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c index 207d3869c27..368a66ce74e 100644 --- a/dlls/d3d11/device.c +++ b/dlls/d3d11/device.c @@ -2396,7 +2396,13 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_ClearState(ID3D11DeviceCon
static void STDMETHODCALLTYPE d3d11_immediate_context_Flush(ID3D11DeviceContext1 *iface) { - FIXME("iface %p stub!\n", iface); + struct d3d_device *device = device_from_immediate_ID3D11DeviceContext1(iface); + + TRACE("iface %p.\n", iface); + + wined3d_mutex_lock(); + wined3d_device_flush(device->wined3d_device); + wined3d_mutex_unlock(); }
static D3D11_DEVICE_CONTEXT_TYPE STDMETHODCALLTYPE d3d11_immediate_context_GetType(ID3D11DeviceContext1 *iface) @@ -5246,7 +5252,13 @@ static void STDMETHODCALLTYPE d3d10_device_ClearState(ID3D10Device1 *iface)
static void STDMETHODCALLTYPE d3d10_device_Flush(ID3D10Device1 *iface) { - FIXME("iface %p stub!\n", iface); + struct d3d_device *device = impl_from_ID3D10Device(iface); + + TRACE("iface %p.\n", iface); + + wined3d_mutex_lock(); + wined3d_device_flush(device->wined3d_device); + wined3d_mutex_unlock(); }
static HRESULT STDMETHODCALLTYPE d3d10_device_CreateBuffer(ID3D10Device1 *iface,
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=71758
Your paranoid android.
=== debiant (32 bit report) ===
d3d11: d3d11.c:30101: Test failed: Failed to create buffer, hr 0x80070057. d3d11.c:30105: Test failed: Failed to create buffer, hr 0x80070057. Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x65168a4d).
Report validation errors: d3d11:d3d11 crashed (c0000005)
=== debiant (32 bit Chinese:China report) ===
d3d11: d3d11.c:30101: Test failed: Failed to create buffer, hr 0x80070057. d3d11.c:30105: Test failed: Failed to create buffer, hr 0x80070057. Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x65168a4d).
Report validation errors: d3d11:d3d11 crashed (c0000005)
=== debiant (32 bit WoW report) ===
d3d11: d3d11.c:30101: Test failed: Failed to create buffer, hr 0x80070057. d3d11.c:30105: Test failed: Failed to create buffer, hr 0x80070057. Unhandled exception: page fault on read access to 0x00000089 in 32-bit code (0x65168a56).
Report validation errors: d3d11:d3d11 crashed (c0000005)
=== debiant (64 bit WoW report) ===
d3d11: d3d11.c:30101: Test failed: Failed to create buffer, hr 0x80070057. d3d11.c:30105: Test failed: Failed to create buffer, hr 0x80070057. Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x65168a4d).
Report validation errors: d3d11:d3d11 crashed (c0000005)