For the 3D enabled case, that sounds a lot like the memory leak for which I submitted the fix to mesa recently. The fix has been included in mesa version 26.1.7, could you try with that version? I see you're using mesa 26.1.6 right now.
-- Maaz Mombasawala <[email protected]>
