Skip to content

multigpu: fix multi gpu checking#13277

Open
gulafaran wants to merge 1 commit intohyprwm:mainfrom
gulafaran:multigpu
Open

multigpu: fix multi gpu checking#13277
gulafaran wants to merge 1 commit intohyprwm:mainfrom
gulafaran:multigpu

Conversation

@gulafaran
Copy link
Contributor

@gulafaran gulafaran commented Feb 14, 2026

drmFD() from allocators is not always equal, because we reopen them inside AQ for refcounting, meaning they get duplicated and become their own fds, so checking if fd1 == fd2 ends up wrong.

introduce sameGpu in MiscFunctions that checks the actual drmDevice meaning we can now even check if a rendernode is the same gpu as a display node if we want.

fixes blitting and multigpu paths that was hit on single gpu situations.

found by @Arisa-Snowbell see more at #13229

@Arisa-Snowbell
Copy link
Contributor

Of course, tested it, works, fixed my performance issues

@gulafaran gulafaran marked this pull request as draft February 16, 2026 09:16
drmFD() from allocators is not always equal, because we reopen them
inside AQ for refcounting, meaning they get duplicated and become their
own fds, so checking if fd1 == fd2 ends up wrong.

introduce sameGpu in MiscFunctions that checks the actual drmDevice
meaning we can now even check if a rendernode is the same gpu as a
display node if we want.
@gulafaran gulafaran marked this pull request as ready for review February 16, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants