[Mesa-dev] [PATCH v2 21/25] spirv: Add nir_options to vtn_builder
Juan A. Suarez Romero
jasuarez at igalia.com
Fri Dec 16 14:49:07 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 380fbae..11f6248 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -3061,6 +3061,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 4b2721e..d559e87 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.9.3
More information about the mesa-dev
mailing list