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

Commit 34d3db4c authored by Shubhraprakash Das's avatar Shubhraprakash Das
Browse files

msm: kgsl: Save type0 objects in set draw state packets



Save the type0 objects found in set draw state packet when
parsing of the packet completes. Usually these objects are
saved when a draw call is encountered but a set draw
state packet may not have a draw call.

Change-Id: I6e1dfe0e3721d7e468ed0e06005c744243e304ec
Signed-off-by: default avatarShubhraprakash Das <sadas@codeaurora.org>
parent ce0f6f46
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -794,6 +794,15 @@ static int adreno_ib_find_objs(struct kgsl_device *device,
	}

done:
	/*
	 * For set draw objects there may not be a draw_indx packet at its end
	 * to signal that we need to save the found objects in it, so just save
	 * it here.
	 */
	if (!ret && SNAPSHOT_GPU_OBJECT_DRAW == obj_type)
		ret = ib_add_type0_entries(device, ptbase, ib_obj_list,
			&ib_parse_vars);

	kgsl_memdesc_unmap(&entry->memdesc);
	kgsl_mem_entry_put(entry);
	return ret;