From: Rob Clark <robcl...@freedesktop.org>

Ok, so actually there is a ttn issue here to fix as well.. but it
brought up a question in my mind.  When ttn sees something like

  DCL IN[0..1]

it will treat that as an array (which in the end will result in
constraints about where the registers get allocated.  Which is not
really ideal.

With glsl we don't actually get input arrays (but instead a bunch
of MOV's to a TEMP array) currently.  So I'm not quite sure how
an actual input array should look.  (But my preference would be
IN[a..b] for arrays and IN[c] otherwise)
---
 src/gallium/auxiliary/hud/hud_context.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/hud/hud_context.c 
b/src/gallium/auxiliary/hud/hud_context.c
index 6a124f7..2b6d3a7 100644
--- a/src/gallium/auxiliary/hud/hud_context.c
+++ b/src/gallium/auxiliary/hud/hud_context.c
@@ -1163,7 +1163,8 @@ hud_create(struct pipe_context *pipe, struct cso_context 
*cso)
    {
       static const char *vertex_shader_text = {
          "VERT\n"
-         "DCL IN[0..1]\n"
+         "DCL IN[0]\n"
+         "DCL IN[1]\n"
          "DCL OUT[0], POSITION\n"
          "DCL OUT[1], COLOR[0]\n" /* color */
          "DCL OUT[2], GENERIC[0]\n" /* texcoord */
-- 
2.4.3

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to