st/nine: Add dummy ff shader state
authorAxel Davy <davyaxel0@gmail.com>
Sun, 23 Sep 2018 16:21:45 +0000 (18:21 +0200)
committerAxel Davy <davyaxel0@gmail.com>
Tue, 25 Sep 2018 20:05:24 +0000 (22:05 +0200)
commit5f7a41c33b233e315e1214a7692808def9f105f1
tree92e3b4a19f3c5cc30afa99c2b37b0938f85441cf
parentf6bf1d2db081bc78aa256e84dbf11f61084a22b9
st/nine: Add dummy ff shader state

Some states only affect the ff shader,
not its constants.
Currently we don't check anything and
always recompute the ff shader key.

However we do check for NINE_STATE_FF_OTHER
and if set we reupload some constants.

Thus for those states which had NINE_STATE_FF_OTHER
set but didn't need it,
replace by a dummy ff shader state (which is
easier to understand for an external reader than
just setting 0 and more future proof).

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
src/gallium/state_trackers/nine/nine_state.c
src/gallium/state_trackers/nine/nine_state.h