st/nine: Fix ff SPECULARENABLE
authorAxel Davy <axel.davy@ens.fr>
Sat, 24 Sep 2016 20:19:14 +0000 (22:19 +0200)
committerAxel Davy <axel.davy@ens.fr>
Mon, 10 Oct 2016 21:43:50 +0000 (23:43 +0200)
commitab068a78d39815d723b8b2b30dc4477c4ad7fa1a
tree44c57c830d8fefd839d276fbfc3cd4ba31c7f046
parent1d7890a4412ae0d6ac7ebdd9c1baacb48e404399
st/nine: Fix ff SPECULARENABLE

We were (wrongly) adding specular to diffuse
in vertex shaders when SPECULARENABLE was set.

However the spec says specular has to be added
after texture processing (which is in ps).
Besides SPECULARENABLE is flagged as a pixel state.

There was unused support for SPECULARENABLE
in the ps ff code.
Remove the vs code, and use the ps code.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/nine_ff.c