protonscr

VK_ERROR_INITIALIZATION_FAILED errors on Crysis 64-bit on DirectX 10

dxvkclosed
doitsujin/dxvk#2664 · opened 2022-06-02 by kokroo · updated 2022-07-02 · 2 comments · github
Kkokroo 2022-06-02 github

Software information

Crysis 64-bit (DirectX 10 mode), GOG.com version

System information

  • GPU: M1 Pro GPU 16 Core
  • Driver: 0.2.1911
  • Wine version: Packed with CrossOver 21.2.0
  • DXVK version: v1.7-14-gef993b2f

I was trying to run Crysis on my Macbook M1 Pro 14 inch through CrossOver 21.2.0 (the latest version).
I am running the GOG.com version of Crysis, with the 64-bit executable forced to run through DX10 so that it utilizes DXVK.

The game runs at 95 FPS, at 4K resolution, and highest possible settings. I can play and move around for approximately 20 seconds before it crashes with the following error.

[mvk-info] Using MTLFence for Vulkan semaphores.
    [mvk-info] Created VkDevice to run on GPU Apple M1 Pro with the following 11 Vulkan extensions enabled:
            VK_KHR_create_renderpass2 v1
            VK_KHR_depth_stencil_resolve v1
            VK_KHR_driver_properties v1
            VK_KHR_image_format_list v1
            VK_KHR_sampler_mirror_clamp_to_edge v3
            VK_KHR_swapchain v70
            VK_EXT_host_query_reset v1
            VK_EXT_robustness2 v1
            VK_EXT_shader_stencil_export v1
            VK_EXT_shader_viewport_index_layer v1
            VK_EXT_vertex_attribute_divisor v3
    [mvk-info] MoltenVK version 1.1.3, supporting Vulkan version 1.1.170.
        The following 71 Vulkan extensions are supported:
            VK_KHR_16bit_storage v1
            VK_KHR_8bit_storage v1
            VK_KHR_bind_memory2 v1
            VK_KHR_create_renderpass2 v1
            VK_KHR_dedicated_allocation v3
            VK_KHR_depth_stencil_resolve v1
            VK_KHR_descriptor_update_template v1
            VK_KHR_device_group v4
            VK_KHR_device_group_creation v1
            VK_KHR_driver_properties v1
            VK_KHR_external_fence v1
            VK_KHR_external_fence_capabilities v1
            VK_KHR_external_memory v1
            VK_KHR_external_memory_capabilities v1
            VK_KHR_external_semaphore v1
            VK_KHR_external_semaphore_capabilities v1
            VK_KHR_get_memory_requirements2 v1
            VK_KHR_get_physical_device_properties2 v2
            VK_KHR_get_surface_capabilities2 v1
            VK_KHR_image_format_list v1
            VK_KHR_maintenance1 v2
            VK_KHR_maintenance2 v1
            VK_KHR_maintenance3 v1
            VK_KHR_multiview v1
            VK_KHR_portability_subset v1
            VK_KHR_push_descriptor v2
            VK_KHR_relaxed_block_layout v1
            VK_KHR_sampler_mirror_clamp_to_edge v3
            VK_KHR_sampler_ycbcr_conversion v14
            VK_KHR_shader_draw_parameters v1
            VK_KHR_shader_float16_int8 v1
            VK_KHR_shader_subgroup_extended_types v1
            VK_KHR_storage_buffer_storage_class v1
            VK_KHR_surface v25
            VK_KHR_swapchain v70
            VK_KHR_swapchain_mutable_format v1
            VK_KHR_timeline_semaphore v2
            VK_KHR_uniform_buffer_standard_layout v1
            VK_KHR_variable_pointers v1
            VK_EXT_debug_marker v4
            VK_EXT_debug_report v9
            VK_EXT_debug_utils v2
            VK_EXT_descriptor_indexing v2
            VK_EXT_fragment_shader_interlock v1
            VK_EXT_hdr_metadata v2
            VK_EXT_host_query_reset v1
            VK_EXT_image_robustness v1
            VK_EXT_inline_uniform_block v1
            VK_EXT_memory_budget v1
            VK_EXT_metal_surface v1
            VK_EXT_post_depth_coverage v1
            VK_EXT_private_data v1
            VK_EXT_robustness2 v1
            VK_EXT_scalar_block_layout v1
            VK_EXT_shader_stencil_export v1
            VK_EXT_shader_viewport_index_layer v1
            VK_EXT_subgroup_size_control v2
            VK_EXT_swapchain_colorspace v4
            VK_EXT_texel_buffer_alignment v1
            VK_EXT_texture_compression_astc_hdr v1
            VK_EXT_vertex_attribute_divisor v3
            VK_AMD_gpu_shader_half_float v2
            VK_AMD_negative_viewport_height v1
            VK_AMD_shader_image_load_store_lod v1
            VK_AMD_shader_trinary_minmax v1
            VK_IMG_format_pvrtc v1
            VK_INTEL_shader_integer_functions2 v1
            VK_GOOGLE_display_timing v1
            VK_MVK_macos_surface v3
            VK_MVK_moltenvk v31
            VK_NV_glsl_shader v1
    [mvk-info] GPU device:
            model: Apple M1 Pro
            type: Integrated
            vendorID: 0x106b
            deviceID: 0xa120
            pipelineCacheUUID: 00002777-0400-03ED-A1A3-C2482C031CDB
        supports the following Metal Versions, GPU's and Feature Sets:
            Metal Shading Language 2.2
            GPU Family Apple 5
            GPU Family Apple 4
            GPU Family Apple 3
            GPU Family Apple 2
            GPU Family Apple 1
            GPU Family Mac 2
            GPU Family Mac 1
            GPU Family Common 3
            GPU Family Common 2
            GPU Family Common 1
            macOS GPU Family 2 v1
            macOS GPU Family 1 v4
            macOS GPU Family 1 v3
            macOS GPU Family 1 v2
            macOS GPU Family 1 v1
    [mvk-info] Created VkInstance for Vulkan version 1.1.0, as requested by app, with the following 3 Vulkan extensions enabled:
            VK_KHR_get_surface_capabilities2 v1
            VK_KHR_surface v25
            VK_EXT_metal_surface v1
    [mvk-info] Using MTLFence for Vulkan semaphores.
    [mvk-info] Created VkDevice to run on GPU Apple M1 Pro with the following 11 Vulkan extensions enabled:
            VK_KHR_create_renderpass2 v1
            VK_KHR_depth_stencil_resolve v1
            VK_KHR_driver_properties v1
            VK_KHR_image_format_list v1
            VK_KHR_sampler_mirror_clamp_to_edge v3
            VK_KHR_swapchain v70
            VK_EXT_host_query_reset v1
            VK_EXT_robustness2 v1
            VK_EXT_shader_stencil_export v1
            VK_EXT_shader_viewport_index_layer v1
            VK_EXT_vertex_attribute_divisor v3
    [mvk-info] Created 2 swapchain images with initial size (1280, 800).
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn5),user(locn6)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn5),user(locn6)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn5),user(locn6)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-info] Created 3 swapchain images with initial size (1280, 800).
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 2):
    Vertex attribute v0(0) of type int4 cannot be read using MTLAttributeFormatFloat3.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 2):
    Vertex attribute v0(0) of type int4 cannot be read using MTLAttributeFormatFloat3.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn2)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn2)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn2)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):

    Fragment input(s) `user(locn2)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn6)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn6)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn6)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn6)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn5),user(locn6),user(locn1)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn6)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn5),user(locn6),user(locn7)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn5),user(locn6),user(locn1)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn5),user(locn6),user(locn7),user(locn1)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn1)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn5),user(locn6),user(locn7),user(locn1)` mismatching vertex shader output type(s) or not written by vertex shader.
    [mvk-error] VK_ERROR_INITIALIZATION_FAILED: Render pipeline compile failed (Error code 3):
    Fragment input(s) `user(locn1)` mismatching vertex shader output type(s) or not written by vertex shader.

I wonder what the problem could be since the game always runs perfectly for 20 seconds. Lowering the resolution or graphical details does not change the outcome.

Thanks for looking into this, you guys are doing an awesome job!

KK0bin maintainer 2022-06-02 github

Mac OS is not a supported platform for DXVK and the game works fine on Linux.

Ccdavis5e 2022-06-02 github

You won't get any Mac support here. You should report this over at MoltenVK.

Nothing extracted yet.