From c638b9401e3e17e7bd22e7e6c2e625293c47ff9b Mon Sep 17 00:00:00 2001 From: Rakshitha Shakamuri Date: Thu, 20 Feb 2020 14:53:23 -0800 Subject: [PATCH] msm: vidc: Increase the persist buffer size for encoder on Lahaina Updated the HFI_IRIS2_ENC_PERSIST_SIZE parameter to be allocated by encoder ARP buffer. Change-Id: I09fa92d1f04348266f1fae71479c9b1c077556ae Signed-off-by: Rakshitha Shakamuri --- msm/vidc/msm_vidc_buffer_calculations.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/msm/vidc/msm_vidc_buffer_calculations.c b/msm/vidc/msm_vidc_buffer_calculations.c index 558b0ccea280..e6b5a38a60f8 100644 --- a/msm/vidc/msm_vidc_buffer_calculations.c +++ b/msm/vidc/msm_vidc_buffer_calculations.c @@ -245,12 +245,13 @@ #define QMATRIX_SIZE (sizeof(u32) * 128 + 256) #define MP2D_QPDUMP_SIZE 115200 -#define HFI_IRIS2_ENC_PERSIST_SIZE 102400 +#define HFI_VENUS_VPPSG_MAX_REGISTERS 2048 +#define HFI_IRIS2_ENC_PERSIST_SIZE \ + ((((HFI_VENUS_VPPSG_MAX_REGISTERS << 3) + 255) & (~255)) * 10) #define HFI_MAX_COL_FRAME 6 #define HFI_VENUS_VENC_TRE_WB_BUFF_SIZE (65 << 4) // bytes #define HFI_VENUS_VENC_DB_LINE_BUFF_PER_MB 512 -#define HFI_VENUS_VPPSG_MAX_REGISTERS 2048 #define HFI_VENUS_WIDTH_ALIGNMENT 128 #define HFI_VENUS_WIDTH_TEN_BIT_ALIGNMENT 192 #define HFI_VENUS_HEIGHT_ALIGNMENT 32