st/nine: Clean GetPrivateData
authorPatrick Rudolph <siro@das-labor.org>
Tue, 12 May 2015 18:28:17 +0000 (20:28 +0200)
committerAxel Davy <axel.davy@ens.fr>
Fri, 21 Aug 2015 20:21:46 +0000 (22:21 +0200)
commit40a8943f53ff42f2a3b782e42d8a79711d814ab8
tree6859cf5bc1df9403647a39989ee51bcf4cb20dde
parent9ba3f83592730e98cb5be0fbc88f1e40ff5471a8
st/nine: Clean GetPrivateData

Move the assert to return error codes in the correct order.
Always set the pSizeOfData to the required buffer size.
Fixes failing wine test device.c test_private_data()

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