gamescope icon indicating copy to clipboard operation
gamescope copied to clipboard

Forcing Intel GPU?

Open 00unkn0wn00 opened this issue 2 years ago • 5 comments

Hello, I Wanted To Compare My inbuilt Intel GPU With My Nvidia GPU But I Dont Think Theres A Way To Run GameScope On Intel GPU.

00unkn0wn00 avatar Apr 01 '24 19:04 00unkn0wn00

@unkn0wncvm1 Run with: gamescope --prefer-vk-device $(lspci -nn | grep -iE 'vga|3d' | tr -d '][' | tr ' ' $'\n' | grep 8086) … To run gamescope on your intel igpu

sharkautarch avatar Apr 03 '24 16:04 sharkautarch

@unkn0wncvm1 Run with: gamescope --prefer-vk-device $(lspci -nn | grep -iE 'vga|3d' | tr -d '][' | tr ' ' $'\n' | grep 8086) … To run gamescope on your intel igpu

got an error gamescope -O -e --prefer-vk-dev■' terminated by signal SIGABRT (Abort)_t, uint32_t, uint32_t, uint32_t, createFlags, wlr_dmabuf_attributes*, uint32_t, uint32_t, CVulkanTexture*): Assertion !modifiers.empty()' failed.`

00unkn0wn00 avatar Apr 05 '24 21:04 00unkn0wn00

i get this error as well, only when running gamescope on drm (running nested has visual glitches and lag)

log:
vulkan: selecting physical device 'Intel(R) UHD Graphics 630 (CFL GT2)': queue family 0 (general queue family 0)
vulkan: physical device supports DRM format modifiers
wlserver: [backend/headless/backend.c:67] Creating headless backend
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:109] Successfully loaded libseat session
drm: opening DRM node '/dev/dri/card1'
drm: Connector eDP-1 -> SHP - 
drm: [colorimetry]: EDID with colorimetry detected. Using it
drm: [colorimetry]: r 0.663086 0.325195
drm: [colorimetry]: g 0.208984 0.736328
drm: [colorimetry]: b 0.144531 0.046875
drm: [colorimetry]: w 0.317383 0.324219
drm: Connector eDP-1 -> SHP - 
drm: [colorimetry]: EDID with colorimetry detected. Using it
drm: [colorimetry]: r 0.663086 0.325195
drm: [colorimetry]: g 0.208984 0.736328
drm: [colorimetry]: b 0.144531 0.046875
drm: [colorimetry]: w 0.317383 0.324219
drm: Connectors:
drm:   DP-2 (disconnected)
drm:   DP-1 (disconnected)
drm:   DP-3 (disconnected)
drm:   eDP-1 (connected)
drm: selecting connector eDP-1
drm: selecting mode 3840x2160@60Hz
vulkan: supported DRM formats for sampling usage:
vulkan:   AR24 (0x34325241)
vulkan:   XR24 (0x34325258)
vulkan:   AB24 (0x34324241)
vulkan:   XB24 (0x34324258)
vulkan:   RG16 (0x36314752)
vulkan:   NV12 (0x3231564E)
vulkan:   XB4H (0x48344258)
vulkan:   XB30 (0x30334258)
vulkan:   XR30 (0x30335258)
gamescope: ../src/rendervulkan.cpp:1966: bool CVulkanTexture::BInit(uint32_t, uint32_t, uint32_t, uint32_t, createFlags, wlr_dmabuf_attributes*, uint32_t, uint32_t, CVulkanTexture*): Assertion `!modifiers.empty()' failed.
Aborted (core dumped)

praschke avatar Apr 06 '24 08:04 praschke

See #1215 and this commit.

The modifiers empty assertion is being worked on, but after that there are still some issues with Intel + embedded mode.

Erfboom avatar Apr 08 '24 05:04 Erfboom

i get this error as well, only when running gamescope on drm (running nested has visual glitches and lag) log:

As for your issues with nested gamescope:

  • in terms of visual glitches, how severe is it for you? Is it complete color corruption? What version of vulkan-intel/mesa are you using currently?
  • As for the lag you were experiencing, try building gamescope from my forked branch: test_w_no_lut: https://github.com/sharkautarch/gamescope/tree/test_w_no_lut It has a collection of tweaks/edits that should reduce lag/stuttering on igpus

To build and install my forked branch of gamescope:

git clone https://github.com/sharkautarch/gamescope
cd gamescope
git checkout test_w_no_lut
git submodule update --init --recursive
CXX=g++ CC=gcc meson setup --wipe build --buildtype=release -Denable_openvr_support=false -Db_ndebug=true -Db_lto_threads=$(nproc) -Db_lto=true -Db_lto_mode=default -Dc_args="-g1 -Wno-error=unused-but-set-variable -Wno-error=unused-variable -fipa-pta -fdelete-dead-exceptions -march=native -Wno-error=stringop-overflow -fno-omit-frame-pointer" -Dc_link_args="-g1 -Wno-error=unused-but-set-variable -Wno-error=unused-variable -fdelete-dead-exceptions -fipa-pta -march=native -Wl,--strip-discarded,--gc-sections,--relax,-z,start-stop-gc,-z,pack-relative-relocs,-O1 -Wno-error=stringop-overflow -fno-omit-frame-pointer" -Dcpp_args="-g1 -fnothrow-opt -fno-threadsafe-statics -fimplicit-constexpr -fno-enforce-eh-specs -fno-check-new -Wno-error=unused-but-set-variable -Wno-error=unused-variable -fdelete-dead-exceptions -fipa-pta -march=native -fno-omit-frame-pointer" -Dcpp_link_args="-g1 -fno-threadsafe-statics -fimplicit-constexpr -fnothrow-opt -fno-check-new -fno-enforce-eh-specs -Wno-error=unused-but-set-variable -Wno-error=unused-variable -fdelete-dead-exceptions -march=native -fipa-pta -Wl,--strip-discarded,--gc-sections,--relax,-z,start-stop-gc,-z,pack-relative-relocs,-O1 -fno-omit-frame-pointer"

meson install -C build

sharkautarch avatar Apr 08 '24 14:04 sharkautarch

Replying to https://github.com/ValveSoftware/gamescope/issues/1221#issuecomment-2042873559

trying with that just gives a sigsegv, logs:

No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau.
vulkan: selecting physical device 'Intel(R) UHD Graphics (CML GT2)': queue family 0 (general queue family 0)
vulkan: physical device supports DRM format modifiers
wlserver: [backend/headless/backend.c:67] Creating headless backend
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:109] Successfully loaded libseat session
drm: opening DRM node '/dev/dri/card0'
drm: Connector eDP-1 -> BOE - 
drm: [colorimetry]: EDID with colorimetry detected. Using it
drm: [colorimetry]: r 0.584961 0.363281
drm: [colorimetry]: g 0.349609 0.579102
drm: [colorimetry]: b 0.162109 0.142578
drm: [colorimetry]: w 0.312500 0.328125
drm: Connector eDP-1 -> BOE - 
drm: [colorimetry]: EDID with colorimetry detected. Using it
drm: [colorimetry]: r 0.584961 0.363281
drm: [colorimetry]: g 0.349609 0.579102
drm: [colorimetry]: b 0.162109 0.142578
drm: [colorimetry]: w 0.312500 0.328125
drm: Connectors:
drm:   HDMI-A-2 (disconnected)
drm:   DP-2 (disconnected)
drm:   HDMI-A-1 (disconnected)
drm:   DP-3 (disconnected)
drm:   DP-1 (disconnected)
drm:   eDP-1 (connected)
drm: selecting connector eDP-1
drm: selecting mode 1920x1080@60Hz
vulkan: supported DRM formats for sampling usage:
vulkan:   AR24 (0x34325241)
vulkan:   XR24 (0x34325258)
vulkan:   AB24 (0x34324241)
vulkan:   XB24 (0x34324258)
vulkan:   RG16 (0x36314752)
vulkan:   NV12 (0x3231564E)
vulkan:   XB4H (0x48344258)
vulkan:   XB30 (0x30334258)
vulkan:   XR30 (0x30335258)

00unkn0wn00 avatar Apr 25 '24 22:04 00unkn0wn00