st/nine: Allocate surface resources in surface ctor
authorPatrick Rudolph <siro@das-labor.org>
Thu, 15 Sep 2016 18:28:17 +0000 (20:28 +0200)
committerAxel Davy <axel.davy@ens.fr>
Mon, 10 Oct 2016 21:43:51 +0000 (23:43 +0200)
commitba0274c7d6c3b77a36bbe1b444f427b0c873e2f3
tree5d3a503f6ca77d6fcd70387a560c2b5d6b49139b
parent1f65f67b21821c00ebd9f1aa9f9f0b417b0a9677
st/nine: Allocate surface resources in surface ctor

Allocate resources in surface ctor.
Allows to use statetracker internal memory accounting.

Fix for issue #231.

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