From: Brian Paul Date: Tue, 5 Apr 2016 01:39:58 +0000 (-0600) Subject: svga: new SVGA_MSAA env var to disable/enable MSAA pixel formats X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b7e67b233717dddd6a1dd13fd571fee571d173bf;p=mesa.git svga: new SVGA_MSAA env var to disable/enable MSAA pixel formats On by default. Reviewed-by: Jose Fonseca --- diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index ccf794ecda7..536fb6f786f 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -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 =