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

Fix detection of present on separate GPU for the Wayland dmabuf case #108

Merged

Conversation

kmshanah
Copy link
Contributor

WaylandWindowSystem::m_presentOnSameGpu is set to true on initialisation and was never being set to false in the case where the presenting drm device was different from the render device.

Fixes GPUOpen-Drivers/AMDVLK#393

@kmshanah kmshanah changed the title Fix detection of present on separate CPU for the Wayland dmabuf case Fix detection of present on separate GPU for the Wayland dmabuf case Jan 29, 2025
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.
@kmshanah kmshanah force-pushed the fix-dma-present-on-distinct-gpu branch from 8d918e1 to 169c3bb Compare January 29, 2025 07:42
Copy link
Contributor

@JakeMerdichAMD JakeMerdichAMD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thank you! We missed this, though I'm a bit surprised the dmabuf modifier negotiation didn't force us into a linear image mode regardless.

This has been ported internally as well and will be in an upcoming release for both AMDVLK and AMDGPU-PRO.

Edit: sorry, seems like someone else with approval permissions will have to do this. This might take a few days.

ninelore added a commit to ninelore/flake that referenced this pull request Feb 2, 2025
@qiaojbao qiaojbao merged commit bb9adad into GPUOpen-Drivers:dev Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Corrupted Vulkan windows and Gnome File Manager with 2024.Q4.2+
4 participants