Skip to content

Commit

Permalink
Fix detection of present on separate GPU for the Wayland dmabuf case
Browse files Browse the repository at this point in the history
WaylandWindowSystem::m_presentOnSameGpu is set to true on
initialisation and was never being set to false in the case where the
present drm device was different from the render device.
  • Loading branch information
kmshanah committed Jan 29, 2025
1 parent c7fc612 commit 169c3bb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/core/os/amdgpu/wayland/waylandWindowSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1301,11 +1301,8 @@ void WaylandWindowSystem::ConfigPresentOnSameGpu()
drmNodeMinor = drmProps.primaryDrmNodeMinor;

}
if ((major(m_DmaDevice) == drmNodeMajor) &&
(minor(m_DmaDevice) == drmNodeMinor))
{
m_presentOnSameGpu = true;
}
m_presentOnSameGpu = ((major(m_DmaDevice) == drmNodeMajor) &&
(minor(m_DmaDevice) == drmNodeMinor));
}
else
{
Expand Down

0 comments on commit 169c3bb

Please sign in to comment.