gamescope
gamescope copied to clipboard
`drmFormatDesc != nullptr` assertion error on Intel HD 4000
Reproduction steps:
- Login to a tty.
-
gamescope -- <insert_game_here>
System:
fedora:fedora/36/x86_64/silverblue
Version: 36.20220528.0 (2022-05-28T00:41:48Z)
BaseCommit: 584a197ce8e7f4feb86659cd5dd5edb8be80c29b8f4c0330d0d6a3ffdeed5033
GPGSignature: Valid signature by 53DED2CB922D8B8D9E63FD18999F7CBF38AB71F4
LayeredPackages: broadcom-wl gamescope gnome-tweaks gstreamer1-plugin-openh264 steam-devices
LocalPackages: rpmfusion-nonfree-release-36-1.noarch
Log:
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
wlserver: [libseat] [libseat/backend/seatd.c:64] Could not connect to socket /run/seatd.sock: No such file or directory
wlserver: [libseat] [libseat/libseat.c:76] Backend 'seatd' failed to open seat, skipping
wlserver: [libseat] [libseat/libseat.c:73] Seat opened with backend 'logind'
wlserver: [backend/session/session.c:110] Successfully loaded libseat session
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
vulkan: selecting physical device 'Intel(R) HD Graphics 4000 (IVB GT2)'
vulkan: physical device supports DRM format modifiers
drm: opening DRM node '/dev/dri/card1'
drm: Connectors:
drm: LVDS-1 (connected)
drm: VGA-1 (disconnected)
drm: HDMI-A-1 (disconnected)
drm: DP-1 (disconnected)
drm: HDMI-A-2 (disconnected)
drm: HDMI-A-3 (disconnected)
drm: DP-2 (disconnected)
drm: DP-3 (connected)
drm: selecting connector DP-3
drm: selecting mode 1440x900@60Hz
vulkan: supported DRM formats for sampling usage:
vulkan: 0x34325241
vulkan: 0x34325258
gamescope: ../src/rendervulkan.cpp:463: bool CVulkanTexture::BInit(uint32_t, uint32_t, uint32_t, createFlags, wlr_dmabuf_attributes*): Assertion `drmFormatDesc != nullptr' failed.
I specifically did
gamescope -O DP-3 -- <game>
here, not specifying any output also results to same assertion error.
No error happens when running in nested mode.
Same here for "Intel(R) HD Graphics 5000 (HSW GT3)"
OS is HoloISO (arch): LSB Version: 1.4 Distributor ID: SteamOS Description: SteamOS Holo Release: rolling Codename: Holo
Possibly related to #356, does INTEL_DEBUG=norbc
fix it? See this comment for details.
Unfortunately that did not change anything.
Also getting this with integrating graphics on a i7-10750H
FYI applying this patch on Mesa fixed it for me on i7-1165G7.
FYI applying this patch on Mesa fixed it for me on i7-1165G7.
Can confirm this works, so perhaps this discussion should be moved upstream? Is this patch part of a PR to mesa perhaps?
Can confirm this works, so perhaps this discussion should be moved upstream? Is this patch part of a PR to mesa perhaps?
It's part of this MR. Sorry, I should have included the MR link in the last message.
Same here for "Intel(R) HD Graphics 5000 (HSW GT3)"
OS is HoloISO (arch): LSB Version: 1.4 Distributor ID: SteamOS Description: SteamOS Holo Release: rolling Codename: Holo
did you solve this on Holoiso yet?
https://github.com/theVakhovskeIsTaken/mesa-22.1.7/commit/a78cf1ae250689c3419958c3615403597dd89e8c
This patch on MESA 22.1.7, backported from upper 22.3 changes works properly, and verified to be fully functional
Tested on SteamOS 3.4 (jupiter-main branch, Steam Deck beta channel changes) and HoloISO
Will this be officially ever fixed?
It won't be fixed here, there is an upstream patch (in mesa) that should resolve the issue mentioned already: https://github.com/ValveSoftware/gamescope/issues/508#issuecomment-1202685355
it has been merged, so I guess we just have to wait for it to show up in a stable release. For now I have just been maintaining a package with the patch applied on my NixOS system and its worked fine for months now.
It won't be fixed here, there is an upstream patch (in mesa) that should resolve the issue mentioned already: https://github.com/ValveSoftware/gamescope/issues/508#issuecomment-1202685355
it has been merged, so I guess we just have to wait for it to show up in a stable release. For now I have just been maintaining a package with the patch applied on my NixOS system and its worked fine for months now.
Haswell has issues even when mesa is patched. The driver support for haswell is not there for the vulkan extensions gamescope requires. The earliest Intel I've seen work has been the 5000 series and newer.
Wasn't aware of that. I would check the intel driver mailing list upstream.
Can confirm this works, so perhaps this discussion should be moved upstream? Is this patch part of a PR to mesa perhaps?
It's part of this MR. Sorry, I should have included the MR link in the last message.
I am having the same issue with the 8550U processor.
How do I apply this patch? Do I just clone the commit and build, install? i suppose I wont get the latest version then.
Can confirm this works, so perhaps this discussion should be moved upstream? Is this patch part of a PR to mesa perhaps?
It's part of this MR. Sorry, I should have included the MR link in the last message.
I am having the same issue with the 8550U processor.
How do I apply this patch? Do I just clone the commit and build, install? i suppose I wont get the latest version then.
I got it fixed, Its working on the Intel UHD 620 but its pretty slow.
Thanks to https://github.com/ValveSoftware/gamescope/issues/1029 for pointing out the solution.
i have written a dockerfile to build it, Haven't tested the docker build's output. but I used the same commands on Nobara OS.
https://github.com/austonpramodh/gamescope