drm/amdgpu: Fix UVD dpb min size calculation for H264
authorDavid Rosca <david.rosca@amd.com>
Thu, 30 Jul 2026 15:56:17 +0000 (17:56 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Aug 2026 13:41:18 +0000 (09:41 -0400)
commit64b525edb7e7bdfcdc77883c5e413804e2396856
treef0ea906207e4e7a442c158f05bb1604a094b5c1b
parent05e1387d151f71569fbe122d2c89f9db0c21dc10
drm/amdgpu: Fix UVD dpb min size calculation for H264

This should use actual number of references from the decode
message, instead of maximum derived from level.

Signed-off-by: David Rosca <david.rosca@amd.com>
Acked-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c