From 285d8b47b17a0b497249cc542da34b21df6272a0 Mon Sep 17 00:00:00 2001 From: Charmaine Lee Date: Thu, 30 Nov 2017 08:54:44 -0800 Subject: 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 --- src/gallium/drivers/svga/svga_format.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gallium/drivers/svga') 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; -- cgit v1.2.3