diff options
| author | Renjiang Han <renjiang.han@oss.qualcomm.com> | 2026-03-31 07:37:07 +0300 |
|---|---|---|
| committer | Bryan O'Donoghue <bod@kernel.org> | 2026-05-30 10:41:47 +0300 |
| commit | e1c9adabb268cc5d56723b7df1da49e59070f309 (patch) | |
| tree | 20babb8765e7ecff91860216e6220a405dfb0d74 /include/linux/timerqueue.h | |
| parent | e49686fff1f11ed3085b7b9b56a20ba0ebd9a509 (diff) | |
| download | linux-e1c9adabb268cc5d56723b7df1da49e59070f309.tar.xz | |
media: qcom: venus: drop extra padding in NV12 raw size calculation
get_framesize_raw_nv12() currently adds SZ_4K to the UV plane size and an
additional SZ_8K to the total buffer size. This inflates the calculated
sizeimage and leads userspace to over-allocate buffers without a clear
requirement.
Remove the extra SZ_4K/SZ_8K padding and compute the NV12 size as the sum
of Y and UV planes, keeping the final ALIGN(size, SZ_4K) intact.
Fixes: e1cb72de702ad ("media: venus: helpers: move frame size calculations on common place")
Signed-off-by: Renjiang Han <renjiang.han@oss.qualcomm.com>
Reviewed-by: Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
