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

Commit f36b3b6a authored by Lynus Vaz's avatar Lynus Vaz
Browse files

msm: kgsl: Fix the NULL context submission size



When submitting commands with a NULL context the size may not be
calculated properly. Fix this calculation.

Change-Id: Idcc37772349673da8a9b9d5127f88946ced8fff6
Signed-off-by: default avatarLynus Vaz <lvaz@codeaurora.org>
parent 63a67de8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -652,7 +652,8 @@ adreno_ringbuffer_addcmds(struct adreno_ringbuffer *rb,
	total_sizedwords += (flags & KGSL_CMD_FLAGS_INTERNAL_ISSUE) ? 2 : 0;

	/* Add two dwords for the CP_INTERRUPT */
	total_sizedwords += drawctxt ? 2 : 0;
	total_sizedwords +=
		(drawctxt || (flags & KGSL_CMD_FLAGS_INTERNAL_ISSUE)) ?  2 : 0;

	/* context rollover */
	if (adreno_is_a3xx(adreno_dev))