From d216dcee94d5adf72b8d7dee794ff7b3f1cd499f Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 4 May 2015 10:22:52 -0700 Subject: [PATCH] nir/spirv: Add a helper for getting a value as an SSA value --- src/glsl/nir/spirv_to_nir.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/glsl/nir/spirv_to_nir.c b/src/glsl/nir/spirv_to_nir.c index ef42b14..840b4c6 100644 --- a/src/glsl/nir/spirv_to_nir.c +++ b/src/glsl/nir/spirv_to_nir.c @@ -107,6 +107,12 @@ vtn_value(struct vtn_builder *b, uint32_t value_id, return val; } +static nir_ssa_def * +vtn_ssa_value(struct vtn_builder *b, uint32_t value_id) +{ + return vtn_value(b, value_id, vtn_value_type_ssa)->ssa; +} + static char * vtn_string_literal(struct vtn_builder *b, const uint32_t *words, unsigned word_count) -- 2.7.4