[Mesa-dev] [Bug 101467] swr driver leaks memory (texture management)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jun 28 21:10:59 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=101467

--- Comment #1 from Bruce Cherniak <bruce.cherniak at intel.com> ---
Well, technically the swr driver isn't "leaking" memory, it's just deferring
deletion of the underlying storage until a sync point.

Because the loop is simply:
   for (bigly_number_of_textures) {
      allocate_texture()
      draw_something()
      delete_texture()
   }
   read_pixels()

There is nothing forcing synchronization until the read_pixels.  So, at the end
of the loop, there are 5000 free() queued up, that all get flushed on the
read_pixels.  This accounts for ~20GB of allocated system memory.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170628/c77cbc95/attachment-0001.html>


More information about the mesa-dev mailing list