Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drmFormatDesc != nullptr assertion error on Intel HD 4000 #508

Open
X9VoiD opened this issue May 28, 2022 · 15 comments
Open

drmFormatDesc != nullptr assertion error on Intel HD 4000 #508

X9VoiD opened this issue May 28, 2022 · 15 comments

Comments

@X9VoiD
Copy link

X9VoiD commented May 28, 2022

Reproduction steps:

  1. Login to a tty.
  2. 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.

@jabba80
Copy link

jabba80 commented May 31, 2022

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

@bniels707
Copy link

Possibly related to #356, does INTEL_DEBUG=norbc fix it? See this comment for details.

@X9VoiD
Copy link
Author

X9VoiD commented Jun 3, 2022

Unfortunately that did not change anything.

@nrdxp
Copy link

nrdxp commented Aug 1, 2022

Also getting this with integrating graphics on a i7-10750H

@zhaofengli
Copy link

FYI applying this patch on Mesa fixed it for me on i7-1165G7.

@nrdxp
Copy link

nrdxp commented Aug 2, 2022

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?

@zhaofengli
Copy link

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.

@tjxme
Copy link

tjxme commented Sep 7, 2022

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?

@theVakhovskeIsTaken
Copy link

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
image
Tested on SteamOS 3.4 (jupiter-main branch, Steam Deck beta channel changes) and HoloISO

@DocMAX
Copy link

DocMAX commented May 2, 2023

Will this be officially ever fixed?

@nrdxp
Copy link

nrdxp commented May 2, 2023

It won't be fixed here, there is an upstream patch (in mesa) that should resolve the issue mentioned already: #508 (comment)

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.

@ruineka
Copy link

ruineka commented May 2, 2023

It won't be fixed here, there is an upstream patch (in mesa) that should resolve the issue mentioned already: #508 (comment)

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.

@nrdxp
Copy link

nrdxp commented May 2, 2023

Wasn't aware of that. I would check the intel driver mailing list upstream.

@austonpramodh
Copy link

austonpramodh commented Feb 3, 2024

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.

@austonpramodh
Copy link

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 #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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants