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

Commit 3fd4f55f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Align width & height to 16 prior to calculating the load"

parents 5cb85cfd e12205e0
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -60,13 +60,11 @@

#define EXTRADATA_IDX(__num_planes) (__num_planes - 1)

#define NUM_MBS_PER_SEC(__height, __width, __fps) ({\
	(__height / 16) * (__width  / 16) * __fps; \
})
#define NUM_MBS_PER_SEC(__height, __width, __fps) \
	(NUM_MBS_PER_FRAME(__height, __width) * __fps)

#define NUM_MBS_PER_FRAME(__height, __width) ({\
	((__height + 15) >> 4) * ((__width + 15) >> 4); \
})
#define NUM_MBS_PER_FRAME(__height, __width) \
	((ALIGN(__height, 16) / 16) * (ALIGN(__width, 16) / 16))

/* Default threshold to reduce the core frequency */
#define DCVS_NOMINAL_THRESHOLD 8