freedreno/a3xx/compiler: make IR heap dyanmic

Graphics / Mesa 3D Graphics Library / Mesa - Rob Clark [freedesktop.org] - 25 July 2014 12:29 UTC

The fixed size heap is a remnant of the fdre-a3xx assembler. Yet it is convenient for being able to free the entire data structure in one shot without worrying about leaking nodes.

Change it to dynamically grow the heap size (adding chunks) as needed so we don't have an artificial upper limit on shader size (other than hw limits) and don't always have to allocate worst-case size.

9613ca5 freedreno/a3xx/compiler: make IR heap dyanmic
src/gallium/drivers/freedreno/a3xx/ir3.c | 43 +++++++++++++++++++++++++++---
src/gallium/drivers/freedreno/a3xx/ir3.h | 8 +++---
2 files changed, 43 insertions(+), 8 deletions(-)

Upstream: cgit.freedesktop.org


  • Share