mesa/src/intel/blorp
Jason Ekstrand 43dadb6edd intel/blorp: Rework our usage of ralloc when compiling shaders
Previously, we were creating the shader with a NULL ralloc context and then
trusting in blorp_compile_fs to clean it up.  The only problem was that
blorp_compile_fs didn't clean up its context properly so we were leaking.
When I went to fix that, I realized that it couldn't because it has to
return the shader binary which is allocated off of that context and used by
the caller.  The solution is to make blorp_compile_fs take a ralloc
context, allocate the nir_shaders directly off that context, and clean it
all up in whatever function creates the shader and calls blorp_compile_fs.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Cc: "12.0, 13.0" <mesa-stable@lists.freedesktop.org>
2016-10-27 22:46:13 -07:00
..
blorp.c intel/blorp: Rework our usage of ralloc when compiling shaders 2016-10-27 22:46:13 -07:00
blorp.h intel/blorp: Add a flag to make blorp not re-emit dept/stencil buffers 2016-10-14 15:39:41 -07:00
blorp_blit.c intel/blorp: Rework our usage of ralloc when compiling shaders 2016-10-27 22:46:13 -07:00
blorp_clear.c intel/blorp: Rework our usage of ralloc when compiling shaders 2016-10-27 22:46:13 -07:00
blorp_genX_exec.h intel/blorp: Add a flag to make blorp not re-emit dept/stencil buffers 2016-10-14 15:39:41 -07:00
blorp_priv.h intel/blorp: Rework our usage of ralloc when compiling shaders 2016-10-27 22:46:13 -07:00
TODO intel/blorp: Add a TODO file 2016-09-12 10:14:49 -07:00