From b25b1be70d6830a0b1be3f351ff66865edd973d3 Mon Sep 17 00:00:00 2001 From: Victor Manuel Jaquez Leal Date: Sat, 26 Nov 2022 20:48:45 +0100 Subject: [PATCH] vafilter: Increase the number of 3DLUT caps to 16. To fix the warning on Alderlake vafilter gstvafilter.c:534:gst_va_filter_ensure_filters: vaQueryVideoProcFiltersCaps: list argument exceeds maximum number Increase the number of caps to 16 as vadumpcaps does. Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvafilter.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvafilter.c b/subprojects/gst-plugins-bad/sys/va/gstvafilter.c index a6c197012a..7ddd693dfd 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvafilter.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvafilter.c @@ -444,7 +444,7 @@ static const struct VaFilterCapMap { F(HVSNoiseReduction, 0), F(HighDynamicRangeToneMapping, 1), #if VA_CHECK_VERSION (1, 12, 0) - F(3DLUT, 1), + F(3DLUT, 16), #endif #undef F }; @@ -481,6 +481,9 @@ struct VaFilter VAProcFilterCapColorBalance cb[VAProcColorBalanceCount]; VAProcFilterCapTotalColorCorrection cc[VAProcTotalColorCorrectionCount]; VAProcFilterCapHighDynamicRange hdr; +#if VA_CHECK_VERSION (1, 12, 0) + VAProcFilterCap3DLUT lut[16]; +#endif } caps; };