From: Charmaine Lee Date: Fri, 1 Dec 2017 20:45:30 +0000 (-0800) Subject: svga: fix missing format multisample devcap check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=026e1ad7bba6afa275903f108d9d99d0898eecde;p=mesa.git 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 --- 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; } /*