projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f36fabb
)
nir/spirv: Add a helper for getting a value as an SSA value
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 4 May 2015 17:22:52 +0000
(10:22 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 31 Aug 2015 23:58:20 +0000
(16:58 -0700)
src/glsl/nir/spirv_to_nir.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/spirv_to_nir.c
b/src/glsl/nir/spirv_to_nir.c
index ef42b14c41eea3a03e55166377d70778d1ae9915..840b4c6fc65170f300fa7a4a350b51fdab62912c 100644
(file)
--- 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)