ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
782 stars 69 forks source link

CSGO doesn't run on macOS with -vulkan launch option. #2918

Closed tbogdan closed 2 years ago

tbogdan commented 2 years ago

Your system information

Please describe your issue in as much detail as possible:

Hello,

I saw that csgo implemented experimental Vulkan support (https://blog.counter-strike.net/index.php/2021/12/36627/), however, when I try to use it on Mac, by starting with -vulkan, I get this error:

Error
Failed to create SDL window: Vulkan support is either not configured in SDL or not available in the current SDL video driver (cocoa) or platform

Other details:

MacBook Pro (16-inch, 2021)
macOS Monterey version 12.1 (21C52)
Apple M1 Pro

Steps for reproducing this issue:

  1. Using a MacBook Pro (16-inch, 2021) (I expect that this will happens on older Macs, Intel, also)
  2. Add in LAUNCH OPTIONS: -vulkan
  3. Run the game.

I think this issue is coming from wrong compiler options/configuration, judging from similar errors found by google search based on the error message.

Also, now it's using Rosseta 2 to translate from x86_64 to arm64 (new Apple M1 chip arch).

Do you have plans to support M1 chips native?

kisak-valve commented 2 years ago

Hello @tbogdan, MacOS's video drivers do not support Vulkan in any way.

Any individual application that claims support for Vulkan on MacOS have integrated MoltenVK (or a similar Vulkan to Metal translation layer) into the application so that all Vulkan API usage is internal and converted to Metal before it talks to the video driver. At this point, CS:GO does not have this and adding that would make this issue report a feature request to add MoltenVK.

Noted at https://github.com/ValveSoftware/csgo-osx-linux#feature-requests, feature requests are not being tracked in this issue tracker. Feel free to start a thread on the community forums.

tbogdan commented 2 years ago

Thank you for the clarification.