st/nine: Fix D3DPMISCCAPS_FOGANDSPECULARALPHA support
authorAxel Davy <axel.davy@ens.fr>
Sat, 17 Oct 2015 11:54:18 +0000 (13:54 +0200)
committerAxel Davy <axel.davy@ens.fr>
Thu, 4 Feb 2016 21:12:17 +0000 (22:12 +0100)
commitdbb03f6b5be628e65e09cc822d71f9e6b962a070
tree75641e25e69e11fa3e47c0ed440a872e9e7291e0
parent9298a0b81b29ee339e33a3b343e9023f174adb88
st/nine: Fix D3DPMISCCAPS_FOGANDSPECULARALPHA support

The documentation of the flag doesn't make sense.
To sum up the doc, if not set, specular alpha contains fog,
and if set specular alpha contains 0 (except for ff).

However in practice when the flag is there, apps do use specular alpha
as if it could be used normally, which makes much more sense than the doc.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
src/gallium/state_trackers/nine/adapter9.c
src/gallium/state_trackers/nine/nine_shader.c