st/xorg: fix ureg_DECL_constant() parameters
authorBrian Paul <brianp@vmware.com>
Mon, 14 Sep 2009 21:47:07 +0000 (15:47 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 14 Sep 2009 21:47:13 +0000 (15:47 -0600)
This fixes the compilation errors reported in bug 23945 but someone more
familiar with the code should review for correctness and close the bug
report.

src/gallium/state_trackers/xorg/xorg_exa_tgsi.c

index b30cbff4793893d372e522785b72179e1291bd36..801d0d8df4d0c8ba32a5fa20c7cc2b139ded1ba5 100644 (file)
@@ -367,11 +367,11 @@ create_fs(struct pipe_context *pipe,
          else
             src = out;
 
-         coords = ureg_DECL_constant(ureg);
-         const0124 = ureg_DECL_constant(ureg);
-         matrow0 = ureg_DECL_constant(ureg);
-         matrow1 = ureg_DECL_constant(ureg);
-         matrow2 = ureg_DECL_constant(ureg);
+         coords = ureg_DECL_constant(ureg, 0);
+         const0124 = ureg_DECL_constant(ureg, 1);
+         matrow0 = ureg_DECL_constant(ureg, 2);
+         matrow1 = ureg_DECL_constant(ureg, 3);
+         matrow2 = ureg_DECL_constant(ureg, 4);
 
          if (is_lingrad) {
             linear_gradient(ureg, src,