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.
This commit is contained in:
parent
2f3f4d14f9
commit
8be096244d
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user