[Mesa-dev] [PATCH 18/22] spirv: Add nir_options to vtn_builder
Juan A. Suarez Romero
jasuarez at igalia.com
Fri Nov 25 08:52:48 UTC 2016
From: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
Signed-off-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
---
src/compiler/spirv/spirv_to_nir.c | 1 +
src/compiler/spirv/vtn_private.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index 82d81aa..70e45c1 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -3096,6 +3096,7 @@ spirv_to_nir(const uint32_t *words, size_t word_count,
exec_list_make_empty(&b->functions);
b->entry_point_stage = stage;
b->entry_point_name = entry_point_name;
+ b->nir_options = options;
/* Handle all the preamble instructions */
words = vtn_foreach_instruction(b, words, word_end,
diff --git a/src/compiler/spirv/vtn_private.h b/src/compiler/spirv/vtn_private.h
index 7159f8b..cc841e7 100644
--- a/src/compiler/spirv/vtn_private.h
+++ b/src/compiler/spirv/vtn_private.h
@@ -344,6 +344,7 @@ struct vtn_decoration {
struct vtn_builder {
nir_builder nb;
+ const nir_shader_compiler_options *nir_options;
nir_shader *shader;
nir_function_impl *impl;
--
2.7.4
More information about the mesa-dev
mailing list