An ownership of an imported buffer
by Hirokazu Honda
Hi all.
I would like to clarify an ownership of an imported buffer by
VASurfaceAttribExternalBufferDescriptor.
An application can import their own buffer by passing the buffer
information with VASurfaceAttribExternalBufferDescriptor.
It may pass a prime fd to the driver.
I wonder if the application can close the fd after the CreateSurface()
is complete.
I expect the application can.
Looking intel/media-driver implementation, the implementation creates
GEM handle internally.
It will be destroyed in calling DestroySurface().
Therefore, my expectation is true at least with intel/media-driver.
My question is if it is guaranteed in VA-API level.
In other words, all VA-API drivers must take ownership of the passed
file descriptor.
Thanks in advance,
-Hiro
2 years, 8 months