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

Commit a7af8aab authored by Shubhraprakash Das's avatar Shubhraprakash Das
Browse files

msm: kgsl: Pass the size of IB2 in dwords when saving it in snapshot



The push_object function that saves an IB in snapshot expects the size
of the IB in dwords. The byte-size of IB2 was passed to this function
instead of dwords. Fix this.

Change-Id: I7619696246129da2037338eec1325b80f0c4f321
Signed-off-by: default avatarShubhraprakash Das <sadas@codeaurora.org>
parent e6edf782
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -155,7 +155,7 @@ static int snapshot_freeze_obj_list(struct kgsl_device *device,
			/* Save current IB2 statically */
			if (ib2base == ib_objs->gpuaddr) {
				push_object(device, SNAPSHOT_OBJ_TYPE_IB,
				ptbase, ib_objs->gpuaddr, ib_objs->size);
				ptbase, ib_objs->gpuaddr, ib_objs->size >> 2);
			} else {
				temp_ret = kgsl_snapshot_get_object(device,
					ptbase, ib_objs->gpuaddr, ib_objs->size,