tests/amdgpu: fix decode test failure on VCN2.5

For VCN2.5 wrong index was chosen, fix it.

Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
main
Sathishkumar S 2022-05-25 14:45:08 +05:30 committed by Leo Liu
parent f83ad09dc0
commit 0b21fcb214
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ CU_BOOL suite_vcn_tests_enable(void)
if (info.hw_ip_version_major == 1) if (info.hw_ip_version_major == 1)
vcn_reg_index = 0; vcn_reg_index = 0;
else if (info.hw_ip_version_major == 2) else if (info.hw_ip_version_major == 2 && info.hw_ip_version_minor == 0)
vcn_reg_index = 1; vcn_reg_index = 1;
else if ((info.hw_ip_version_major == 2 && info.hw_ip_version_minor >= 5) || else if ((info.hw_ip_version_major == 2 && info.hw_ip_version_minor >= 5) ||
info.hw_ip_version_major == 3) info.hw_ip_version_major == 3)