st/nine: Improve fallback when driver doesn't support user buffers.
authorAxel Davy <axel.davy@ens.fr>
Sat, 3 Jan 2015 10:36:09 +0000 (11:36 +0100)
committerAxel Davy <axel.davy@ens.fr>
Fri, 21 Aug 2015 20:21:47 +0000 (22:21 +0200)
commitb06f3ee6f4ebf6ad403e7ee917c54bef85899c19
tree201eb1ae7beb177481bcfe7af2d77e7c3734ef39
parenta7ce3cd0d3a9f3580d02afe5a4fc6588d20aba6b
st/nine: Improve fallback when driver doesn't support user buffers.

For now the path updated is only used by Amd drivers, but a later
patch will make it used by all drivers. Some drivers like llvmpipe
doesn't support the uploading of constants from user buffers, so improve
the path to work for all drivers

Inspired from the gl state tracker.

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_ff.c
src/gallium/state_trackers/nine/nine_state.c