<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">On Jan 2, 2017 06:03, "Ilia Mirkin" <<a href="mailto:imirkin@alum.mit.edu">imirkin@alum.mit.edu</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu">imirkin@alum.mit.edu</a>><br>
---<br>
src/gallium/auxiliary/tgsi/<wbr>tgsi_info.c | 2 +-<br>
src/gallium/docs/source/tgsi.<wbr>rst | 11 +++++++++++<br>
src/gallium/include/pipe/p_<wbr>shader_tokens.h | 2 +-<br>
3 files changed, 13 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/gallium/auxiliary/tgsi/<wbr>tgsi_info.c b/src/gallium/auxiliary/tgsi/<wbr>tgsi_info.c<br>
index 37549aa..e34b8c7 100644<br>
--- a/src/gallium/auxiliary/tgsi/<wbr>tgsi_info.c<br>
+++ b/src/gallium/auxiliary/tgsi/<wbr>tgsi_info.c<br>
@@ -106,7 +106,7 @@ static const struct tgsi_opcode_info opcode_info[TGSI_OPCODE_LAST] =<br>
{ 1, 3, 0, 0, 0, 0, 0, COMP, "CMP", TGSI_OPCODE_CMP },<br>
{ 1, 1, 0, 0, 0, 0, 0, CHAN, "SCS", TGSI_OPCODE_SCS },<br>
{ 1, 2, 1, 0, 0, 0, 0, OTHR, "TXB", TGSI_OPCODE_TXB },<br>
- { 0, 1, 0, 0, 0, 0, 1, NONE, "", 69 }, /* removed */<br>
+ { 1, 1, 0, 0, 0, 0, 0, OTHR, "FBFETCH", TGSI_OPCODE_FBFETCH },<br>
{ 1, 2, 0, 0, 0, 0, 0, COMP, "DIV", TGSI_OPCODE_DIV },<br>
{ 1, 2, 0, 0, 0, 0, 0, REPL, "DP2", TGSI_OPCODE_DP2 },<br>
{ 1, 2, 1, 0, 0, 0, 0, OTHR, "TXL", TGSI_OPCODE_TXL },<br>
diff --git a/src/gallium/docs/source/<wbr>tgsi.rst b/src/gallium/docs/source/<wbr>tgsi.rst<br>
index d2d30b4..accbe1d 100644<br>
--- a/src/gallium/docs/source/<wbr>tgsi.rst<br>
+++ b/src/gallium/docs/source/<wbr>tgsi.rst<br>
@@ -2561,6 +2561,17 @@ Resource Access Opcodes<br>
image, while .w will contain the number of samples for multi-sampled<br>
images.<br>
<br>
+.. opcode:: FBFETCH - Load data from framebuffer<br>
+<br>
+ Syntax: ``FBFETCH dst, output``<br>
+<br>
+ Example: ``FBFETCH TEMP[0], OUT[0]``<br>
+<br>
+ Returns the color of the current position in the framebuffer from<br>
+ before this fragment shader invocation. Always returns the same<br>
+ value from multiple calls for a particular output within a single<br>
+ invocation.<br>
+<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div></div><div dir="auto">What does this instruction do under MRT? Tegra (AR20) has the ability to select the MRT index... </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
.. _threadsyncopcodes:<br>
<br>
diff --git a/src/gallium/include/pipe/p_<wbr>shader_tokens.h b/src/gallium/include/pipe/p_<wbr>shader_tokens.h<br>
index ee59df0..328768f 100644<br>
--- a/src/gallium/include/pipe/p_<wbr>shader_tokens.h<br>
+++ b/src/gallium/include/pipe/p_<wbr>shader_tokens.h<br>
@@ -397,7 +397,7 @@ struct tgsi_property_data {<br>
#define TGSI_OPCODE_CMP 66<br>
#define TGSI_OPCODE_SCS 67<br>
#define TGSI_OPCODE_TXB 68<br>
- /* gap */<br>
+#define TGSI_OPCODE_FBFETCH 69<br>
#define TGSI_OPCODE_DIV 70<br>
#define TGSI_OPCODE_DP2 71<br>
#define TGSI_OPCODE_TXL 72<br>
<font color="#888888">--<br>
2.10.2<br>
<br>
______________________________<wbr>_________________<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/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></blockquote></div><br></div></div></div>