diff options
author | Brian Paul <brianp@vmware.com> | 2016-04-04 19:39:58 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2016-04-07 11:42:43 -0600 |
commit | b7e67b233717dddd6a1dd13fd571fee571d173bf (patch) | |
tree | 6883a4b9e7cc0cb0744e99256c1bf70b5eeab4c5 /src/gallium/drivers/svga | |
parent | 9f443af449515240169e69b98bdb3746f38e7f35 (diff) | |
download | external_mesa3d-b7e67b233717dddd6a1dd13fd571fee571d173bf.zip external_mesa3d-b7e67b233717dddd6a1dd13fd571fee571d173bf.tar.gz external_mesa3d-b7e67b233717dddd6a1dd13fd571fee571d173bf.tar.bz2 |
svga: new SVGA_MSAA env var to disable/enable MSAA pixel formats
On by default.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r-- | src/gallium/drivers/svga/svga_screen.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index ccf794e..536fb6f 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 = |