[Mesa-dev] [PATCH] freedreno: unreference resources on context destruction

Ilia Mirkin imirkin at alum.mit.edu
Tue Oct 6 15:52:46 PDT 2015


On Tue, Oct 6, 2015 at 6:39 PM, Eric Anholt <eric at anholt.net> wrote:
> r<#secure method=pgpmime mode=sign>
> Ilia Mirkin <imirkin at alum.mit.edu> writes:
>
>> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
>
> It looks like cso_destroy_context should already be making you
> unreference a bunch of this stuff.  Am I missing something?

I may have gone a little overboard, but some of this stuff was
definitely leaking. Looking over the cso_destroy_context code, I'm not
100% sure why it's happening either. But all the other drivers do this
as well. I guess I should take a closer look...

  -ilia


More information about the mesa-dev mailing list