spirv: Handle constants and types before execution modes
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 22 Jan 2019 19:42:08 +0000 (13:42 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 1 Feb 2019 17:34:02 +0000 (17:34 +0000)
commite68871f6a44fe25f5ed0289aa4b5e6064fe78412
tree049d1f6763986c83b9f19922fbe1b258fe92432e
parent7d862ef53024b70458929c1665af43573b4d07ff
spirv: Handle constants and types before execution modes

We already defer handling the actual execution modes until after we've
created the shader.  This just moves it a tiny bit further so we
actually have constants and types and can handle OpExecutionModeId.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/spirv/spirv_to_nir.c