[1/3] st/va: rename vlVaSubpictureImage to vlVaSetSubpictureImage

Submitted by Liu, Leo on Dec. 4, 2017, 8:50 p.m.

Details

Message ID 20171204205014.14203-1-leo.liu@amd.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Liu, Leo Dec. 4, 2017, 8:50 p.m.
Following VA spec

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

Patch hide | download patch | download mbox

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);

Comments

Sent to the incorrect lists. Please ignores. Thanks.


On 12/04/2017 03:50 PM, Leo Liu wrote:
> Following VA spec
>
> Signed-off-by: Leo Liu <leo.liu@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);