From: Charmaine Lee Date: Thu, 30 Nov 2017 16:54:44 +0000 (-0800) Subject: svga: fix incorrect multisample support in VGPU9 device X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=285d8b47b17a0b497249cc542da34b21df6272a0;p=mesa.git svga: fix incorrect multisample support in VGPU9 device Commit e4048f6cd1 unintentionally allows multisample support for VGPU9 device. This patch fixes this regression. Reviewed-by: Neha Bhende --- diff --git a/src/gallium/drivers/svga/svga_format.c b/src/gallium/drivers/svga/svga_format.c index e3ca2f45f7a..bd7c964a03c 100644 --- a/src/gallium/drivers/svga/svga_format.c +++ b/src/gallium/drivers/svga/svga_format.c @@ -2270,6 +2270,10 @@ svga_is_format_supported(struct pipe_screen *screen, assert(bindings); assert(!ss->sws->have_vgpu10); + /* Multisamples is not supported in VGPU9 device */ + if (sample_count > 1) + return FALSE; + svga_format = svga_translate_format(ss, format, bindings); if (svga_format == SVGA3D_FORMAT_INVALID) { return FALSE;