st/nine: SetResourceResize should track nr_samples too
authorAxel Davy <axel.davy@ens.fr>
Mon, 19 Jan 2015 15:09:07 +0000 (16:09 +0100)
committerAxel Davy <axel.davy@ens.fr>
Thu, 5 Feb 2015 23:07:19 +0000 (00:07 +0100)
Reviewed-by: Tiziano Bacocco <tizbac2@gmail.com>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/surface9.c

index 21a47071acb0789fb8f16bfbda4efc2b0d5082c0..f1b4aa947ec00490f12a11a103c63bb3e9f532bf 100644 (file)
@@ -676,6 +676,7 @@ NineSurface9_SetResourceResize( struct NineSurface9 *This,
 
     This->desc.Width = This->base.info.width0 = resource->width0;
     This->desc.Height = This->base.info.height0 = resource->height0;
+    This->desc.MultiSampleType = This->base.info.nr_samples = resource->nr_samples;
 
     This->stride = util_format_get_stride(This->base.info.format,
                                           This->desc.Width);