mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 04:10:10 +01: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>
(cherry picked from commit 96db490318)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38432>
This commit is contained in:
parent
7fb0030c06
commit
3a63355583
2 changed files with 1 additions and 26 deletions
|
|
@ -1534,7 +1534,7 @@
|
|||
"description": "radv/video: Don't require encode FW version >= interface version",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -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