spirv: Add an execution environment to the options
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 22 Mar 2019 05:37:50 +0000 (22:37 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Sat, 23 Mar 2019 16:29:21 +0000 (09:29 -0700)
commit15012077bceda24cbf38afeda7723c47e1b0d3c3
treee46ea43c7ede5cfa99b8f167ae9e2714714cd8df
parentdacb11a585face5ca179c34cfc588a71a425c1e0
spirv: Add an execution environment to the options

Also updates gl_spirv to pick the right one.  At the moment nothing
uses it, but upcoming functionality part of ARB_gl_spirv will use it,
and we also later can be more assertful when handling certain features
for each of the execution environments.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Acked-by: Karol Herbst <kherbst@redhat.com>
src/compiler/spirv/nir_spirv.h
src/mesa/main/glspirv.c