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

Commit 1b108580 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: Remove drawctxt_active from setstate default



drawctxt_active is cleared after the old context is removed
during context switch.  Unfortunately, the context restore calls
adreno_use_default_setstate() which always returns true if
drawctxt_active is NULL, effectively always forcing us down the
software path.

Remove the check - adreno_use_default_setstate() already checks to see
if the GPU is idle and that is a more reliable verification that the
software path is worth going down.

Change-Id: Ic0dedbad57d7783bc23dd925a277a63cd2d78a7e
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent bf70c093
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -893,7 +893,6 @@ static unsigned int _adreno_iommu_setstate_v1(struct kgsl_device *device,
static bool adreno_use_default_setstate(struct adreno_device *adreno_dev)
{
	return (adreno_isidle(&adreno_dev->dev) ||
		adreno_dev->drawctxt_active == NULL ||
		KGSL_STATE_ACTIVE != adreno_dev->dev.state ||
		atomic_read(&adreno_dev->dev.active_cnt) == 0 ||
		adreno_dev->dev.cff_dump_enable);