HansKristian-Work / vkd3d-proton

Fork of VKD3D. Development branches for Proton's Direct3D 12 implementation.
GNU Lesser General Public License v2.1
1.91k stars 199 forks source link

Blank screen when trying to launch the sample app from Unreal engine 5.1 (and some other dx12 apps) #1631

Closed adonisd closed 1 year ago

adonisd commented 1 year ago

While trying to run wine with vdk3d some dx12 are not starting at all and seem to be hanging.

Software information

Using lutris-GE-Proton8-10-x86_64 (tried with wine-staging as well) vkd3d-proton

System information

Log files

VKD3D log: https://pastebin.com/XLFsu7wF

my environment variabes: https://pastebin.com/swsnRGP2

At first I thought this is the same issue with d3d12core and 2.9 update, added it to the overrides but no dice. Also tried 2.8 am getting the same behavior.

I also tried disabling the extensions KHR_present_wait and KHR_present_id, however exporting or setting them like the example below seems to be doing nothing :shrug:

VKD3D_DISABLE_EXTENSIONS=(KHR_present_wait KHR_present_id)  wine  ./build.exe

I also tried like this:

VKD3D_DISABLE_EXTENSIONS=KHR_present_wait,KHR_present_id  wine  ./build.exe

not sure how to progress to be honest. When I tried with steam-runtime and proton 8 (not experimental), the app launched fine.

adonisd commented 1 year ago

am adding logs here since pastebin seems to be having a day right now

esync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
13478.897:00dc:00e0:info:vkd3d-proton:vkd3d_instance_apply_application_workarounds: Program name: "J_ShiseidoBC-Win64-Shipping.exe" (hash: f22470b5473a9921)
13478.897:00dc:00e0:info:vkd3d-proton:vkd3d_instance_apply_application_workarounds: Detected game J_ShiseidoBC-Win64-Shipping.exe, adding shader quirks for specific shaders.
13478.897:00dc:00e0:info:vkd3d-proton:vkd3d_instance_deduce_config_flags_from_environment: shader_cache is used, global_pipeline_cache is enforced.
13478.897:00dc:00e0:info:vkd3d-proton:vkd3d_config_flags_init_once: VKD3D_CONFIG=''.
13478.897:00dc:00e0:info:vkd3d-proton:vkd3d_get_vk_version: vkd3d-proton - applicationVersion: 2.9.0.
13478.897:00dc:00e0:info:vkd3d-proton:vkd3d_instance_init: vkd3d-proton - build: c962c4758eace2.
13479.739:00dc:00e0:info:vkd3d-proton:vkd3d_memory_info_upload_hvv_memory_properties: Topology: Device heaps are split. Assuming small BAR situation. Using HOST_COHERENT only.
13479.739:00dc:00e0:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Device supports VK_EXT_mutable_descriptor_type.
13479.739:00dc:00e0:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
13479.739:00dc:00e0:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
13479.739:00dc:00e0:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
13479.946:00dc:00e0:info:vkd3d-proton:d3d12_device_caps_init_shader_model: Enabling support for SM 6.6.
13479.946:00dc:00e0:fixme:vkd3d-proton:d3d12_device_caps_init_feature_options1: TotalLaneCount = 2560, may be inaccurate.
13479.946:00dc:00e0:info:vkd3d-proton:vkd3d_pipeline_library_init_disk_cache: Remapping VKD3D_SHADER_CACHE to: vkd3d-proton.cache.
13479.946:00dc:00e0:info:vkd3d-proton:vkd3d_pipeline_library_init_disk_cache: Attempting to load disk cache from: vkd3d-proton.cache.
13479.961:00dc:0160:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Performing async setup of stream archive ...
13479.961:00dc:0160:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_merge: No write cache exists. No need to merge any disk caches.
13479.961:00dc:0160:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_initial_setup: Merging pipeline libraries took 0.426 ms.
13479.961:00dc:0160:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_initial_setup: Failed to map read-only cache: vkd3d-proton.cache.
13479.961:00dc:0160:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Done performing async setup of stream archive.
13480.751:00dc:00e0:info:vkd3d-proton:vkd3d_get_vk_version: vkd3d-proton - applicationVersion: 2.9.0.
13480.751:00dc:00e0:info:vkd3d-proton:vkd3d_instance_init: vkd3d-proton - build: c962c4758eace2.
13481.393:00dc:00e0:info:vkd3d-proton:vkd3d_memory_info_upload_hvv_memory_properties: Topology: Device heaps are split. Assuming small BAR situation. Using HOST_COHERENT only.
13481.404:00dc:00e0:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Device supports VK_EXT_mutable_descriptor_type.
13481.404:00dc:00e0:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
13481.404:00dc:00e0:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
13481.404:00dc:00e0:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
13481.584:00dc:00e0:info:vkd3d-proton:d3d12_device_caps_init_shader_model: Enabling support for SM 6.6.
13481.584:00dc:00e0:fixme:vkd3d-proton:d3d12_device_caps_init_feature_options1: TotalLaneCount = 2560, may be inaccurate.
13481.584:00dc:00e0:info:vkd3d-proton:vkd3d_pipeline_library_init_disk_cache: Remapping VKD3D_SHADER_CACHE to: vkd3d-proton.cache.
13481.584:00dc:00e0:info:vkd3d-proton:vkd3d_pipeline_library_init_disk_cache: Attempting to load disk cache from: vkd3d-proton.cache.
13481.597:00dc:0194:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Performing async setup of stream archive ...
13481.597:00dc:0194:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_merge: No write cache exists. No need to merge any disk caches.
13481.597:00dc:0194:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_initial_setup: Merging pipeline libraries took 0.707 ms.
13481.597:00dc:0194:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_initial_setup: Failed to map read-only cache: vkd3d-proton.cache.
13481.597:00dc:0194:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Done performing async setup of stream archive.
13481.714:00dc:00e0:fixme:vkd3d-proton:d3d12_device_get_format_support: Unhandled format 0x42.
13481.714:00dc:00e0:fixme:vkd3d-proton:d3d12_device_get_format_support: Unhandled format 0x42.
13481.714:00dc:00e0:fixme:vkd3d-proton:d3d12_device_get_format_support: Unhandled format 0x42.
13481.714:00dc:00e0:fixme:vkd3d-proton:d3d12_device_get_format_support: Unhandled format 0x42.
13481.714:00dc:00e0:fixme:vkd3d-proton:d3d12_device_get_format_support: Unhandled format 0x42.
13481.714:00dc:00e0:fixme:vkd3d-proton:d3d12_device_get_format_support: Unhandled format 0x67.
13481.714:00dc:00e0:fixme:vkd3d-proton:d3d12_device_get_format_support: Unhandled format 0x67.
13481.714:00dc:00e0:fixme:vkd3d-proton:d3d12_device_get_format_support: Unhandled format 0x67.
13481.714:00dc:00e0:fixme:vkd3d-proton:d3d12_device_get_format_support: Unhandled format 0x67.
13481.714:00dc:00e0:fixme:vkd3d-proton:d3d12_device_get_format_support: Unhandled format 0x67.
13481.714:00dc:00e0:fixme:vkd3d-proton:d3d12_device_get_format_support: Unhandled format 0x68.
13481.714:00dc:00e0:fixme:vkd3d-proton:d3d12_device_get_format_support: Unhandled format 0x68.
13481.714:00dc:00e0:fixme:vkd3d-proton:d3d12_device_get_format_support: Unhandled format 0x68.
13481.714:00dc:00e0:fixme:vkd3d-proton:d3d12_device_get_format_support: Unhandled format 0x68.
13481.714:00dc:00e0:fixme:vkd3d-proton:d3d12_device_get_format_support: Unhandled format 0x68.
13482.213:00dc:00e0:info:vkd3d-proton:dxgi_vk_swap_chain_init: Creating swapchain (1920 x 1080), BufferCount = 3.
13482.213:00dc:00e0:info:vkd3d-proton:dxgi_vk_swap_chain_init_sync_objects: Ensure maximum latency of 3 frames with KHR_present_wait.
13482.229:00dc:00e0:info:vkd3d-proton:dxgi_vk_swap_chain_init_waiter_thread: Enabling present wait path for frame latency.
13482.388:00dc:01a4:info:vkd3d-proton:dxgi_vk_swap_chain_recreate_swapchain_in_present_task: Got 3 swapchain images.
adonisd commented 1 year ago

I got it to work on lutris so whatever am doing wrong is on me.