projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97b6634
)
nir/builder: Add a helper for inserting jump instructions
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Sun, 14 Feb 2016 01:14:27 +0000
(17:14 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Thu, 24 Mar 2016 22:20:44 +0000
(15:20 -0700)
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/compiler/nir/nir_builder.h
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_builder.h
b/src/compiler/nir/nir_builder.h
index 64d7b43aa5833d0dcee0d6c1cc70da32312d6e5d..de5b6cee58154bd8bbe5fdd31562ea8d63f6c009 100644
(file)
--- a/
src/compiler/nir/nir_builder.h
+++ b/
src/compiler/nir/nir_builder.h
@@
-393,4
+393,11
@@
nir_load_system_value(nir_builder *build, nir_intrinsic_op op, int index)
return &load->dest.ssa;
}
+static inline void
+nir_jump(nir_builder *build, nir_jump_type jump_type)
+{
+ nir_jump_instr *jump = nir_jump_instr_create(build->shader, jump_type);
+ nir_builder_instr_insert(build, &jump->instr);
+}
+
#endif /* NIR_BUILDER_H */