Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a53b6c9 authored by Vaibhav Deshu Venkatesh's avatar Vaibhav Deshu Venkatesh
Browse files

msm: vidc: Enable internal buffer size calculation for decoder



Currently buffer size calculation for internal buffers is
disabled. Enable it for decoders as per firmware update.

CRs-Fixed: 2368458
Change-Id: I126e5caa459482b6dfb13dd0bb98da893d0e1c82
Signed-off-by: default avatarVaibhav Deshu Venkatesh <vdeshuve@codeaurora.org>
parent e222d4df
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -238,6 +238,7 @@
#define CCE_TILE_OFFSET_SIZE ALIGN(32 * 4 * 4, BUFFER_ALIGNMENT_SIZE(32))

#define QMATRIX_SIZE (sizeof(u32) * 128 + 256)
#define MP2D_QPDUMP_SIZE 115200

#define HFI_IRIS2_ENC_PERSIST_SIZE 102400

@@ -584,8 +585,9 @@ void msm_vidc_init_buffer_size_calculators(struct msm_vidc_inst *inst)
	inst->buffer_size_calculators = NULL;
	core = inst->core;

	/* Change this to IRIS2 once firmware is ready with changes */
	if (core->platform_data->vpu_ver == VPU_VERSION_AR50)
	/* Only decoder is enabled for now */
	if ((core->platform_data->vpu_ver == VPU_VERSION_IRIS2) &&
		(inst->session_type == MSM_VIDC_DECODER))
		inst->buffer_size_calculators =
			msm_vidc_calculate_internal_buffer_sizes;
}
@@ -1717,5 +1719,5 @@ static inline u32 calculate_vp9d_persist1_size(void)

static inline u32 calculate_mpeg2d_persist1_size(void)
{
	return QMATRIX_SIZE;
	return QMATRIX_SIZE + MP2D_QPDUMP_SIZE;
}