diff options
Diffstat (limited to 'tests/amdgpu/cs_tests.c')
-rw-r--r-- | tests/amdgpu/cs_tests.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/amdgpu/cs_tests.c b/tests/amdgpu/cs_tests.c index 65f2434b..fe78326f 100644 --- a/tests/amdgpu/cs_tests.c +++ b/tests/amdgpu/cs_tests.c @@ -289,7 +289,8 @@ 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_create_msg)); + memcpy(ptr, uvd_decode_msg, sizeof(uvd_decode_msg)); + memcpy(ptr + sizeof(uvd_decode_msg), avc_decode_msg, sizeof(avc_decode_msg)); if (family_id >= AMDGPU_FAMILY_VI) { ptr[0x10] = 7; |