Skip to content

radeonsi: correctly declare YUV420_10 RT Format support for AV1 VAAPI

Philip Langdale requested to merge philipl/mesa:radeonsi-av1-10bit into main

This appears to have been an oversight. AV1 Main profile requires support for both 8bit and 10bit, and so we should always declare support for the YUV420_10 RT Format. This support then cascades into supporting the appropriate surface formats and meets expectations of vaapi clients (especially ffmpeg based) on how to detect support for these formats.

Note that the commit [0b02db30] was also made with the intention of fixing this problem, but it does so in a non-idiomatic way. With that change, there is still no declared YUV420_10 RT Format, and instead the P010 surface format is reported under the YUV420 RT Format. This is not going to work with all vaapi clients. I recommend that this commit be reverted.

Signed-off-by: Philip Langdale philipl@overt.org

Merge request reports