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

gpu: use resource_map() for mapping BOs #192

Merged
merged 2 commits into from
Jun 5, 2024
Merged

Conversation

slp
Copy link
Contributor

@slp slp commented Jun 2, 2024

Use rutabaga's resource_map() to delegate mappings to virglrenderer.
This allows libkrun + virglrenderer to map BOs without relying on PRIME
fds, simplifying the ability to honor BO sharing semantics

The feature is gated behind "virgl_resource_map2" until
https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1374
gets merged.

slp added 2 commits June 2, 2024 23:40
Plumb virgl's resource_map2 into rutabaga to simplify BO mappings.

Signed-off-by: Sergio Lopez <slp@redhat.com>
Use rutabaga's resource_map() to delegate mappings to virglrenderer.
This allows libkrun + virglrenderer to map BOs without relying on PRIME
fds, simplifying the ability to honor BO sharing semantics

The feature is gated behind "virgl_resource_map2" until
https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1374
gets merged.

Signed-off-by: Sergio Lopez <slp@redhat.com>
@slp slp merged commit 3e8e143 into containers:main Jun 5, 2024
5 checks passed
@slp slp deleted the gpu-resource-map branch June 5, 2024 20:27
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.

1 participant