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

Commit ed5cf77f authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Enable internal buffer size calculation for decoder"

parents 1d5a3ac7 6a53b6c9
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

@@ -585,8 +586,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;
}
@@ -1714,5 +1716,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;
}