st/va: rename vlVaSubpictureImage to vlVaSetSubpictureImage
PATCH 1/3 st/va: rename vlVaSubpictureImage to vlVaSetSubpictureImage
Following VA spec
Signed-off-by Leo Liu <[email protected]>
--- src/gallium/state_trackers/va/context.c | 2 +- src/gallium/state_trackers/va/subpicture.c | 2 +- src/gallium/state_trackers/va/va_private.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
src/gallium/state_trackers/va/context.c +1 -1
@@ -73,7 +73,7 @@ static struct VADriverVTable vtable = &vlVaQuerySubpictureFormats, &vlVaCreateSubpicture, &vlVaDestroySubpicture, - &vlVaSubpictureImage, + &vlVaSetSubpictureImage, &vlVaSetSubpictureChromakey, &vlVaSetSubpictureGlobalAlpha, &vlVaAssociateSubpicture,
src/gallium/state_trackers/va/subpicture.c +1 -1
@@ -119,7 +119,7 @@ vlVaDestroySubpicture(VADriverContextP ctx, VASubpictureID subpicture) }VAStatus -vlVaSubpictureImage (VADriverContextP ctx,VASubpictureID subpicture,VAImageID image) +vlVaSetSubpictureImage (VADriverContextP ctx,VASubpictureID subpicture,VAImageID image) {vlVaDriver *drv;vlVaSubpicture *sub;
src/gallium/state_trackers/va/va_private.h +1 -1
@@ -364,7 +364,7 @@ VAStatus vlVaQuerySubpictureFormats(VADriverContextP ctx, VAImageFormat *format_ unsigned int *flags, unsigned int *num_formats);VAStatus vlVaCreateSubpicture (VADriverContextP ctx,VAImageID image,VASubpictureID *subpicture);VAStatus vlVaDestroySubpicture (VADriverContextP ctx,VASubpictureID subpicture); -VAStatus vlVaSubpictureImage (VADriverContextP ctx,VASubpictureID subpicture,VAImageID image); +VAStatus vlVaSetSubpictureImage (VADriverContextP ctx,VASubpictureID subpicture,VAImageID image);VAStatus vlVaSetSubpictureChromakey (VADriverContextP ctx,VASubpictureID subpicture,unsigned int chromakey_min,unsigned int chromakey_max,unsigned int chromakey_mask);
Signature · 6 lines
2.14.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 2/3 st/va: use designated initialisers for VA driver functions
In reply to a message not in the archiveSigned-off-by Leo Liu <[email protected]>
--- src/gallium/state_trackers/va/context.c | 99 ++++++++++++++++----------------- 1 file changed, 49 insertions(+), 50 deletions(-)
src/gallium/state_trackers/va/context.c +49 -50
@@ -40,57 +40,56 @@static struct VADriverVTable vtable = { - &vlVaTerminate, - &vlVaQueryConfigProfiles, - &vlVaQueryConfigEntrypoints, - &vlVaGetConfigAttributes, - &vlVaCreateConfig, - &vlVaDestroyConfig, - &vlVaQueryConfigAttributes, - &vlVaCreateSurfaces, - &vlVaDestroySurfaces, - &vlVaCreateContext, - &vlVaDestroyContext, - &vlVaCreateBuffer, - &vlVaBufferSetNumElements, - &vlVaMapBuffer, - &vlVaUnmapBuffer, - &vlVaDestroyBuffer, - &vlVaBeginPicture, - &vlVaRenderPicture, - &vlVaEndPicture, - &vlVaSyncSurface, - &vlVaQuerySurfaceStatus, - &vlVaQuerySurfaceError, - &vlVaPutSurface, - &vlVaQueryImageFormats, - &vlVaCreateImage, - &vlVaDeriveImage, - &vlVaDestroyImage, - &vlVaSetImagePalette, - &vlVaGetImage, - &vlVaPutImage, - &vlVaQuerySubpictureFormats, - &vlVaCreateSubpicture, - &vlVaDestroySubpicture, - &vlVaSetSubpictureImage, - &vlVaSetSubpictureChromakey, - &vlVaSetSubpictureGlobalAlpha, - &vlVaAssociateSubpicture, - &vlVaDeassociateSubpicture, - &vlVaQueryDisplayAttributes, - &vlVaGetDisplayAttributes, - &vlVaSetDisplayAttributes, - &vlVaBufferInfo, - &vlVaLockSurface, - &vlVaUnlockSurface, -NULL ,/* DEPRECATED VaGetSurfaceAttributes */ - &vlVaCreateSurfaces2, - &vlVaQuerySurfaceAttributes, - &vlVaAcquireBufferHandle, - &vlVaReleaseBufferHandle, + .vaTerminate = &vlVaTerminate, + .vaQueryConfigProfiles = &vlVaQueryConfigProfiles, + .vaQueryConfigEntrypoints = &vlVaQueryConfigEntrypoints, + .vaGetConfigAttributes = &vlVaGetConfigAttributes, + .vaCreateConfig = &vlVaCreateConfig, + .vaDestroyConfig = &vlVaDestroyConfig, + .vaQueryConfigAttributes = &vlVaQueryConfigAttributes, + .vaCreateSurfaces = &vlVaCreateSurfaces, + .vaDestroySurfaces = &vlVaDestroySurfaces, + .vaCreateContext = &vlVaCreateContext, + .vaDestroyContext = &vlVaDestroyContext, + .vaCreateBuffer = &vlVaCreateBuffer, + .vaBufferSetNumElements = &vlVaBufferSetNumElements, + .vaMapBuffer = &vlVaMapBuffer, + .vaUnmapBuffer = &vlVaUnmapBuffer, + .vaDestroyBuffer = &vlVaDestroyBuffer, + .vaBeginPicture = &vlVaBeginPicture, + .vaRenderPicture = &vlVaRenderPicture, + .vaEndPicture = &vlVaEndPicture, + .vaSyncSurface = &vlVaSyncSurface, + .vaQuerySurfaceStatus = &vlVaQuerySurfaceStatus, + .vaQuerySurfaceError = &vlVaQuerySurfaceError, + .vaPutSurface = &vlVaPutSurface, + .vaQueryImageFormats = &vlVaQueryImageFormats, + .vaCreateImage = &vlVaCreateImage, + .vaDeriveImage = &vlVaDeriveImage, + .vaDestroyImage = &vlVaDestroyImage, + .vaSetImagePalette = &vlVaSetImagePalette, + .vaGetImage = &vlVaGetImage, + .vaPutImage = &vlVaPutImage, + .vaQuerySubpictureFormats = &vlVaQuerySubpictureFormats, + .vaCreateSubpicture = &vlVaCreateSubpicture, + .vaDestroySubpicture = &vlVaDestroySubpicture, + .vaSetSubpictureImage = &vlVaSetSubpictureImage, + .vaSetSubpictureChromakey = &vlVaSetSubpictureChromakey, + .vaSetSubpictureGlobalAlpha = &vlVaSetSubpictureGlobalAlpha, + .vaAssociateSubpicture = &vlVaAssociateSubpicture, + .vaDeassociateSubpicture = &vlVaDeassociateSubpicture, + .vaQueryDisplayAttributes = &vlVaQueryDisplayAttributes, + .vaGetDisplayAttributes = &vlVaGetDisplayAttributes, + .vaSetDisplayAttributes = &vlVaSetDisplayAttributes, + .vaBufferInfo = &vlVaBufferInfo, + .vaLockSurface = &vlVaLockSurface, + .vaUnlockSurface = &vlVaUnlockSurface, + .vaCreateSurfaces2 = &vlVaCreateSurfaces2, + .vaQuerySurfaceAttributes = &vlVaQuerySurfaceAttributes, + .vaAcquireBufferHandle = &vlVaAcquireBufferHandle, + .vaReleaseBufferHandle = &vlVaReleaseBufferHandle, #if 0 - &vlVaExportSurfaceHandle, + .vaExportSurfaceHandle = &vlVaExportSurfaceHandle, #endif };
Signature · 6 lines
2.14.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 3/3 st/va: Enable vaExportSurfaceHandle()
In reply to a message not in the archiveFrom: Mark Thompson <[email protected]>
It will be present from libva 2.1 (VAAPI 1.1.0 or higher).
v2: rebase to previous patches(Leo)
Signed-off-by Mark Thompson <[email protected]>
Signed-off-by Leo Liu <[email protected]>
--- src/gallium/state_trackers/va/context.c | 2 +- src/gallium/state_trackers/va/surface.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
src/gallium/state_trackers/va/context.c +1 -1
@@ -88,7 +88,7 @@ static struct VADriverVTable vtable = .vaQuerySurfaceAttributes = &vlVaQuerySurfaceAttributes, .vaAcquireBufferHandle = &vlVaAcquireBufferHandle, .vaReleaseBufferHandle = &vlVaReleaseBufferHandle, -#if 0 +#if VA_CHECK_VERSION (1 ,1 ,0 ) .vaExportSurfaceHandle = &vlVaExportSurfaceHandle,#endif };
src/gallium/state_trackers/va/surface.c +1 -1
@@ -923,7 +923,7 @@ vlVaQueryVideoProcPipelineCaps(VADriverContextP ctx, VAContextID context,return VA_STATUS_SUCCESS ; } -#if 0 +#if VA_CHECK_VERSION (1 ,1 ,0 ) VAStatus vlVaExportSurfaceHandle(VADriverContextP ctx, VASurfaceID surface_id,
Signature · 6 lines
2.14.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Sent to the incorrect lists. Please ignores. Thanks.
Quoted 40 lines · Leo Liu
Following VA spec
Signed-off-by Leo Liu <[email protected]>--- src/gallium/state_trackers/va/context.c | 2 +- src/gallium/state_trackers/va/subpicture.c | 2 +- src/gallium/state_trackers/va/va_private.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)src/gallium/state_trackers/va/context.c +1
-1@@ -73,7 +73,7 @@ static struct VADriverVTable vtable = &vlVaQuerySubpictureFormats, &vlVaCreateSubpicture, &vlVaDestroySubpicture, - &vlVaSubpictureImage, + &vlVaSetSubpictureImage, &vlVaSetSubpictureChromakey, &vlVaSetSubpictureGlobalAlpha, &vlVaAssociateSubpicture,src/gallium/state_trackers/va/subpicture.c +1
-1@@ -119,7 +119,7 @@ vlVaDestroySubpicture(VADriverContextP ctx, VASubpictureID subpicture) }VAStatus -vlVaSubpictureImage (VADriverContextP ctx,VASubpictureID subpicture,VAImageID image) +vlVaSetSubpictureImage (VADriverContextP ctx,VASubpictureID subpicture,VAImageID image) {vlVaDriver *drv;vlVaSubpicture *sub;src/gallium/state_trackers/va/va_private.h +0
-0
src/gallium/state_trackers/va/va_private.h VAStatus vlVaQuerySubpictureFormats(VADriverContextP ctx, VAImageFormat *format_ · line 370
Quoted 8 lines
src/gallium/state_trackers/va/va_private.h +1
-1@@ -364,7 +364,7 @@ VAStatus vlVaQuerySubpictureFormats(VADriverContextP ctx, VAImageFormat *format_ unsigned int *flags, unsigned int *num_formats);VAStatus vlVaCreateSubpicture (VADriverContextP ctx,VAImageID image,VASubpictureID *subpicture);VAStatus vlVaDestroySubpicture (VADriverContextP ctx,VASubpictureID subpicture); -VAStatus vlVaSubpictureImage (VADriverContextP ctx,VASubpictureID subpicture,VAImageID image); +VAStatus vlVaSetSubpictureImage (VADriverContextP ctx,VASubpictureID subpicture,VAImageID image);VAStatus vlVaSetSubpictureChromakey (VADriverContextP ctx,VASubpictureID subpicture,unsigned int chromakey_min,unsigned int chromakey_max,unsigned int chromakey_mask);
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx