[Bug 104884] memory leak with intel i965 mesa when running android container in Ubuntu
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Feb 14 13:24:25 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=104884
--- Comment #12 from Tapani Pälli <lemody at gmail.com> ---
(In reply to Tapani Pälli from comment #11)
> (In reply to Simon Hausmann from comment #10)
> > Created attachment 137353 [details] [review] [review]
> > Simple patch that changes glsl_type to manage its own memory
> >
> > I've made a patch that attempts to simplify the glsl_type memory management
> > and as a bonus also gets rid of the global mutex. Is this patch worth
> > submitting to the list?
>
> Cool, yeah it looks like it would work, I guess strdup needs to be
> util_strdup. I thought about this earlier but I wonder if the reason for
> having the global context is that there are a *lot* of types so now we will
> have loads of ralloc contexts .. not sure. Please send to mesa-dev for
> discussion?
The reason for global context is that we want these glsl_types to live during
the lifetime of context until compiler gets destroyed and only destroy them at
end. This way all shaders will enjoy using the types and not needing to create
the same types all the time. So whatever the fix is, that functionality likely
needs to stay.
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20180214/fa0d4942/attachment.html>
More information about the intel-3d-bugs
mailing list