diff options
author | Leo Liu <leo.liu@amd.com> | 2016-03-17 11:30:57 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-05-13 15:10:21 -0400 |
commit | 4e7ec72a1b7cdfdbe895379949a71201c124e0f2 (patch) | |
tree | 4a148b1c3fd9f3745d85475211f2e7b7e3992eb0 /tests | |
parent | 3f5b31939cd3490225a52e4e11337a1b355b2635 (diff) |
tests/amdgpu: add interface to adapt firmware requirement
Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/amdgpu/cs_tests.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/amdgpu/cs_tests.c b/tests/amdgpu/cs_tests.c index dfbf5af9..c6930c07 100644 --- a/tests/amdgpu/cs_tests.c +++ b/tests/amdgpu/cs_tests.c @@ -266,9 +266,12 @@ static void amdgpu_cs_uvd_decode(void) r = amdgpu_bo_cpu_map(buf_handle, (void **)&ptr); CU_ASSERT_EQUAL(r, 0); - memcpy(ptr, uvd_decode_msg, sizeof(uvd_decode_msg)); - if (family_id >= AMDGPU_FAMILY_VI) + memcpy(ptr, uvd_decode_msg, sizeof(uvd_create_msg)); + if (family_id >= AMDGPU_FAMILY_VI) { ptr[0x10] = 7; + ptr[0x98] = 0xb0; + ptr[0x99] = 0x1; + } ptr += 4*1024; memset(ptr, 0, 4*1024); |