compiler/blob: Switch to init/finish instead of create/destroy
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 11 Oct 2017 16:44:33 +0000 (09:44 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 13 Oct 2017 04:47:06 +0000 (21:47 -0700)
commit49bb9f785af8349f3245bc223cb7e0e40b9fa243
treec4d2ef614b9de4a62d480d0493a1cd857e15ff4e
parent0e3bd56c6ea783dbc93fce71cec98ab859782a81
compiler/blob: Switch to init/finish instead of create/destroy

There's no reason why that tiny bit of memory needs to be on the heap.
We always put blob_reader on the stack, so why not do the same with the
writable blob.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/compiler/blob.c
src/compiler/blob.h
src/compiler/glsl/shader_cache.cpp
src/compiler/glsl/tests/blob_test.c
src/mesa/state_tracker/st_shader_cache.c