st/nine: Capture also default matrices for D3DSBT_ALL
authorAxel Davy <davyaxel0@gmail.com>
Sun, 23 Sep 2018 14:22:01 +0000 (16:22 +0200)
committerAxel Davy <davyaxel0@gmail.com>
Fri, 26 Oct 2018 20:16:16 +0000 (22:16 +0200)
commit2594b2efdc3f250f0e8b6bc5412d509eb693541e
treea05b4b8eb9e5cd73c9c4cdb2b105d7e8f466a805
parentbbeddb801e0ad953a06862412ecd5b8bed51ab5c
st/nine: Capture also default matrices for D3DSBT_ALL

We avoid allocating space for never unused matrices.
However we must do as if we had captured them.
Thus when a D3DSBT_ALL stateblock apply has fewer matrices
than device state, allocate the default matrices for the stateblock
before applying.

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