forked from rubenslte/android_kernel_samsung_msm8226
msm: kgsl: remove unneeded idle calls from context create
These idles were necessary when the context switch code preserved PM_OVERRIDE registers. That was removed some time ago so now the idles are not needed. CRs-Fixed: 331325 Change-Id: I90d4e1685f213a5720bf6da4e6d4a187d1eb0689 Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>
This commit is contained in:
@@ -1320,7 +1320,6 @@ static int a2xx_ctxt_gpustate_shadow(struct adreno_device *adreno_dev,
|
||||
= (unsigned int *)((char *)drawctxt->gpustate.hostptr + CMD_OFFSET);
|
||||
|
||||
/* build indirect command buffers to save & restore regs/constants */
|
||||
adreno_idle(&adreno_dev->dev, KGSL_TIMEOUT_DEFAULT);
|
||||
build_regrestore_cmds(adreno_dev, drawctxt);
|
||||
build_regsave_cmds(adreno_dev, drawctxt);
|
||||
|
||||
@@ -1366,8 +1365,6 @@ static int a2xx_ctxt_gmem_shadow(struct adreno_device *adreno_dev,
|
||||
tmp_ctx.cmd = build_chicken_restore_cmds(drawctxt);
|
||||
|
||||
/* build indirect command buffers to save & restore gmem */
|
||||
/* Idle because we are reading PM override registers */
|
||||
adreno_idle(&adreno_dev->dev, KGSL_TIMEOUT_DEFAULT);
|
||||
drawctxt->context_gmem_shadow.gmem_save_commands = tmp_ctx.cmd;
|
||||
tmp_ctx.cmd =
|
||||
build_gmem2sys_cmds(adreno_dev, drawctxt,
|
||||
|
||||
Reference in New Issue
Block a user