From 8be096244d302cd4fde3565cf90747d586f53bdb Mon Sep 17 00:00:00 2001 From: SecureCRT Date: Tue, 19 Jun 2012 21:46:18 +0800 Subject: [PATCH] msm: kgsl: Fix when GMEM is saved for A2xx Saving GMEM is set when doing context switching and should not be set when creating the gmem shadow. --- drivers/gpu/msm/adreno_a2xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/msm/adreno_a2xx.c b/drivers/gpu/msm/adreno_a2xx.c index c0a0a59a..9e167c65 100755 --- a/drivers/gpu/msm/adreno_a2xx.c +++ b/drivers/gpu/msm/adreno_a2xx.c @@ -1254,8 +1254,8 @@ static int a2xx_create_gmem_shadow(struct adreno_device *adreno_dev, if (result) return result; - /* we've allocated the shadow, when swapped out, GMEM must be saved. */ - drawctxt->flags |= CTXT_FLAGS_GMEM_SHADOW | CTXT_FLAGS_GMEM_SAVE; + /* set the gmem shadow flag for the context */ + drawctxt->flags |= CTXT_FLAGS_GMEM_SHADOW; /* blank out gmem shadow. */ kgsl_sharedmem_set(&drawctxt->context_gmem_shadow.gmemshadow, 0, 0,