[BUG] Steam Frame: vrlink encoder fails on Intel Arc (Meteor Lake) with "Failed to get host visible + host coherent memory type"

未关闭
#1,076 4 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
c, linux
领域
backend, desktop

调研方向

Start with the Vulkan Video encoder setup path in the vrlink driver and trace the memory type selection that emits “Failed to get host visible + host coherent memory type.” The report identifies the failing setup stage but does not name the resource or source file, so first reproduce with the reported Intel Arc and Mesa ANV configuration and capture which allocation fails. Done means the encoder starts, or unsupported hardware produces a clear SteamVR message.

由索引模型根据 Issue 内容生成。

描述

Describe the bug
The Steam Frame connects to SteamVR through the wireless adapter, but SteamVR on the PC keeps showing "please plug in VR headset". The vrlink driver cannot set up the Vulkan Video encoder on the Intel Arc iGPU. It drops the connection a few seconds after the headset connects.

There are two failures, in this order:

  1. With the default Mesa ANV driver, vrlink rejects the GPU:

    [HMDVulkan] Checking device 'Intel(R) Arc(tm) Graphics (MTL)' with driver 'Intel open-source Mesa driver'
    [HMDVulkan] Rejecting driver 'Intel open-source Mesa driver' as it does not seem to support Vulkan Video
    [HMDVulkan] Failed to create device... Exiting...
    

    ANV exposes Vulkan Video encode on this GPU only when ANV_DEBUG=video-encode is set. Without it, the device lists no VK_KHR_video_* extensions.

  2. With ANV_DEBUG=video-encode %command% in the SteamVR launch options, the device and the video session are created, but the encoder setup fails:

    [HMDVulkan] Using device 'Intel(R) Arc(tm) Graphics (MTL)' with driver 'Intel open-source Mesa driver'
    [HMDVulkan]  Created VkDevice with Compute Queue Family: 0 and Video Encode Queue Family: 1.
    [VideoVulkan] Is 10 bit SUPPORTED? Yes
    [VideoVulkan] Is Ultra Low Latency SUPPORTED? Yes
    [VideoVulkan] Created vkCreateVideoSessionKHR! chosen m_MaxSVLVideoExtent: 3200x4096
    [VideoVulkan] vkGetPhysicalDeviceVideoFormatPropertiesKHR: 1 properties for VK_IMAGE_USAGE_VIDEO_ENCODE_DPB_BIT_KHR:
    [VideoVulkan]    format: 1000156013
    [VideoVulkan]    imageUsageFlags: 32768
    [VideoVulkan] Failed to get host visible + host coherent memory type
    [HMDVulkan] Failed to setup encoder... Exiting...
    Connection active at 20.308306
    Connection inactive at 29.344838
    

The device does have HOST_VISIBLE | HOST_COHERENT memory types (with ANV_DEBUG=video-encode set):

Index Heap Flags
0 0 DEVICE_LOCAL, HOST_VISIBLE, HOST_COHERENT
1 0 DEVICE_LOCAL, HOST_VISIBLE, HOST_CACHED
2 0 DEVICE_LOCAL, PROTECTED
3 0 DEVICE_LOCAL, HOST_VISIBLE, HOST_COHERENT
4 0 DEVICE_LOCAL, HOST_VISIBLE, HOST_CACHED

So the failure is probably that the memoryTypeBits of one encoder resource exclude types 0 and 3. I could not find out which resource from the log.

To Reproduce

  1. Use a laptop with an Intel Core Ultra 9 185H (Arc Graphics, Meteor Lake) and no discrete GPU.
  2. Install mesa-vulkan-drivers-freeworld (RPM Fusion) in place of the Fedora mesa-vulkan-drivers.
  3. Set SteamVR launch options to ANV_DEBUG=video-encode %command%.
  4. Connect the Steam Frame wireless adapter and start SteamVR.
  5. Stream from the Frame to the PC.
  6. See "Failed to get host visible + host coherent memory type" in driver_vrlink.txt. SteamVR shows "please plug in VR headset".

Expected behavior
The vrlink encoder starts on the Intel Arc iGPU and the Frame shows SteamVR. Or, if Intel iGPUs are not supported, SteamVR shows a clear message about it, not "please plug in VR headset".

System Information:

  • Steam client version: 1782866176
  • SteamVR version: beta branch, build 1794604515 (app build 26655409). The same error occurs on the stable branch.
  • vrlink version: 0.4.5 (20261022.6150929)
  • Distribution: Fedora Linux 45 (Workstation Edition), kernel 7.3.3-300.fc45.x86_64
  • GPU: Intel Arc Graphics (Meteor Lake-P, 8086:7d55), i915 kernel driver
  • Vulkan driver: Mesa 26.2.6 ANV (mesa-vulkan-drivers-freeworld 26.2.6-1.fc45 from RPM Fusion)
  • GPU firmware: GuC 70.53.0, HuC 8.5.4 ("authenticated for all workloads"), GSC 102.1.15.1926. No i915 errors in the kernel log.
  • Steam runtime diagnostics: Attached in a comment below.
  • Steam and SteamVR logs: Attached in a comment below.
  • Minidumps: none. Nothing crashes.

Additional context

  • The network link works. The log shows Connection active and the HMD static props (Model Number: Deckard MP) are received before the encoder fails. The firewall allows UDP 1025-65535.
  • VA-API encode works on this GPU with intel-media-driver (iHD 26.3.5): vainfo lists H.264, HEVC and AV1 VAEntrypointEncSlice.

AI disclosure
I used an AI assistant (Claude Code) to read the logs, check the Vulkan memory types and extensions on my PC, and draft this report. I checked the report and ran each step myself. The log lines are copied from my driver_vrlink.txt. The cause in the first section ("probably") is not proven.

主要语言
Shell
星标
1.2k
派生
58
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ValveSoftware/SteamVR-for-Linux 的其他 Issue

查看 ValveSoftware/SteamVR-for-Linux 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。