kirides / GD3D11

D3D11-Renderer for Gothic and Gothic 2
GNU General Public License v3.0
203 stars 18 forks source link

Can't activate ctrl+F11 on Linux #46

Closed pm4rcin closed 3 years ago

pm4rcin commented 3 years ago

As the title says I can't activate the advanced menu on wine. The basic menu works fine. Is there something that blocks it? Does the advanced menu depend on a specific windows library?

kirides commented 3 years ago

It uses a separate idxgi surface for the direct2d stuff from AntTweakBar iirc.

Idk how that interferes with Linux / DXVK.

It's basically some sort of child window inside the games window, that shares the same device for rendering.

pm4rcin commented 3 years ago
2021-04-28 18:08:41,069: Your version of python-magic is too old.
2021-04-28 18:08:41,174: Initializing lutris
2021-04-28 18:08:41,625: Downloading DXVK releases to /home/vip/.local/share/lutris/runtime/dxvk/dxvk_versions.json
2021-04-28 18:08:41,627: Runtime updated. Initialization complete.
2021-04-28 18:08:41,628: Lutris 0.5.8.3
2021-04-28 18:08:41,628: Using NVIDIA drivers 465.24.02 for x86_64
2021-04-28 18:08:41,629: GPU: NVIDIA GeForce GTX 1650
2021-04-28 18:08:41,629: GPU: 10DE:1F99 17AA:3A43 (nvidia drivers)
2021-04-28 18:08:41,629: GPU: 1002:1636 17AA:3A3F (amdgpu drivers)
skipping config: /usr/bin/MangoHud.conf [ not found ]
skipping config: /home/vip/.config/MangoHud/python3.9.conf [ not found ]
parsing config: /home/vip/.config/MangoHud/MangoHud.conf [ ok ]
skipping config: /usr/bin/MangoHud.conf [ not found ]
skipping config: /home/vip/.config/MangoHud/python3.9.conf [ not found ]
parsing config: /home/vip/.config/MangoHud/MangoHud.conf [ ok ]
Running /usr/bin/wine /home/vip/Games/gog/gothic-2-gold-edition/drive_c/GOG Games/Gothic 2 Gold/System/GothicStarter.exe
Initial process has started with pid 180826
Start monitoring process.
skipping config: /home/vip/.config/MangoHud/wine-explorer.conf [ not found ]
skipping config: /usr/bin/MangoHud.conf [ not found ]
skipping config: /home/vip/.config/MangoHud/wine64-preloader.conf [ not found ]
parsing config: /home/vip/.config/MangoHud/MangoHud.conf [ ok ]
skipping config: /home/vip/.config/MangoHud/wine-explorer.conf [ not found ]
skipping config: /usr/bin/MangoHud.conf [ not found ]
skipping config: /home/vip/.config/MangoHud/wine64-preloader.conf [ not found ]
parsing config: /home/vip/.config/MangoHud/MangoHud.conf [ ok ]
info:  Game: Gothic2.exe
info:  DXVK: v1.8.1
info:  Built-in extension providers:
info:    Win32 WSI
info:    OpenVR
info:    OpenXR
info:  OpenVR: could not open registry key, status 2
warn:  OpenVR: Failed to locate module
info:  Enabled instance extensions:
info:    VK_KHR_get_surface_capabilities2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
skipping config: /home/vip/.config/MangoHud/wine-Gothic2.conf [ not found ]
skipping config: /usr/bin/MangoHud.conf [ not found ]
skipping config: /home/vip/.config/MangoHud/wine-preloader.conf [ not found ]
parsing config: /home/vip/.config/MangoHud/MangoHud.conf [ ok ]
info:  NVIDIA GeForce GTX 1650:
info:    Driver: 465.24.2
info:    Vulkan: 1.2.168
info:    Memory Heap[0]: 
info:      Size: 4096 MiB
info:      Flags: 0x1
info:      Memory Type[7]: Property Flags = 0x1
info:    Memory Heap[1]: 
info:      Size: 11575 MiB
info:      Flags: 0x0
info:      Memory Type[0]: Property Flags = 0x0
info:      Memory Type[1]: Property Flags = 0x0
info:      Memory Type[2]: Property Flags = 0x0
info:      Memory Type[3]: Property Flags = 0x0
info:      Memory Type[4]: Property Flags = 0x0
info:      Memory Type[5]: Property Flags = 0x0
info:      Memory Type[6]: Property Flags = 0x0
info:      Memory Type[8]: Property Flags = 0x6
info:      Memory Type[9]: Property Flags = 0xe
info:    Memory Heap[2]: 
info:      Size: 246 MiB
info:      Flags: 0x1
info:      Memory Type[10]: Property Flags = 0x7
info:  DXGI: NvAPI workaround enabled, reporting AMD GPU
info:  Adapter LUID 0: 0:3f7
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
info:  Device properties:
info:    Device name:     : NVIDIA GeForce GTX 1650
info:    Driver version   : 465.24.2
info:  Enabled device extensions:
info:    VK_EXT_4444_formats
info:    VK_EXT_custom_border_color
info:    VK_EXT_depth_clip_enable
info:    VK_EXT_extended_dynamic_state
info:    VK_EXT_host_query_reset
info:    VK_EXT_robustness2
info:    VK_EXT_shader_demote_to_helper_invocation
info:    VK_EXT_shader_viewport_index_layer
info:    VK_EXT_transform_feedback
info:    VK_EXT_vertex_attribute_divisor
info:    VK_KHR_create_renderpass2
info:    VK_KHR_depth_stencil_resolve
info:    VK_KHR_draw_indirect_count
info:    VK_KHR_driver_properties
info:    VK_KHR_image_format_list
info:    VK_KHR_sampler_mirror_clamp_to_edge
info:    VK_KHR_shader_float_controls
info:    VK_KHR_swapchain
info:  Device features:
info:    robustBufferAccess                     : 1
info:    fullDrawIndexUint32                    : 1
info:    imageCubeArray                         : 1
info:    independentBlend                       : 1
info:    geometryShader                         : 1
info:    tessellationShader                     : 1
info:    sampleRateShading                      : 1
info:    dualSrcBlend                           : 1
info:    logicOp                                : 1
info:    multiDrawIndirect                      : 1
info:    drawIndirectFirstInstance              : 1
info:    depthClamp                             : 1
info:    depthBiasClamp                         : 1
info:    fillModeNonSolid                       : 1
info:    depthBounds                            : 1
info:    multiViewport                          : 1
info:    samplerAnisotropy                      : 1
info:    textureCompressionBC                   : 1
info:    occlusionQueryPrecise                  : 1
info:    pipelineStatisticsQuery                : 1
info:    vertexPipelineStoresAndAtomics         : 0
info:    fragmentStoresAndAtomics               : 1
info:    shaderImageGatherExtended              : 1
info:    shaderStorageImageExtendedFormats      : 1
info:    shaderStorageImageReadWithoutFormat    : 1
info:    shaderStorageImageWriteWithoutFormat   : 1
info:    shaderClipDistance                     : 1
info:    shaderCullDistance                     : 1
info:    shaderFloat64                          : 1
info:    shaderInt64                            : 1
info:    variableMultisampleRate                : 1
info:  VK_EXT_4444_formats
info:    formatA4R4G4B4                         : 1
info:    formatA4B4G4R4                         : 1
info:  VK_EXT_custom_border_color
info:    customBorderColors                     : 1
info:    customBorderColorWithoutFormat         : 1
info:  VK_EXT_depth_clip_enable
info:    depthClipEnable                        : 1
info:  VK_EXT_extended_dynamic_state
info:    extendedDynamicState                   : 1
info:  VK_EXT_host_query_reset
info:    hostQueryReset                         : 1
info:  VK_EXT_memory_priority
info:    memoryPriority                         : 0
info:  VK_EXT_robustness2
info:    robustBufferAccess2                    : 1
info:    robustImageAccess2                     : 1
info:    nullDescriptor                         : 1
info:  VK_EXT_shader_demote_to_helper_invocation
info:    shaderDemoteToHelperInvocation         : 1
info:  VK_EXT_transform_feedback
info:    transformFeedback                      : 1
info:    geometryStreams                        : 1
info:  VK_EXT_vertex_attribute_divisor
info:    vertexAttributeInstanceRateDivisor     : 1
info:    vertexAttributeInstanceRateZeroDivisor : 1
info:  Queue families:
info:    Graphics : 0
info:    Transfer : 1
MANGOHUD: Uploading is disabled (permit_upload = 0)
WINE VERSION = wine-6.7

info:  DXVK: Read 91 valid state cache entries
info:  DXVK: Using 7 compiler threads
err:   D3D11RasterizerState: Antialiased lines not supported
err:   D3D11RasterizerState: Antialiased lines not supported
warn:  winevulkan detected, disabling exclusive fullscreen support
info:  Presenter: Actual swap chain properties:
info:    Format:       VK_FORMAT_B8G8R8A8_UNORM
info:    Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR
info:    Buffer size:  1920x1080
info:    Image count:  2
info:    Exclusive FS: 2
MANGOHUD: recreating font image
err:   D3D11RasterizerState: Antialiased lines not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11DXGIDevice::QueryInterface: Unknown interface query
warn:  6543dbb6-1b48-42f5-ab82-e97ec74326f6
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
warn:  D3D11Device::CreateShaderModule: Class linkage not supported
info:  Presenter: Actual swap chain properties:
info:    Format:       VK_FORMAT_B8G8R8A8_UNORM
info:    Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR
info:    Buffer size:  1920x1080
info:    Image count:  2
info:    Exclusive FS: 2
MANGOHUD: recreating font image
err:   D3D11RasterizerState: Antialiased lines not supported
err:   D3D11RasterizerState: Antialiased lines not supported
err:   D3D11RasterizerState: Antialiased lines not supported
err:   D3D11RasterizerState: Antialiased lines not supported
err:   D3D11RasterizerState: Antialiased lines not supported
ERROR(AntTweakBar) >> Exists already
Monitored process exited.
Initial process has exited (return code: 0)
All monitored processes have exited.
Exit with returncode 0
2021-04-28 18:10:44,235: Game still running (state: running)
2021-04-28 18:10:44,236: Stopping Gothic 2 Gold Edition (wine)

It's log from Lutris. One of the last few lines contains AntTweakBar error but it happens on exiting game. How can I help with further debugging? Or do you see something in log?

kirides commented 3 years ago

As it works on windows, the next step would be asking around in the DXVK github issues to see if that's a known issue.

LDS1 commented 3 years ago

@pm4rcin it works fine for me in G2 (using proton + protontricks for configs + steamfix + d3d11 avx build). But in G1 Union prevents mouse cursor from appearing when dx11 ui is displayed, I had to disable union for the configuration.

Seems like some kind of union or lutris config bug

@Kirides I believe it can be closed

pm4rcin commented 2 years ago

If anyone has a problem with that on GOG version I have used bottles with default "Gaming" bottle and enabling virtual desktop fixed the problem for good. :)