Skip to content

Commit

Permalink
va: Add VA_SURFACE_ATTRIB_USAGE_HINT_SCANOUT
Browse files Browse the repository at this point in the history
This can be used to tell the driver set scanout surface. XE DMA DRM
render case required this.

Signed-off-by: Cheah, Vincent Beng Keat <[email protected]>
  • Loading branch information
vcheah committed Jun 7, 2024
1 parent bb178ef commit ef91604
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions va/va.h
Original file line number Diff line number Diff line change
Expand Up @@ -1813,6 +1813,10 @@ typedef struct _VASurfaceAttribExternalBuffers {
/** \brief Surface used for export to third-party APIs, e.g. via
* vaExportSurfaceHandle(). */
#define VA_SURFACE_ATTRIB_USAGE_HINT_EXPORT 0x00000020
/** \brief Surface read by decoder or video post-processing.
* use to set DRM_XE_GEM_CREATE_FLAG_SCANOUT which is required
* for XE DMA DRM render case */
#define VA_SURFACE_ATTRIB_USAGE_HINT_SCANOUT 0x00000040

/**@}*/

Expand Down

0 comments on commit ef91604

Please sign in to comment.