summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2019-03-21 22:37:50 -0700
committerCaio Marcelo de Oliveira Filho <[email protected]>2019-03-23 09:29:21 -0700
commit15012077bceda24cbf38afeda7723c47e1b0d3c3 (patch)
treee46ea43c7ede5cfa99b8f167ae9e2714714cd8df /src/mesa
parentdacb11a585face5ca179c34cfc588a71a425c1e0 (diff)
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 <[email protected]> Acked-by: Karol Herbst <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/glspirv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/glspirv.c b/src/mesa/main/glspirv.c
index 227971091e1..84550e96ff6 100644
--- a/src/mesa/main/glspirv.c
+++ b/src/mesa/main/glspirv.c
@@ -211,6 +211,7 @@ _mesa_spirv_to_nir(struct gl_context *ctx,
}
const struct spirv_to_nir_options spirv_options = {
+ .environment = NIR_SPIRV_OPENGL,
.lower_workgroup_access_to_offsets = true,
.lower_ubo_ssbo_access_to_offsets = true,
.caps = ctx->Const.SpirVCapabilities