[Mesa-dev] [PATCH] svga: only support 4x, 8x, 16x msaa
Brian Paul
brianp at vmware.com
Thu Jul 20 20:54:42 UTC 2017
Skip 2x MSAA, for example, since it's seldom used and just bloats
the list of pixel formats.
---
src/gallium/drivers/svga/svga_screen.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c
index 1ec91e5..77223c9 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);
--
1.9.1
More information about the mesa-dev
mailing list