From 1b346fe4274ffc9d07831185606e8d55a49ba2e0 Mon Sep 17 00:00:00 2001 From: Sil Vilerino Date: Fri, 22 Sep 2023 08:31:28 -0400 Subject: [PATCH] vainfo: Print VAConfigAttribEncMaxTileRowsCols Signed-off-by: Sil Vilerino --- vainfo/vainfo.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vainfo/vainfo.c b/vainfo/vainfo.c index a5fced89..4a00b260 100644 --- a/vainfo/vainfo.c +++ b/vainfo/vainfo.c @@ -283,6 +283,12 @@ static int show_config_attributes(VADisplay va_dpy, VAProfile profile, VAEntrypo printf("%-*sl1=%d\n", 45, "", (attrib_list[VAConfigAttribEncMaxRefFrames].value >> 16) & 0xffff); } + if (attrib_list[VAConfigAttribEncMaxTileRowsCols].value & (~VA_ATTRIB_NOT_SUPPORTED)) { + printf(" %-39s: ", vaConfigAttribTypeStr(attrib_list[VAConfigAttribEncMaxTileRowsCols].type)); + printf("tile_rows=%d\n", attrib_list[VAConfigAttribEncMaxTileRowsCols].value & 0xffff); + printf("%-*stile_cols=%d\n", 45, "", (attrib_list[VAConfigAttribEncMaxTileRowsCols].value >> 16) & 0xffff); + } + if (attrib_list[VAConfigAttribEncMaxSlices].value & (~VA_ATTRIB_NOT_SUPPORTED)) { printf(" %-39s: %d\n", vaConfigAttribTypeStr(attrib_list[VAConfigAttribEncMaxSlices].type), attrib_list[VAConfigAttribEncMaxSlices].value);