radv: disable video support on GFX12

VCN 5.0+ isn't yet implemented.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33253>
This commit is contained in:
Samuel Pitoiset 2025-01-27 23:43:54 -08:00 committed by Marge Bot
parent b9da3963c7
commit 9d528b9966
2 changed files with 9 additions and 0 deletions

View file

@ -277,6 +277,10 @@ radv_probe_video_decode(struct radv_physical_device *pdev)
pdev->video_decode_enabled = false;
/* TODO: Add VCN 5.0+. */
if (pdev->info.vcn_ip_version >= VCN_5_0_0)
return;
/* The support for decode events are available at the same time as encode */
if (pdev->info.vcn_ip_version >= VCN_4_0_0) {
if (pdev->info.vcn_enc_major_version > 1)

View file

@ -113,6 +113,11 @@ void
radv_probe_video_encode(struct radv_physical_device *pdev)
{
pdev->video_encode_enabled = false;
/* TODO: Add VCN 5.0+. */
if (pdev->info.vcn_ip_version >= VCN_5_0_0)
return;
if (pdev->info.vcn_ip_version >= VCN_4_0_0) {
if (pdev->info.vcn_enc_major_version != RENCODE_V4_FW_INTERFACE_MAJOR_VERSION)
return;