[Bug 42119] New: Unigine Heaven Benchmark 4.0 not working in dx11 mode
https://bugs.winehq.org/show_bug.cgi?id=42119 Bug ID: 42119 Summary: Unigine Heaven Benchmark 4.0 not working in dx11 mode Product: Wine Version: 2.0-rc3 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d Assignee: wine-bugs(a)winehq.org Reporter: isakov-sl(a)bk.ru Distribution: --- Created attachment 56646 --> https://bugs.winehq.org/attachment.cgi?id=56646 10.0 is not supported The message is not true. My graphics card supported DX11 and SM5.0 macOS Sierra supported OpenGL4.1 In log there are few messages ~~~~ fixme:dxgi:DXGID3D10CreateDevice Ignoring flags 0x1. fixme:dxgi:dxgi_check_feature_level_support Ignoring adapter type. fixme:dxgi:dxgi_device_init Ignoring adapter type. fixme:d3d11:device_parent_create_swapchain_texture device_parent 0x1a1774, container_parent 0x1a13f8, wined3d_desc 0x33e820, wined3d_texture 0x1dc6c8 partial stub! fixme:d3d11:device_parent_create_swapchain_texture Implement DXGI<->wined3d usage conversion. fixme:d3d:context_create OpenGL implementation does not support GL_PRIMITIVE_RESTART_FIXED_INDEX. fixme:dxgi:dxgi_factory_CreateSwapChain iface 0x1a41d8, device 0x1a1748, desc 0x33ec44, swapchain 0x48c888 partial stub! fixme:dxgi:dxgi_factory_CreateSwapChain Ignoring SwapEffect 0. fixme:d3d11:device_parent_create_swapchain_texture device_parent 0x1a1774, container_parent 0x1dd158, wined3d_desc 0x33eab0, wined3d_texture 0x1de730 partial stub! fixme:d3d11:device_parent_create_swapchain_texture Implement DXGI<->wined3d usage conversion. fixme:d3d:context_create OpenGL implementation does not support GL_PRIMITIVE_RESTART_FIXED_INDEX. fixme:d3d11:device_parent_create_swapchain_texture device_parent 0x1a1774, container_parent 0x1dd158, wined3d_desc 0x33eab0, wined3d_texture 0x1e0718 partial stub! fixme:d3d11:device_parent_create_swapchain_texture Implement DXGI<->wined3d usage conversion. fixme:dxgi:dxgi_factory_MakeWindowAssociation iface 0x1a41d8, window 0x10092, flags 0x3 stub! -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=42119 Józef Kucia <joseph.kucia(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |joseph.kucia(a)gmail.com --- Comment #1 from Józef Kucia <joseph.kucia(a)gmail.com> --- (In reply to Sergey Isakov from comment #0)
The message is not true. My graphics card supported DX11 and SM5.0 macOS Sierra supported OpenGL4.1
OpenGL 4.1 is not feature-wise equivalent to D3D feature level 11.0 or even 10.0. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=42119 Józef Kucia <joseph.kucia(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- OS|Linux |Mac OS X -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=42119 Guillaume Charifi <guillaume.charifi(a)sfr.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |guillaume.charifi(a)sfr.fr --- Comment #2 from Guillaume Charifi <guillaume.charifi(a)sfr.fr> --- Did you set the right registry key to allow Wine to use GL 4.5 ? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=42119 tokktokk <fdsfgs(a)krutt.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs(a)krutt.org -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=42119 --- Comment #3 from Sergey Isakov <isakov-sl(a)bk.ru> --- Wine-4.0 Still not works. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=42119 Sergey Isakov <isakov-sl(a)bk.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://benchmark.unigine.c | |om/heaven -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=42119 --- Comment #4 from Sergey Isakov <isakov-sl(a)bk.ru> --- (In reply to Guillaume Charifi from comment #2)
Did you set the right registry key to allow Wine to use GL 4.5 ?
Yes, didn't help ~~~ 0042:err:winediag:wined3d_dll_init Setting maximum allowed wined3d GL version to 4.5. ... 004b:fixme:dxgi:DXGID3D10CreateDevice Ignoring flags 0x1. 00b9:fixme:d3d:wined3d_adapter_gl_create_context OpenGL implementation does not support GL_PRIMITIVE_RESTART_FIXED_INDEX. 00b9:fixme:d3d:wined3d_adapter_gl_create_context OpenGL implementation does not support GL_PRIMITIVE_RESTART_FIXED_INDEX. 004b:fixme:dxgi:dxgi_factory_MakeWindowAssociation iface 0x190110, window 0x40080, flags 0x3 stub! 0033:fixme:win:FlashWindowEx 0x33d5c8 - semi-stub -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=42119 --- Comment #5 from Sergey Isakov <isakov-sl(a)bk.ru> --- (In reply to Józef Kucia from comment #1)
(In reply to Sergey Isakov from comment #0)
The message is not true. My graphics card supported DX11 and SM5.0 macOS Sierra supported OpenGL4.1
OpenGL 4.1 is not feature-wise equivalent to D3D feature level 11.0 or even 10.0.
Does it mean this is the end for the wine on macOS Sierra? If the card supports DirectX11 then it should be able to perform such features not present in OpenGL 4.1 so wine should somehow emulate this functions through available. Or it is ultimate impossible? Is there a possible road DirectX11->Vulcan->Metal for system like macOS 10.14 Mojave? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=42119 --- Comment #6 from Sergey Isakov <isakov-sl(a)bk.ru> --- Something new here. I tested Staging-4.1 and force SmModel to be 5, it can be set lower by registry. I got a crash ~~~~ Backtrace: =>0 0x40e648ac d3d11_immediate_context_Begin+0x5c() in d3d11 (0x0033edd4) ~~~~ It appears because the function called with zero pointer. So I write as follow ~~~~ static void STDMETHODCALLTYPE d3d11_immediate_context_Begin(ID3D11DeviceContext1 *iface, ID3D11Asynchronous *asynchronous) { struct d3d_query *query = unsafe_impl_from_ID3D11Asynchronous(asynchronous); HRESULT hr; + if (!query) { + ERR("no query\n"); + return; } ~~~ as well as in other functions. The game started! But main scene without 3D graphics, menu and messages presents The log shows the error ~~~ 01e5:err:d3d11:d3d11_immediate_context_Begin no query 00e6:fixme:d3d:create_texture_view OpenGL implementation does not support texture views. ~~~ There are other FIXMEs in log. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=42119 --- Comment #7 from Sergey Isakov <isakov-sl(a)bk.ru> --- Set d3dcompiler_43 to native didn't resolve the crash. But I see something new in log that may be interesting for analysis ~~~ 0137:fixme:d3d:context_check_fbo_status FBO status GL_FRAMEBUFFER_UNDEFINED (0x8219). 0137:err:d3d:context_check_fbo_status FBO 0 is incomplete, driver bug? 0137:err:d3d:wined3d_check_gl_call >>>>>>> GL_INVALID_FRAMEBUFFER_OPERATION (0x506) from glBlitFramebuffer() @ /Volumes/MacHD/Users/sergey/Documents/Projects/wine/dlls/wined3d/surface.c / 284. ~~~ masOS 10.13.6 Intel HD4000 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=42119 Józef Kucia <joseph.kucia(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Unigine Heaven Benchmark |Unigine Heaven Benchmark |4.0 not working in dx11 |4.0 not working in dx11 |mode |mode (Mac Os X) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=42119 --- Comment #8 from Sergey Isakov <isakov-sl(a)bk.ru> --- 00e6:fixme:d3d:create_texture_view OpenGL implementation does not support texture views. It means deadend for macOS? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=42119 --- Comment #9 from Sergey Isakov <isakov-sl(a)bk.ru> --- Created attachment 63630 --> https://bugs.winehq.org/attachment.cgi?id=63630 GL_ARB_map_buffer_range is not supported I found in adapter_gl.c a note ~~~ /* GL_ARB_map_buffer_range and GL_APPLE_flush_buffer_range provide the same * functionality. Prefer the ARB extension */ ~~~ and then check with glxinfo. Yes, I have no GL_ARB_map_buffer_range and I have GL_APPLE_flush_buffer_range. This is macOS! So there is a simple solution: - if GL_APPLE_flush_buffer_range is supported then report to game that GL_ARB_map_buffer_range is supported too. - but we have not to use GL_ARB_map_buffer_range and use GL_APPLE_flush_buffer_range when possible. I know, this is macOS specific change and I am not sure if it reliable for linux. May be it will be better to use conditions like #ifdef _apple_ -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=42119 --- Comment #10 from Sergey Isakov <isakov-sl(a)bk.ru> --- Created attachment 63631 --> https://bugs.winehq.org/attachment.cgi?id=63631 Patch to use apple_flush This patch will use APPLE_FLUSH_BUFFER_RANGE if possible when ARB_MAP_BUFFER_RANGE is not accessible but report to windows game that ARB_MAP_BUFFER_RANGE is present. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=42119 --- Comment #11 from Sergey Isakov <isakov-sl(a)bk.ru> --- Created attachment 78069 --> https://bugs.winehq.org/attachment.cgi?id=78069 DX11 is not working DX11 is still not working even though Directx11 is probably supported by vkd3d with MoltenVK installed -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=42119 --- Comment #12 from Sergey Isakov <isakov-sl(a)bk.ru> --- Created attachment 78110 --> https://bugs.winehq.org/attachment.cgi?id=78110 Working the DX11 mode I made this! I patched "bool wined3d_select_feature_level(...)" so that it returns "Selected feature level WINED3D_FEATURE_LEVEL_11." You said it is incorrect? No, my videocard AMD RX570 really supports DX11. Wine is not supporting it? But you didn't take into account that now I have DirectX10/11 by vulkan which is supported in macOS by libMoltenVK.dylib. So, the sources of current Wine just are not correct testing Feature Levels. ~~~~ - return false; + *selected_level = (i>0?levels[--i]:levels[0]); + return true; ~~~~ I don't think the bug is closed until you make official release. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=42119 --- Comment #13 from Sergey Isakov <isakov-sl@bk.ru> --- But in wine11.1 crash -------------------------- Unhandled exception: page fault on read access to 0x000000b4 in wow64 32-bit code (0x73a76368). Register dump: CS:0107 SS:0023 DS:0023 ES:0023 FS:017f GS:0023 EIP:73a76368 ESP:1569fbac EBP:1569fbec EFLAGS:00010246( R- -- I Z- -P- ) EAX:00000003 EBX:00000000 ECX:001f4000 EDX:00bdd970 ESI:00000002 EDI:00bdd970 Stack dump: 0x1569fbac: 00000000 00000006 7a157210 00000000 0x1569fbbc: 1569fbf0 00000035 00c110f3 734007d6 0x1569fbcc: 04fb6260 00000002 00000073 1569fbe0 0x1569fbdc: 00000000 00000000 00c12ca0 1569fe00 0x1569fbec: 1569fc04 73a76741 00000000 00bdd970 0x1569fbfc: 00000002 00000000 1569fdf0 739c7e73 002f: sel=017f base=7fee2000 limit=00000fff 32-bit rw- Backtrace: =>0 0x73a76368 wined3d_buffer_load_location+0x18(buffer=00000000, context=00BDD970, location=0x2) [/Users/sergey/src/wine-11/dlls/wined3d/buffer.c:275] in wined3d (0x1569fbec) 1 0x73a76741 wined3d_buffer_load_sysmem+0x21(buffer=00000000, context=00BDD970) [/Users/sergey/src/wine-11/dlls/wined3d/buffer.c:364] in wined3d (0x1569fc04) 2 0x739c7e73 shader_glsl_load_constants+0x12b3(priv=<couldn't compute location>, context=<couldn't compute location>, state=<couldn't compute location>) [/Users/sergey/src/wine-11/dlls/wined3d/glsl_shader.c:1820] in wined3d (0x1569fdf0) 3 0x73941977 draw_primitive+0x677(device=<is not available>, state=<is not available>, parameters=<is not available>) [/Users/sergey/src/wine-11/dlls/wined3d/context_gl.c:4123] in wined3d (0x1569fee8) 4 0x73a8ff44 wined3d_cs_exec_draw+0x144(cs=<is not available>, data=<is not available>) [/Users/sergey/src/wine-11/dlls/wined3d/cs.c:1144] in wined3d (0x1569ff0c) 5 0x73a9332f wined3d_cs_command_unlock(cs=<has been optimized away by compiler>, queue=<internal error>) [/Users/sergey/src/wine-11/dlls/wined3d/cs.c:3520] in wined3d (0x1569ff50) 6 0x73a9332f wined3d_cs_execute_next+0x52(ctx=<is not available>) [/Users/sergey/src/wine-11/dlls/wined3d/cs.c:3519] in wined3d (0x1569ff50) 7 0x73a9332f wined3d_cs_run+0x10f(ctx=<is not available>) [/Users/sergey/src/wine-11/dlls/wined3d/cs.c:3311] in wined3d (0x1569ff50) 8 0x7baffb58 in kernel32 (+0xfb58) (0x1569ff68) 9 0x7bcbe1f7 in ntdll (+0xe1f7) (0x1569ff80) 10 0x7bcf4d75 in ntdll (+0x44d75) (0x1569ffec) 0x73a76368 wined3d_buffer_load_location+0x18 [/Users/sergey/src/wine-11/dlls/wined3d/buffer.c:275] in wined3d: movl 0xb4(%ebx), %edx 275 TRACE("buffer %p, context %p, location %s.\n", Modules: Module Address Debug info Name (56 modules) PE 400000- 40b000 Deferred heaven PE-Wine 72610000-72707000 Deferred xaudio2_6 -------------------------------------- -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (3)
-
wine-bugs@winehq.org -
WineHQ Bugzilla -
WineHQ Bugzilla