<div dir="ltr"><div><div>I gave a few trivial comments. Series is<br></div><br></div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 14, 2016 at 10:49 AM, Kenneth Graunke <span dir="ltr"><<a href="mailto:kenneth@whitecape.org" target="_blank">kenneth@whitecape.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>><br>
---<br>
src/compiler/nir/nir_intrinsics.h | 16 +++++++++-------<br>
1 file changed, 9 insertions(+), 7 deletions(-)<br>
<br>
diff --git a/src/compiler/nir/nir_intrinsics.h b/src/compiler/nir/nir_intrinsics.h<br>
index ccca1ff..2f74555 100644<br>
--- a/src/compiler/nir/nir_intrinsics.h<br>
+++ b/src/compiler/nir/nir_intrinsics.h<br>
@@ -331,19 +331,19 @@ SYSTEM_VALUE(channel_num, 1, 0, xx, xx, xx)<br>
#define LOAD(name, srcs, num_indices, idx0, idx1, idx2, flags) \<br>
INTRINSIC(load_##name, srcs, ARR(1, 1, 1, 1), true, 0, 0, num_indices, idx0, idx1, idx2, flags)<br>
<br>
-/* src[] = { offset }. const_index[] = { base } */<br>
+/* src[] = { offset }. const_index[] = { base, range } */<br>
LOAD(uniform, 1, 2, BASE, RANGE, xx, NIR_INTRINSIC_CAN_ELIMINATE | NIR_INTRINSIC_CAN_REORDER)<br>
/* src[] = { buffer_index, offset }. No const_index */<br>
LOAD(ubo, 2, 0, xx, xx, xx, NIR_INTRINSIC_CAN_ELIMINATE | NIR_INTRINSIC_CAN_REORDER)<br>
-/* src[] = { offset }. const_index[] = { base } */<br>
+/* src[] = { offset }. const_index[] = { base, component } */<br>
LOAD(input, 1, 2, BASE, COMPONENT, xx, NIR_INTRINSIC_CAN_ELIMINATE | NIR_INTRINSIC_CAN_REORDER)<br>
-/* src[] = { vertex, offset }. const_index[] = { base } */<br>
+/* src[] = { vertex, offset }. const_index[] = { base, component } */<br>
LOAD(per_vertex_input, 2, 2, BASE, COMPONENT, xx, NIR_INTRINSIC_CAN_ELIMINATE | NIR_INTRINSIC_CAN_REORDER)<br>
/* src[] = { buffer_index, offset }. No const_index */<br>
LOAD(ssbo, 2, 0, xx, xx, xx, NIR_INTRINSIC_CAN_ELIMINATE)<br>
-/* src[] = { offset }. const_index[] = { base } */<br>
+/* src[] = { offset }. const_index[] = { base, component } */<br>
LOAD(output, 1, 1, BASE, COMPONENT, xx, NIR_INTRINSIC_CAN_ELIMINATE)<br>
-/* src[] = { vertex, offset }. const_index[] = { base } */<br>
+/* src[] = { vertex, offset }. const_index[] = { base, component } */<br>
LOAD(per_vertex_output, 2, 1, BASE, COMPONENT, xx, NIR_INTRINSIC_CAN_ELIMINATE)<br>
/* src[] = { offset }. const_index[] = { base } */<br>
LOAD(shared, 1, 1, BASE, xx, xx, NIR_INTRINSIC_CAN_ELIMINATE)<br>
@@ -361,9 +361,11 @@ LOAD(push_constant, 1, 2, BASE, RANGE, xx,<br>
#define STORE(name, srcs, num_indices, idx0, idx1, idx2, flags) \<br>
INTRINSIC(store_##name, srcs, ARR(0, 1, 1, 1), false, 0, 0, num_indices, idx0, idx1, idx2, flags)<br>
<br>
-/* src[] = { value, offset }. const_index[] = { base, write_mask } */<br>
+/* src[] = { value, offset }. const_index[] = { base, write_mask, component } */<br>
STORE(output, 2, 3, BASE, WRMASK, COMPONENT, 0)<br>
-/* src[] = { value, vertex, offset }. const_index[] = { base, write_mask } */<br>
+/* src[] = { value, vertex, offset }.<br>
+ * const_index[] = { base, write_mask, component }<br>
+ */<br>
STORE(per_vertex_output, 3, 3, BASE, WRMASK, COMPONENT, 0)<br>
/* src[] = { value, block_index, offset }. const_index[] = { write_mask } */<br>
STORE(ssbo, 3, 1, WRMASK, xx, xx, 0)<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.9.0<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="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>