Skip to content

Commit

Permalink
vainfo: Print VAConfigAttribEncMaxTileRows and VAConfigAttribEncMaxTi…
Browse files Browse the repository at this point in the history
…leCols

Requires: intel/libva#757
Signed-off-by: Sil Vilerino <[email protected]>
  • Loading branch information
sivileri authored and XinfengZhang committed Oct 4, 2023
1 parent 81eed6e commit b080e23
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions vainfo/vainfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,18 @@ static int show_config_attributes(VADisplay va_dpy, VAProfile profile, VAEntrypo
printf("%-*sl1=%d\n", 45, "", (attrib_list[VAConfigAttribEncMaxRefFrames].value >> 16) & 0xffff);
}

#if VA_CHECK_VERSION(1, 21, 0)
if (attrib_list[VAConfigAttribEncMaxTileRows].value & (~VA_ATTRIB_NOT_SUPPORTED)) {
printf(" %-39s: %d\n", vaConfigAttribTypeStr(attrib_list[VAConfigAttribEncMaxTileRows].type),
attrib_list[VAConfigAttribEncMaxTileRows].value);
}

if (attrib_list[VAConfigAttribEncMaxTileCols].value & (~VA_ATTRIB_NOT_SUPPORTED)) {
printf(" %-39s: %d\n", vaConfigAttribTypeStr(attrib_list[VAConfigAttribEncMaxTileCols].type),
attrib_list[VAConfigAttribEncMaxTileCols].value);
}
#endif

if (attrib_list[VAConfigAttribEncMaxSlices].value & (~VA_ATTRIB_NOT_SUPPORTED)) {
printf(" %-39s: %d\n", vaConfigAttribTypeStr(attrib_list[VAConfigAttribEncMaxSlices].type),
attrib_list[VAConfigAttribEncMaxSlices].value);
Expand Down

0 comments on commit b080e23

Please sign in to comment.