st/nine: Correctly declare NineTranslateInstruction_Mkxn inputs
authorAxel Davy <axel.davy@ens.fr>
Fri, 26 Dec 2014 08:22:26 +0000 (09:22 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 22 Jan 2015 22:16:20 +0000 (22:16 +0000)
commit53dc992f204678acb9af9d1b11c1be371400930c
tree7c2528ac45182d0847bdb177f3ee9f93f18174df
parent9fb58a74a04df02904317acfbd383f53305eed67
st/nine: Correctly declare NineTranslateInstruction_Mkxn inputs

Let's say we have c1 and c2 declared in the shader and c0 given by the app

Then here we would have read c0, c1 and c2 given by the app, instead
of the correct c0, c1, c2.

This correction fixes several issues in some games.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
Cc: "10.4" <mesa-stable@lists.freedesktop.org>
src/gallium/state_trackers/nine/nine_shader.c