diff options
author | Brian Paul <[email protected]> | 2017-07-20 14:53:07 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-07-22 13:18:56 -0600 |
commit | dc62ddfb39e2287f1376df94e15bf108a73f12b0 (patch) | |
tree | b86eb540dc418abaa35e11165bc432554c346385 /src/gallium/drivers/svga/svga_screen.c | |
parent | 922dc27273f118f6773786760da241b5b9d4e9e4 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_screen.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_screen.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index 1ec91e57d3d..77223c9c917 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -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); |