spirv: Re-arrange vtn_builder initialization
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 16 Aug 2017 23:10:23 +0000 (16:10 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 4 Dec 2017 17:21:09 +0000 (09:21 -0800)
commit11bd753c4ece5eafa6fc7c416d25f60371758e1b
treea28758972a4533e6ab389a9a0308fe679cd30fae
parentd74bec1a544e8d2df5e92504bd095a542bb8a4ac
spirv: Re-arrange vtn_builder initialization

This simply moves allocating the vtn_builder and initializing it to the
very beginning before we even parse the header.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Ian Romanick <idr@freedesktop.org>
src/compiler/spirv/spirv_to_nir.c