intel / intel/libva

State the file descriptor lifetime passed with VASurfaceAttribExternalBuffers

Open
#551 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
784
Forks
314
PR merge metrics
No merged PRs in 30d

Description

It is unclear that the lifetime of file descriptor passed with
VASurfaceAttribExternalBuffers(https://github.com/intel/libva/blob/6e86b4fb4dafa123b1e31821f61da88f10cfbe91/va/va.h#L1664) and VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME.
As far as I looked media-driver implementation, the created VASurface by CreateSurfaces2() with the attribute creates and owns GEM object created from the passed fd.
It is safe to close the passed fd.
However, it is not guaranteed in VA API level.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.