From 026e1ad7bba6afa275903f108d9d99d0898eecde Mon Sep 17 00:00:00 2001 From: Charmaine Lee Date: Fri, 1 Dec 2017 12:45:30 -0800 Subject: [PATCH] svga: fix missing format multisample devcap check In commit e4048f6cd1, svga_is_dx_format_supported() is supposed to also check the SVGA3D_DXFMT_MULTISAMPLE bit for multisample support of a format. Somehow that code is not included in that commit. This patch fixes it. Fixes piglit test spec@ext_framebuffer_multisample@formats all_samples. Reviewed-by: Brian Paul --- src/gallium/drivers/svga/svga_format.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/svga/svga_format.c b/src/gallium/drivers/svga/svga_format.c index bd7c964a03c..f3bffc7482f 100644 --- a/src/gallium/drivers/svga/svga_format.c +++ b/src/gallium/drivers/svga/svga_format.c @@ -2381,6 +2381,7 @@ svga_is_dx_format_supported(struct pipe_screen *screen, if ((ss->ms_samples & (1 << (sample_count - 1))) == 0) { return FALSE; } + mask |= SVGA3D_DXFMT_MULTISAMPLE; } /* -- 2.30.2