https://bugs.winehq.org/show_bug.cgi?id=54757
Bug ID: 54757 Summary: d3d11:d3d11 - test_resource_access() sometimes triggers a wined3d assertion Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: d3d Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com Distribution: ---
d3d11:d3d11 - test_resource_access() sometimes triggers a wined3d assertion:
d3d11.c:15552: Test marked todo: Feature level 0xb100: Got hr 0 for WRITE. Assertion failed: bo->b.map_ptr, file ../wine/dlls/wined3d/context_gl.c, line 3049 d3d11:d3d11:06e8 done (3) in 9s 15479B
See https://test.winehq.org/data/patterns.html#d3d11:d3d11
The assertion always happens after the same trace so it is likely caused by this test_resource_access() line:
15552 check_resource_cpu_access(context, resource, 15553 texture_desc.Usage, texture_desc.BindFlags, texture_desc.CPUAccessFlags); 15554 ID3D11Resource_Release(resource);
And the assertion happens in wined3d_context_gl_unmap_bo_address():
3049 assert(bo->b.map_ptr);
The oldest known instance happened on 2023-02-23 and there has been about one further failure per week since, all in the pure 32-bit tests on the debian11 TestBot VM.