svga: new SVGA_MSAA env var to disable/enable MSAA pixel formats
authorBrian Paul <brianp@vmware.com>
Tue, 5 Apr 2016 01:39:58 +0000 (19:39 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 7 Apr 2016 17:42:43 +0000 (11:42 -0600)
On by default.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_screen.c

index ccf794ecda71b0df59d904d7e73a07f08128edf0..536fb6f786f23355c8ffdf38441f904f6d2279d0 100644 (file)
@@ -1000,8 +1000,10 @@ svga_screen_create(struct svga_winsys_screen *sws)
       svgascreen->max_color_buffers = SVGA3D_DX_MAX_RENDER_TARGETS;
 
       /* Multisample samples per pixel */
-      svgascreen->ms_samples =
-         get_uint_cap(sws, SVGA3D_DEVCAP_MULTISAMPLE_MASKABLESAMPLES, 0);
+      if (debug_get_bool_option("SVGA_MSAA", TRUE)) {
+         svgascreen->ms_samples =
+            get_uint_cap(sws, SVGA3D_DEVCAP_MULTISAMPLE_MASKABLESAMPLES, 0);
+      }
 
       /* Maximum number of constant buffers */
       svgascreen->max_const_buffers =