From: Brian Paul Date: Mon, 14 Sep 2009 21:47:07 +0000 (-0600) Subject: st/xorg: fix ureg_DECL_constant() parameters X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a87a25a65012122dd91256a8d2f3d1c3ffe5de0;p=mesa.git st/xorg: fix ureg_DECL_constant() parameters 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. --- diff --git a/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c b/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c index b30cbff4793..801d0d8df4d 100644 --- a/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c +++ b/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c @@ -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,