diff options
Diffstat (limited to 'tests/amdgpu/uvd_enc_tests.c')
-rw-r--r-- | tests/amdgpu/uvd_enc_tests.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/amdgpu/uvd_enc_tests.c b/tests/amdgpu/uvd_enc_tests.c index 75181035..bbda1312 100644 --- a/tests/amdgpu/uvd_enc_tests.c +++ b/tests/amdgpu/uvd_enc_tests.c | |||
@@ -272,7 +272,7 @@ static void amdgpu_cs_uvd_enc_create(void) | |||
272 | static void check_result(struct amdgpu_uvd_enc *enc) | 272 | static void check_result(struct amdgpu_uvd_enc *enc) |
273 | { | 273 | { |
274 | uint64_t sum; | 274 | uint64_t sum; |
275 | uint32_t s = 26382; | 275 | uint32_t s = 175602; |
276 | uint32_t *ptr, size; | 276 | uint32_t *ptr, size; |
277 | int i, j, r; | 277 | int i, j, r; |
278 | 278 | ||
@@ -463,6 +463,8 @@ static void amdgpu_cs_uvd_enc_encode(void) | |||
463 | ib_cpu[len++] = chroma_offset >> 32; | 463 | ib_cpu[len++] = chroma_offset >> 32; |
464 | ib_cpu[len++] = chroma_offset; | 464 | ib_cpu[len++] = chroma_offset; |
465 | memcpy((ib_cpu + len), uve_encode_param, sizeof(uve_encode_param)); | 465 | memcpy((ib_cpu + len), uve_encode_param, sizeof(uve_encode_param)); |
466 | ib_cpu[len] = ALIGN(enc.width, align); | ||
467 | ib_cpu[len + 1] = ALIGN(enc.width, align); | ||
466 | len += sizeof(uve_encode_param) / 4; | 468 | len += sizeof(uve_encode_param) / 4; |
467 | 469 | ||
468 | memcpy((ib_cpu + len), uve_op_speed_enc_mode, sizeof(uve_op_speed_enc_mode)); | 470 | memcpy((ib_cpu + len), uve_op_speed_enc_mode, sizeof(uve_op_speed_enc_mode)); |