st/nine: Add additional error handling in CheckDeviceMultiSampleType
authorPatrick Rudolph <siro@das-labor.org>
Fri, 30 Sep 2016 14:15:38 +0000 (16:15 +0200)
committerAxel Davy <axel.davy@ens.fr>
Mon, 10 Oct 2016 21:43:51 +0000 (23:43 +0200)
commitb5603056872708fdd82f1224854097805a01d4c0
tree17344d3ebf2afcf1bd25bc4e1defcc608480f22b
parent7afab4ad39b5c479d5c986483511c68b92c31219
st/nine: Add additional error handling in CheckDeviceMultiSampleType

Return one supported quality level in error cases.
Return error on invalid multisample count.

Fixes failing wine tests.

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