summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Zhang <carl.zhang@intel.com>2020-05-14 12:15:16 -0400
committerXinfengZhang <carl.zhang@intel.com>2020-07-19 22:14:11 +0800
commit7c6de6df3eb06f496d5f9debd4c92f6470eac224 (patch)
tree6016b79a9ca06349d8151fb63e89c3c424443011
parent179ddc3ce9cea99f3a47db3f89c1f84c7ebd0311 (diff)
downloadlibva-7c6de6df3eb06f496d5f9debd4c92f6470eac224.tar.gz
add attributes for context priority setting
application could set priority for each VAContext then HW will check the priority for the tasks related with the VAContext Signed-off-by: Carl Zhang <carl.zhang@intel.com>
-rw-r--r--va/va.h16
-rw-r--r--va/va_str.c1
2 files changed, 17 insertions, 0 deletions
diff --git a/va/va.h b/va/va.h
index 4c67546..e610a07 100644
--- a/va/va.h
+++ b/va/va.h
@@ -783,6 +783,10 @@ typedef enum
* implementation, multiple frames encode/decode can improve HW concurrency
*/
VAConfigAttribMultipleFrame = 40,
+ /** \brief priority setting for the context. Read-Write
+ * attribute value is \c VAConfigAttribValContextPriority
+ */
+ VAConfigAttribContextPriority = 41,
/**@}*/
VAConfigAttribTypeMax
} VAConfigAttribType;
@@ -1141,6 +1145,18 @@ typedef union _VAConfigAttribValMultipleFrame {
uint32_t value;
}VAConfigAttribValMultipleFrame;
+/** brief Attribute value VAConfigAttribValContestPriority */
+typedef union _VAConfigAttribValContextPriority{
+ struct{
+ /** \brief the priority , for the Query operation (read) it represents highest priority
+ * for the set operation (write), value should be [0~highest priority] , 0 is lowest priority*/
+ uint32_t priority :16;
+ /** \brief reserved bits for future, must be zero*/
+ uint32_t reserved :16;
+ }bits;
+ uint32_t value;
+}VAConfigAttribValContextPriority;
+
/** @name Attribute values for VAConfigAttribProcessingRate. */
/**@{*/
/** \brief Driver does not support processing rate report */
diff --git a/va/va_str.c b/va/va_str.c
index 716e20d..4b631ca 100644
--- a/va/va_str.c
+++ b/va/va_str.c
@@ -129,6 +129,7 @@ const char *vaConfigAttribTypeStr(VAConfigAttribType configAttribType)
TOSTR(VAConfigAttribMaxFrameSize);
TOSTR(VAConfigAttribPredictionDirection);
TOSTR(VAConfigAttribMultipleFrame);
+ TOSTR(VAConfigAttribContextPriority);
case VAConfigAttribTypeMax: break;
}
return "<unknown config attribute type>";