st/nine: Rework constant buffer state handling
authorAxel Davy <axel.davy@ens.fr>
Tue, 24 Mar 2015 09:47:35 +0000 (10:47 +0100)
committerAxel Davy <axel.davy@ens.fr>
Fri, 21 Aug 2015 20:21:47 +0000 (22:21 +0200)
commit993e68fa6a431a7c7c451c738e07d02a84ea40e4
treedd5e7188fddf83f29acf4b15a0b1c6328bb22c32
parenta3f0d21da9a33e58a4be41f65f77eebe1dd85841
st/nine: Rework constant buffer state handling

We have two paths:
. One that uses a fixed constant buffer, and updates it when needed
. One that uses a user constant buffer, and uploads it when needed.

This patch separates the preparation of the constant buffer
and the commit.

It also removes NineDevice9_RestoreNonCSOState, which was
used to restore all states. Instead the commit of the constant
buffer is moved to nine_state, and the other field settings
moved to other functions where more appropriate.

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