<p dir="ltr">R-B me too</p>
<div class="gmail_quote">On Jul 16, 2015 5:19 PM, "Kenneth Graunke" <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Connor Abbott <<a href="mailto:connor.w.abbott@intel.com">connor.w.abbott@intel.com</a>><br>
<br>
Reviewed-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>><br>
---<br>
src/glsl/nir/nir.h | 12 ++++++++++++<br>
1 file changed, 12 insertions(+)<br>
<br>
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h<br>
index e9a506c..0db1fc3 100644<br>
--- a/src/glsl/nir/nir.h<br>
+++ b/src/glsl/nir/nir.h<br>
@@ -443,6 +443,18 @@ nir_instr_prev(nir_instr *instr)<br>
return exec_node_data(nir_instr, prev, node);<br>
}<br>
<br>
+static inline bool<br>
+nir_instr_is_first(nir_instr *instr)<br>
+{<br>
+ return exec_node_is_head_sentinel(exec_node_get_prev(&instr->node));<br>
+}<br>
+<br>
+static inline bool<br>
+nir_instr_is_last(nir_instr *instr)<br>
+{<br>
+ return exec_node_is_tail_sentinel(exec_node_get_next(&instr->node));<br>
+}<br>
+<br>
typedef struct {<br>
/** for debugging only, can be NULL */<br>
const char* name;<br>
--<br>
2.4.5<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>