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

Only outputs connected to iGPU are active #7460

Open
Vuldora opened this issue Feb 19, 2023 · 3 comments
Open

Only outputs connected to iGPU are active #7460

Vuldora opened this issue Feb 19, 2023 · 3 comments
Labels
bug Not working as intended

Comments

@Vuldora
Copy link

Vuldora commented Feb 19, 2023

Please fill out the following:

  • Sway Version: 1.8.1

  • Debug Log:
    sway.log - with my config file
    sway-default.log - with default config file

  • Configuration File:
    Config
    Issue is reproducible with default config as well.

  • Description:

    • Start sway.
    • See bug.

I have a multigpu setup with a integrated GPU and a discreet GPU (Ryzen 3 3200G + RX 6650 XT), when starting sway displays that are connected to the motherboard's slots function as intended, however displays connected to the discreet GPU show a black screen similar to an empty tty. running swaymsg -t get_outputs shows the outputs are "inactive".

With sway1.7 and previous versions this issue does not occur.

Sway 1.7
PXL_20230219_125047433

Sway 1.8.1
PXL_20230219_125120067

@Vuldora Vuldora added the bug Not working as intended label Feb 19, 2023
@llyyr
Copy link
Contributor

llyyr commented Feb 28, 2023

00:00:00.882 [INFO] [wlr] [backend/drm/drm.c:1447] connector DP-2: Requesting modeset
00:00:00.882 [DEBUG] [sway/desktop/output.c:912] New output 0x55e250a34f60: DP-2 (non-desktop: 0)
00:00:00.882 [DEBUG] [sway/config/output.c:395] Turning on output DP-2
00:00:00.882 [DEBUG] [sway/config/output.c:403] Set DP-2 mode to 1920x1080 (144.000000 Hz)
00:00:00.882 [DEBUG] [sway/config/output.c:282] Assigning configured mode to DP-2
00:00:00.882 [DEBUG] [sway/config/output.c:441] Auto-detected output transform: 0
00:00:00.882 [DEBUG] [sway/config/output.c:455] Auto-detected output scale: 1.000000
00:00:00.882 [DEBUG] [sway/config/output.c:506] Committing output DP-2
00:00:00.882 [DEBUG] [wlr] [types/output/render.c:229] Attaching empty buffer to output for modeset
00:00:00.882 [DEBUG] [wlr] [types/output/render.c:75] Choosing primary buffer format XR24 (0x34325258) for output 'DP-2'
00:00:00.882 [DEBUG] [wlr] [render/swapchain.c:105] Allocating new swapchain buffer
00:00:00.882 [DEBUG] [wlr] [render/allocator/gbm.c:143] Allocated 1920x1080 GBM buffer with format XR24 (0x34325258), modifier GFX9,GFX9_64K_S (0x0200000000000901)
00:00:00.882 [DEBUG] [wlr] [render/gles2/renderer.c:148] Created GL FBO for buffer 1920x1080
00:00:00.882 [ERROR] [wlr] [EGL] command: eglCreateImageKHR, error: EGL_BAD_ALLOC (0x3003), message: "dri2_create_image_khr_texture"
00:00:00.882 [ERROR] [wlr] [render/egl.c:767] eglCreateImageKHR failed
00:00:00.882 [ERROR] [wlr] [render/gles2/texture.c:291] Failed to create EGL image from DMA-BUF
00:00:00.882 [ERROR] [wlr] [backend/drm/renderer.c:95] Failed to import source buffer into multi-GPU renderer
00:00:00.882 [ERROR] [sway/config/output.c:511] Failed to commit output DP-2
00:00:00.882 [INFO] [wlr] [backend/drm/drm.c:1447] connector HDMI-A-1: Requesting modeset
00:00:00.882 [DEBUG] [sway/desktop/output.c:912] New output 0x55e2509fcf40: HDMI-A-1 (non-desktop: 0)
00:00:00.882 [DEBUG] [sway/config/output.c:395] Turning on output HDMI-A-1
00:00:00.882 [DEBUG] [sway/config/output.c:408] Set preferred mode
00:00:00.882 [DEBUG] [wlr] [types/output/render.c:229] Attaching empty buffer to output for modeset
00:00:00.882 [DEBUG] [wlr] [types/output/render.c:75] Choosing primary buffer format XR24 (0x34325258) for output 'HDMI-A-1'
00:00:00.882 [DEBUG] [wlr] [render/swapchain.c:105] Allocating new swapchain buffer
00:00:00.882 [DEBUG] [wlr] [render/allocator/gbm.c:143] Allocated 1920x1080 GBM buffer with format XR24 (0x34325258), modifier GFX9,GFX9_64K_S (0x0200000000000901)
00:00:00.882 [DEBUG] [wlr] [render/gles2/renderer.c:148] Created GL FBO for buffer 1920x1080
00:00:00.882 [DEBUG] [sway/config/output.c:441] Auto-detected output transform: 0
00:00:00.882 [DEBUG] [sway/config/output.c:455] Auto-detected output scale: 1.000000
00:00:00.882 [DEBUG] [sway/config/output.c:506] Committing output HDMI-A-1
00:00:00.882 [DEBUG] [wlr] [types/output/render.c:229] Attaching empty buffer to output for modeset
00:00:00.882 [ERROR] [wlr] [EGL] command: eglCreateImageKHR, error: EGL_BAD_ALLOC (0x3003), message: "dri2_create_image_khr_texture"
00:00:00.882 [ERROR] [wlr] [render/egl.c:767] eglCreateImageKHR failed
00:00:00.882 [ERROR] [wlr] [render/gles2/texture.c:291] Failed to create EGL image from DMA-BUF
00:00:00.882 [ERROR] [wlr] [backend/drm/renderer.c:95] Failed to import source buffer into multi-GPU renderer
00:00:00.882 [ERROR] [sway/config/output.c:511] Failed to commit output HDMI-A-1

Relevant part of the logs I guess. Can you try launching sway with export WLR_RENDERER=vulkan?

@Vuldora
Copy link
Author

Vuldora commented Feb 28, 2023

After the variable it fails to launch and returns the following errors:

00:00:00.069 [ERROR] [wlr] [render/vulkan/vulkan.c:185] Could not create instance: ERROR_LAYER_NOT_PRESENT (-6)
00:00:00.069 [ERROR] [wlr] [render/vulkan/renderer.c:1794] creating vulkan instance for renderer failed
00:00:00.069 [ERROR] [wlr] [render/wlr_renderer.c:271] Failed to create a Vulkan renderer
00:00:00.069 [ERROR] [wlr] [render/wlr_renderer.c:333] Could not initialize renderer
00:00:00.069 [ERROR] [wlr] [backend/drm/renderer.c:27] Failed to create renderer
00:00:00.069 [ERROR] [wlr] [backend/drm/backend.c:256] Failed to initialize renderer
00:00:00.069 [ERROR] [wlr] [backend/backend.c:228] Failed to create DRM backend
00:00:00.071 [ERROR] [wlr] [render/vulkan/vulkan.c:185] Could not create instance: ERROR_LAYER_NOT_PRESENT (-6)
00:00:00.071 [ERROR] [wlr] [render/vulkan/renderer.c:1794] creating vulkan instance for renderer failed
00:00:00.071 [ERROR] [wlr] [render/wlr_renderer.c:271] Failed to create a Vulkan renderer
00:00:00.071 [ERROR] [wlr] [render/wlr_renderer.c:333] Could not initialize renderer
00:00:00.071 [ERROR] [sway/server.c:79] Failed to create renderer

@emersion
Copy link
Member

This sounds like a duplicate of https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3451, which is a bug in the radeonsi driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

3 participants