Skip to content

Add DRM PRIME surface export options - #39

Open
michael-dm wants to merge 1 commit into
chromeos:mainfrom
michael-dm:export-prime-options
Open

Add DRM PRIME surface export options#39
michael-dm wants to merge 1 commit into
chromeos:mainfrom
michael-dm:export-prime-options

Conversation

@michael-dm

Copy link
Copy Markdown

Adds typed options for exporting VA surfaces as DRM PRIME, so callers can request access mode and layer layout without reaching for raw libva handles or flags.

Surface::export_prime() keeps the existing read-only composed-layer behavior by delegating to the new export_prime_with_options() API. The raw descriptor conversion remains private inside the crate so exported file descriptors still only come from vaExportSurfaceHandle.

Verified on Linux with cargo test -p cros-libva -- --nocapture.

@google-cla

google-cla Bot commented Jun 4, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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