mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
msm: vidc: fix slice command buffer sizes
Fix HEVC slice command buffer sizes. Change-Id: I8db40a80561eebb15fba9345d37b51bd42380c4f
This commit is contained in:
parent
c0141cd493
commit
8bfbae799d
1 changed files with 2 additions and 2 deletions
|
|
@ -1127,7 +1127,7 @@ static inline u32 size_h265d_bse_cmd_buf(u32 width, u32 height)
|
|||
{
|
||||
u32 size;
|
||||
|
||||
size = (ALIGN(width, LCU_MAX_SIZE_PELS) / LCU_MIN_SIZE_PELS) +
|
||||
size = (ALIGN(width, LCU_MAX_SIZE_PELS) / LCU_MIN_SIZE_PELS) *
|
||||
(ALIGN(height, LCU_MAX_SIZE_PELS) / LCU_MIN_SIZE_PELS) *
|
||||
NUM_HW_PIC_BUF;
|
||||
size = min_t(u32, size, H265D_MAX_SLICE + 1);
|
||||
|
|
@ -1141,7 +1141,7 @@ static inline u32 size_h265d_vpp_cmd_buf(u32 width, u32 height)
|
|||
{
|
||||
u32 size = 0;
|
||||
|
||||
size = (ALIGN(width, LCU_MAX_SIZE_PELS) / LCU_MIN_SIZE_PELS) +
|
||||
size = (ALIGN(width, LCU_MAX_SIZE_PELS) / LCU_MIN_SIZE_PELS) *
|
||||
(ALIGN(height, LCU_MAX_SIZE_PELS) / LCU_MIN_SIZE_PELS) *
|
||||
NUM_HW_PIC_BUF;
|
||||
size = min_t(u32, size, H265D_MAX_SLICE + 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue