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

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

Merge "msm: kgsl: Return EOPNOTSUPP for A3XX command batch profiling"

parents 7e1c9436 3ef7889b
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -801,6 +801,11 @@ adreno_ringbuffer_issueibcmds(struct kgsl_device_private *dev_priv,
		&& !(cmdbatch->flags & KGSL_CMDBATCH_SYNC))
		&& !(cmdbatch->flags & KGSL_CMDBATCH_SYNC))
		device->flags &= ~KGSL_FLAG_WAKE_ON_TOUCH;
		device->flags &= ~KGSL_FLAG_WAKE_ON_TOUCH;


	/* A3XX does not have support for command batch profiling */
	if (adreno_is_a3xx(adreno_dev) &&
			(cmdbatch->flags & KGSL_CMDBATCH_PROFILING))
		return -EOPNOTSUPP;

	/* Queue the command in the ringbuffer */
	/* Queue the command in the ringbuffer */
	ret = adreno_dispatcher_queue_cmd(adreno_dev, drawctxt, cmdbatch,
	ret = adreno_dispatcher_queue_cmd(adreno_dev, drawctxt, cmdbatch,
		timestamp);
		timestamp);