From: Sathishkumar S Date: Wed, 25 May 2022 09:15:08 +0000 (+0530) Subject: tests/amdgpu: fix decode test failure on VCN2.5 X-Git-Tag: libdrm-2.4.112~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b21fcb214c46d2d3ff03d7c2abe5f50470ad83c;p=platform%2Fupstream%2Flibdrm.git tests/amdgpu: fix decode test failure on VCN2.5 For VCN2.5 wrong index was chosen, fix it. Signed-off-by: Sathishkumar S Reviewed-by: Leo Liu --- diff --git a/tests/amdgpu/vcn_tests.c b/tests/amdgpu/vcn_tests.c index ff97f34..a924fec 100644 --- a/tests/amdgpu/vcn_tests.c +++ b/tests/amdgpu/vcn_tests.c @@ -133,7 +133,7 @@ CU_BOOL suite_vcn_tests_enable(void) if (info.hw_ip_version_major == 1) 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; else if ((info.hw_ip_version_major == 2 && info.hw_ip_version_minor >= 5) || info.hw_ip_version_major == 3)