Module: Mesa
Branch: main
Commit: 721d9eea81129838584179735161141520a32096
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=721d9eea81129838584179735161141520a32096

Author: Sil Vilerino <[email protected]>
Date:   Thu Jul 21 12:41:45 2022 -0400

va: Replace usage of entrypoint UNKNOWN with PROCESSING for VP

Reviewed-by: Boyuan Zhang <[email protected]>
Reviewed-by: Jesse Natalie <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17557>

---

 src/gallium/frontends/va/config.c  | 4 ++--
 src/gallium/frontends/va/context.c | 2 +-
 src/gallium/frontends/va/surface.c | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/frontends/va/config.c 
b/src/gallium/frontends/va/config.c
index 841f6721fd7..b07a110b6ec 100644
--- a/src/gallium/frontends/va/config.c
+++ b/src/gallium/frontends/va/config.c
@@ -259,7 +259,7 @@ vlVaCreateConfig(VADriverContextP ctx, VAProfile profile, 
VAEntrypoint entrypoin
          return VA_STATUS_ERROR_UNSUPPORTED_ENTRYPOINT;
       }
 
-      config->entrypoint = PIPE_VIDEO_ENTRYPOINT_UNKNOWN;
+      config->entrypoint = PIPE_VIDEO_ENTRYPOINT_PROCESSING;
       config->profile = PIPE_VIDEO_PROFILE_UNKNOWN;
       supported_rt_formats = VA_RT_FORMAT_YUV420 |
                              VA_RT_FORMAT_YUV420_10BPP |
@@ -441,7 +441,7 @@ vlVaQueryConfigAttributes(VADriverContextP ctx, VAConfigID 
config_id, VAProfile
    case PIPE_VIDEO_ENTRYPOINT_ENCODE:
       *entrypoint = VAEntrypointEncSlice;
       break;
-   case PIPE_VIDEO_ENTRYPOINT_UNKNOWN:
+   case PIPE_VIDEO_ENTRYPOINT_PROCESSING:
       *entrypoint = VAEntrypointVideoProc;
       break;
    default:
diff --git a/src/gallium/frontends/va/context.c 
b/src/gallium/frontends/va/context.c
index ad82d39830e..f59276e9c53 100644
--- a/src/gallium/frontends/va/context.c
+++ b/src/gallium/frontends/va/context.c
@@ -252,7 +252,7 @@ vlVaCreateContext(VADriverContextP ctx, VAConfigID 
config_id, int picture_width,
    if (is_vpp) {
       context->decoder = NULL;
    } else {
-      if (config->entrypoint != PIPE_VIDEO_ENTRYPOINT_UNKNOWN) {
+      if (config->entrypoint != PIPE_VIDEO_ENTRYPOINT_PROCESSING) {
          max_supported_width = 
drv->vscreen->pscreen->get_video_param(drv->vscreen->pscreen,
                         config->profile, config->entrypoint,
                         PIPE_VIDEO_CAP_MAX_WIDTH);
diff --git a/src/gallium/frontends/va/surface.c 
b/src/gallium/frontends/va/surface.c
index d928c474c36..47e916652ca 100755
--- a/src/gallium/frontends/va/surface.c
+++ b/src/gallium/frontends/va/surface.c
@@ -523,7 +523,7 @@ vlVaQuerySurfaceAttributes(VADriverContextP ctx, VAConfigID 
config_id,
    }
 #endif
 
-   if (config->entrypoint != PIPE_VIDEO_ENTRYPOINT_UNKNOWN) {
+   if (config->entrypoint != PIPE_VIDEO_ENTRYPOINT_PROCESSING) {
       attribs[i].type = VASurfaceAttribMaxWidth;
       attribs[i].value.type = VAGenericValueTypeInteger;
       attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE;

Reply via email to