From 0d5f2b0695c5471f0b8d9d2c2ad4b01c6c49e59e Mon Sep 17 00:00:00 2001 From: David Rosca Date: Fri, 20 Sep 2024 08:39:23 +0200 Subject: [PATCH] va: Add VAConfigAttribLowLatency Driver should minimize latency of operations, possibly at the cost of increased power use. Signed-off-by: David Rosca --- va/va.h | 13 +++++++++++++ va/va_str.c | 1 + 2 files changed, 14 insertions(+) diff --git a/va/va.h b/va/va.h index a4dda28a5..30850566e 100644 --- a/va/va.h +++ b/va/va.h @@ -1062,6 +1062,19 @@ typedef enum { * VAConfigAttribValEncVP9 union. */ VAConfigAttribEncVP9 = 58, + + /** + * \brief Low latency context. Read/write. + * + * This attribute determines if the driver supports low latency context, + * through vaGetConfigAttributes(); and the user requests low latency context + * through vaCreateConfig(), if the driver supports it. + * + * Driver should minimize latency of operations, possibly at the cost of + * increased power use. + */ + VAConfigAttribLowLatency = 59, + /**@}*/ VAConfigAttribTypeMax } VAConfigAttribType; diff --git a/va/va_str.c b/va/va_str.c index b47bf69a2..dae9a3931 100644 --- a/va/va_str.c +++ b/va/va_str.c @@ -155,6 +155,7 @@ const char *vaConfigAttribTypeStr(VAConfigAttribType configAttribType) TOSTR(VAConfigAttribEncMaxTileRows); TOSTR(VAConfigAttribEncMaxTileCols); TOSTR(VAConfigAttribEncVP9); + TOSTR(VAConfigAttribLowLatency); case VAConfigAttribTypeMax: break; }