summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSathishkumar S <sathishkumar.sundararaju@amd.com>2022-05-25 14:45:08 +0530
committerLeo Liu <leo.liu@amd.com>2022-06-11 12:13:03 -0400
commit0b21fcb214c46d2d3ff03d7c2abe5f50470ad83c (patch)
tree3037574a961b18c9d653f02ba85ce741e7fc99be
parentf83ad09dc04c9f918ee8836bac9d88dac5de6745 (diff)
downloaddrm-0b21fcb214c46d2d3ff03d7c2abe5f50470ad83c.tar.gz
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>
-rw-r--r--tests/amdgpu/vcn_tests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/amdgpu/vcn_tests.c b/tests/amdgpu/vcn_tests.c
index ff97f344..a924fec6 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)