Repository navigation
va: add VA_SURFACE_ATTRIB_USAGE_HINT_VA_INTERNAL - #896
Open
XinfengZhang wants to merge 1 commit into
Open
XinfengZhang wants to merge 1 commit into
XinfengZhang wants to merge 1 commit into
Conversation
Contributor
|
So this kind of surface can not be exported as DMA buffer? |
XinfengZhang
marked this pull request as ready for review
October 22, 2026 02:29
XinfengZhang
force-pushed
the
surface_opt
branch
2 times, most recently
from
October 22, 2026 05:25
43eff89 to
b2f40a9
Compare
XinfengZhang
force-pushed
the
surface_opt
branch
from
November 27, 2026 09:00
b2f40a9 to
473aaa2
Compare
Contributor
|
Could we clarify whether applications may pass VA_SURFACE_ATTRIB_USAGE_HINT_PRIVATE to older drivers, or should only set it when driver support is known? The existing API does not require drivers to ignore unknown usage-hint bits, and successful surface creation does not tell the application whether the hint was honored. |
Contributor
|
BTW could we choose a name that better reflects the intent of this flag? VA_SURFACE_ATTRIB_USAGE_HINT_PRIVATE alone doesn't make it clear that the application is promising to keep the surface internal to the VA driver, so the driver has more flexibility in choosing the memory layout |
The absence of VA_SURFACE_ATTRIB_USAGE_HINT_EXPORT does not tell a driver whether an application intends to keep a surface within the VA driver. Add VA_SURFACE_ATTRIB_USAGE_HINT_VA_INTERNAL so applications can promise not to share a surface with external components or export it. This allows the driver to choose a memory layout that is not shareable outside of the VA driver. Applications must set the flag only when driver support is known. Older drivers are not required to ignore unknown usage-hint bits, and successful surface creation alone does not establish that the flag was honored. Drivers supporting the flag must reject combinations with DISPLAY or EXPORT using VA_STATUS_ERROR_INVALID_PARAMETER. Exporting such a surface, including as a DMA-BUF, must return VA_STATUS_ERROR_INVALID_SURFACE. Signed-off-by: Carl.Zhang <carl.zhang@intel.com>
XinfengZhang
force-pushed
the
surface_opt
branch
from
November 30, 2026 08:19
473aaa2 to
e284579
Compare
Contributor
Author
correct. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The absence of VA_SURFACE_ATTRIB_USAGE_HINT_EXPORT does not tell a driver
whether an application intends to keep a surface within the VA driver.
Add VA_SURFACE_ATTRIB_USAGE_HINT_VA_INTERNAL so applications can promise
not to share a surface with external components or export it. This allows
the driver to choose a memory layout that is not shareable outside of the
VA driver.
Applications must set the flag only when driver support is known. Older
drivers are not required to ignore unknown usage-hint bits, and successful
surface creation alone does not establish that the flag was honored.
Drivers supporting the flag must reject combinations with DISPLAY or
EXPORT using VA_STATUS_ERROR_INVALID_PARAMETER. Exporting such a surface,
including as a DMA-BUF, must return VA_STATUS_ERROR_INVALID_SURFACE.
Validation:
git diff HEAD^ HEAD --checkpassed.