svga: only support 4x, 8x, 16x msaa

Skip 2x MSAA, for example, since it's seldom used and just bloats
the list of pixel formats.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
Brian Paul 2017-07-20 14:53:07 -06:00
parent 922dc27273
commit dc62ddfb39

View file

@ -1116,6 +1116,11 @@ svga_screen_create(struct svga_winsys_screen *sws)
get_uint_cap(sws, SVGA3D_DEVCAP_MULTISAMPLE_MASKABLESAMPLES, 0);
}
/* We only support 4x, 8x, 16x MSAA */
svgascreen->ms_samples &= ((1 << (4-1)) |
(1 << (8-1)) |
(1 << (16-1)));
/* Maximum number of constant buffers */
svgascreen->max_const_buffers =
get_uint_cap(sws, SVGA3D_DEVCAP_DX_MAX_CONSTANT_BUFFERS, 1);