mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-05 06:00:36 +02:00
radv/video: Don't require encode FW version >= interface version
Otherwise this breaks backwards compatibility when bumping interface version for new features. Cc: mesa-stable Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37911>
This commit is contained in:
parent
1a8a8db8c5
commit
96db490318
1 changed files with 0 additions and 25 deletions
|
|
@ -67,31 +67,6 @@ radv_probe_video_encode(struct radv_physical_device *pdev)
|
|||
if (instance->debug_flags & RADV_DEBUG_NO_VIDEO)
|
||||
return;
|
||||
|
||||
if (pdev->info.vcn_ip_version >= VCN_5_0_0) {
|
||||
pdev->video_encode_enabled = true;
|
||||
return;
|
||||
} else if (pdev->info.vcn_ip_version >= VCN_4_0_0) {
|
||||
if (pdev->info.vcn_enc_major_version != RENCODE_V4_FW_INTERFACE_MAJOR_VERSION)
|
||||
return;
|
||||
if (pdev->info.vcn_enc_minor_version < RENCODE_V4_FW_INTERFACE_MINOR_VERSION)
|
||||
return;
|
||||
} else if (pdev->info.vcn_ip_version >= VCN_3_0_0) {
|
||||
if (pdev->info.vcn_enc_major_version != RENCODE_V3_FW_INTERFACE_MAJOR_VERSION)
|
||||
return;
|
||||
if (pdev->info.vcn_enc_minor_version < RENCODE_V3_FW_INTERFACE_MINOR_VERSION)
|
||||
return;
|
||||
} else if (pdev->info.vcn_ip_version >= VCN_2_0_0) {
|
||||
if (pdev->info.vcn_enc_major_version != RENCODE_V2_FW_INTERFACE_MAJOR_VERSION)
|
||||
return;
|
||||
if (pdev->info.vcn_enc_minor_version < RENCODE_V2_FW_INTERFACE_MINOR_VERSION)
|
||||
return;
|
||||
} else {
|
||||
if (pdev->info.vcn_enc_major_version != RENCODE_FW_INTERFACE_MAJOR_VERSION)
|
||||
return;
|
||||
if (pdev->info.vcn_enc_minor_version < RENCODE_FW_INTERFACE_MINOR_VERSION)
|
||||
return;
|
||||
}
|
||||
|
||||
/* WRITE_MEMORY is needed for SetEvent and is required to pass CTS */
|
||||
if (radv_video_write_memory_supported(pdev)) {
|
||||
pdev->video_encode_enabled = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue