aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
index c3712498c2c2..6c8d16559b00 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
@@ -435,7 +435,7 @@ static int amdgpu_uvd_cs_msg_decode(struct amdgpu_device *adev, uint32_t *msg,
435 unsigned fs_in_mb = width_in_mb * height_in_mb; 435 unsigned fs_in_mb = width_in_mb * height_in_mb;
436 436
437 unsigned image_size, tmp, min_dpb_size, num_dpb_buffer; 437 unsigned image_size, tmp, min_dpb_size, num_dpb_buffer;
438 unsigned min_ctx_size = 0; 438 unsigned min_ctx_size = ~0;
439 439
440 image_size = width * height; 440 image_size = width * height;
441 image_size += image_size / 2; 441 image_size += image_size / 2;