mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
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:
parent
922dc27273
commit
dc62ddfb39
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue