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

Skip to content
Commit 14117ec7 authored by Carter Cooper's avatar Carter Cooper
Browse files

msm: kgsl: Remove race condition between profiling and context destroy



Profiliing was saving the context id and then trying to find the context
after the cmdbatch was finished. If the context gets destroyed before
profiling runs, the profiling could would choke and spew garbage out.
Instead of dealing with refcounting the drawctxt, just store all the
information needed in the cmdbatch at the cost of a little wasted space
and a few extra memory writes from the GPU.

CRs-fixed: 613307
Change-Id: Ie7ab1a9c3e86a5a367313ccc83ed19cf4916b58d
Signed-off-by: default avatarCarter Cooper <ccooper@codeaurora.org>
parent 7ec17b77
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment