From f4c33f5b5466260c696e01ecc2e8b4050bac205f 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 928703ee4..3270f7d3f 100644 --- a/va/va.h +++ b/va/va.h @@ -1063,6 +1063,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 000d1166a..03c3f40db 100644 --- a/va/va_str.c +++ b/va/va_str.c @@ -156,6 +156,7 @@ const char *vaConfigAttribTypeStr(VAConfigAttribType configAttribType) TOSTR(VAConfigAttribEncMaxTileRows); TOSTR(VAConfigAttribEncMaxTileCols); TOSTR(VAConfigAttribEncVP9); + TOSTR(VAConfigAttribLowLatency); case VAConfigAttribTypeMax: break; }