sway
                                
                                 sway copied to clipboard
                                
                                    sway copied to clipboard
                            
                            
                            
                        Lower performance then expected when using arc gpu even when application is rendered using a secondary device.
Please fill out the following:
- 
Sway Version: - sway version 1.9-dev-5fc85c50 (Jan 18 2024, branch 'makepkg')
 
- 
Debug Log: - Primary: Arc gpu, Secondary: AMD gpu https://files.catbox.moe/t78squ.log
- Arc gpu only: https://files.catbox.moe/jo2b15.log
- Gist with logs and config also provided https://gist.github.com/Quackdoc/724358784a7cc765dcf6a0ee9015244d
 
- 
Configuration File: - https://files.catbox.moe/sr62ap
- Gist with logs and config also provided https://gist.github.com/Quackdoc/724358784a7cc765dcf6a0ee9015244d
 
- 
Description: - Set arc gpu as primary gpu device using WLR_DRM_DEVICES=/dev/dri/card1:/dev/dri/card2or single gpu device usingWLR_DRM_DEVICES=/dev/dri/card1
- Run sudo intel_gpu_top
- Open an MPV video using Arc as the render device, Check gpu usage: Gpu usage is high
- VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/intel_icd.x86_64.json mpv video.mp4
- Open an MPV video using Second card as render device, Check gpu usage: Usage is still high
- VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json mpv video.mp4
 
- Set arc gpu as primary gpu device using 
- 
Additonal info 
When using AMD to render the video, Sway will actually noticeably slow down, the cursor is noticeably slower and animations are worse.
Intel as MPV render device;
AMD as MPV render device
EDIT1: Intel as only device (to take the screenshot MPV was not fullscreen however clocks were not that different then when it was and I swapped back and forth between workspaces)
EDIT2: this is how AMD looks like when it is rendering the video significantly less usage
Sounds like a driver issue. Any information on your kernel? I used to drive an A380 and i had issues with DMABUF usage. On an early kernel (1-2 years ago)
I am currently running 6.7.0-zen3-1 from arch, as for mesa I am on commit 74528273 https://gitlab.freedesktop.org/mesa/mesa/-/commit/745282736
EDIT: for context, here is Kwin using the AMD gpu to render, and sending it to the Intel GPU to display
EDIT2: also here is MPV rendering on the GPU itself, Usage itself is still a bit high (for sure most likely a mesa issue), but the clock speeds are a performance tier lower at least