[Mesa-dev] [PATCH 0/3] save about 1MB per llvm vertex shader

Frank Henigman fjhenigman at google.com
Fri Jun 14 12:08:27 PDT 2013

Patch 1 changes how llvm allocates memory to hold generated code, and will
save memory for llvm vertex shaders, geometry shaders and llvmpipe.  It's
not so pretty but llvm makes life difficult for us: default memory manager
is not accessible to derive from.  I also tried generating relocatable code
so it could just be copied out, but it would crash in that code.  (Didn't
dig into why.)
Patch 3 saves additional memory but so far only for vertex shaders.  At a
glance it seems simple to do the same for geometry shaders and llvmpipe.
 I'll take a stab at those if there is interest.

No piglit regressions on pineview with gallium driver.  This code has also
been in Chrome OS for a few months.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130614/5646e5f2/attachment-0001.html>

More information about the mesa-dev mailing list