summaryrefslogtreecommitdiffstats
path: root/src/compiler/spirv/vtn_private.h
diff options
context:
space:
mode:
authorAlejandro Piñeiro <[email protected]>2018-01-18 12:24:38 +0100
committerAlejandro Piñeiro <[email protected]>2018-03-30 09:14:56 +0200
commitbebe3d626e562bd2dd027f9bcd5fdeeab62997cd (patch)
tree93b771681ba246edeec7249e94e5334ce1e60caa /src/compiler/spirv/vtn_private.h
parent3761e675e27b85f43fe86afe37326c9012577e4b (diff)
spirv: add vtn_create_builder
Refactored from spirv_to_nir, in order to be reused later. Reviewed-by: Timothy Arceri <[email protected]> v2: renamed method (from vtn_builder_create), add explanatory comment (Timothy)
Diffstat (limited to 'src/compiler/spirv/vtn_private.h')
-rw-r--r--src/compiler/spirv/vtn_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/spirv/vtn_private.h b/src/compiler/spirv/vtn_private.h
index bbc63ad20d6..47d06f0f919 100644
--- a/src/compiler/spirv/vtn_private.h
+++ b/src/compiler/spirv/vtn_private.h
@@ -719,6 +719,10 @@ void vtn_handle_subgroup(struct vtn_builder *b, SpvOp opcode,
bool vtn_handle_glsl450_instruction(struct vtn_builder *b, uint32_t ext_opcode,
const uint32_t *words, unsigned count);
+struct vtn_builder* vtn_create_builder(const uint32_t *words, size_t word_count,
+ gl_shader_stage stage, const char *entry_point_name,
+ const struct spirv_to_nir_options *options);
+
static inline uint32_t
vtn_align_u32(uint32_t v, uint32_t a)
{