BTW I remember that somebody said shader outputs (and inputs?) are not indexable in TGSI, but now I added the CAP for it. Should that CAP go away or are we gonna allow it?<br><br>Marek<br><br><div class="gmail_quote">On Wed, Nov 10, 2010 at 9:29 PM, Marek Olšák <span dir="ltr">&lt;<a href="mailto:maraeo@gmail.com" target="_blank">maraeo@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Required because ATI and NVIDIA DX9 GPUs do not support indirect addressing<br>
of temps, inputs, outputs, and consts (FS-only) or the hw support is so<br>
limited that we cannot use it.<br>
<br>
This should make r300g and possibly nvfx more feature complete.<br>
<br>
Signed-off-by: Marek Olšák &lt;<a href="mailto:maraeo@gmail.com" target="_blank">maraeo@gmail.com</a>&gt;<br>
---<br>
 src/gallium/include/pipe/p_defines.h   |    5 +++++<br>
 src/mesa/state_tracker/st_extensions.c |    9 +++++++++<br>
 2 files changed, 14 insertions(+), 0 deletions(-)<br>
<br>
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h<br>
index 53f7b60..6cca301 100644<br>
--- a/src/gallium/include/pipe/p_defines.h<br>
+++ b/src/gallium/include/pipe/p_defines.h<br>
@@ -483,7 +483,12 @@ enum pipe_shader_cap<br>
    PIPE_SHADER_CAP_MAX_TEMPS,<br>
    PIPE_SHADER_CAP_MAX_ADDRS,<br>
    PIPE_SHADER_CAP_MAX_PREDS,<br>
+   /* boolean caps */<br>
    PIPE_SHADER_CAP_TGSI_CONT_SUPPORTED,<br>
+   PIPE_SHADER_CAP_INDIRECT_INPUT_ADDR,<br>
+   PIPE_SHADER_CAP_INDIRECT_OUTPUT_ADDR,<br>
+   PIPE_SHADER_CAP_INDIRECT_TEMP_ADDR,<br>
+   PIPE_SHADER_CAP_INDIRECT_CONST_ADDR,<br>
 };<br>
<br>
 /**<br>
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c<br>
index 2720f44..1327491 100644<br>
--- a/src/mesa/state_tracker/st_extensions.c<br>
+++ b/src/mesa/state_tracker/st_extensions.c<br>
@@ -175,6 +175,15 @@ void st_init_limits(struct st_context *st)<br>
<br>
       options-&gt;EmitNoCont = !screen-&gt;get_shader_param(screen, i, PIPE_SHADER_CAP_TGSI_CONT_SUPPORTED);<br>
<br>
+      options-&gt;EmitNoIndirectInput = !screen-&gt;get_shader_param(screen, i,<br>
+                                        PIPE_SHADER_CAP_INDIRECT_INPUT_ADDR);<br>
+      options-&gt;EmitNoIndirectOutput = !screen-&gt;get_shader_param(screen, i,<br>
+                                        PIPE_SHADER_CAP_INDIRECT_OUTPUT_ADDR);<br>
+      options-&gt;EmitNoIndirectTemp = !screen-&gt;get_shader_param(screen, i,<br>
+                                        PIPE_SHADER_CAP_INDIRECT_TEMP_ADDR);<br>
+      options-&gt;EmitNoIndirectUniform = !screen-&gt;get_shader_param(screen, i,<br>
+                                        PIPE_SHADER_CAP_INDIRECT_CONST_ADDR);<br>
+<br>
       if(options-&gt;EmitNoLoops)<br>
          options-&gt;MaxUnrollIterations = MIN2(screen-&gt;get_shader_param(screen, i, PIPE_SHADER_CAP_MAX_INSTRUCTIONS), 65536);<br>
    }<br>
<font color="#888888">--<br>
1.7.0.4<br>
<br>
</font></blockquote></div><br>