[Mesa-dev] [PATCH 1/3] st/va: rename vlVaSubpictureImage to vlVaSetSubpictureImage

Leo Liu leo.liu at amd.com
Mon Dec 4 20:52:50 UTC 2017


Following VA spec

Signed-off-by: Leo Liu <leo.liu at amd.com>
---
 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(-)

diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c
index 78e1f19ab7..0ad4309568 100644
--- a/src/gallium/state_trackers/va/context.c
+++ b/src/gallium/state_trackers/va/context.c
@@ -73,7 +73,7 @@ static struct VADriverVTable vtable =
    &vlVaQuerySubpictureFormats,
    &vlVaCreateSubpicture,
    &vlVaDestroySubpicture,
-   &vlVaSubpictureImage,
+   &vlVaSetSubpictureImage,
    &vlVaSetSubpictureChromakey,
    &vlVaSetSubpictureGlobalAlpha,
    &vlVaAssociateSubpicture,
diff --git a/src/gallium/state_trackers/va/subpicture.c b/src/gallium/state_trackers/va/subpicture.c
index 981a99cec5..f531b61dec 100644
--- a/src/gallium/state_trackers/va/subpicture.c
+++ b/src/gallium/state_trackers/va/subpicture.c
@@ -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;
diff --git a/src/gallium/state_trackers/va/va_private.h b/src/gallium/state_trackers/va/va_private.h
index 46f6ba66f2..be38c0b88a 100644
--- a/src/gallium/state_trackers/va/va_private.h
+++ b/src/gallium/state_trackers/va/va_private.h
@@ -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);
-- 
2.14.1



More information about the mesa-dev mailing list