From 30695812606d3211052a9845f0223ca52ffcb881 Mon Sep 17 00:00:00 2001 From: Charmaine Lee Date: Wed, 6 Dec 2017 15:33:45 -0800 Subject: [PATCH] svga: no need to check MULTISAMPLE devcap for view format According to the current SVGA contract, any view format can be used on the underlying resource that is multisample. So there is no need to check the MULTISAMPLE devcap for the view format. Fixes black rendering issue with Tropics running with 4xMSAA. Reviewed-by: Brian Paul --- src/gallium/drivers/svga/svga_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/svga/svga_format.c b/src/gallium/drivers/svga/svga_format.c index 0ad55c910c3..1eb03b9a4dd 100644 --- a/src/gallium/drivers/svga/svga_format.c +++ b/src/gallium/drivers/svga/svga_format.c @@ -2457,7 +2457,7 @@ svga_is_dx_format_supported(struct pipe_screen *screen, if (sampler_format != svga_format) { caps.u = 0; svga_get_dx_format_cap(ss, sampler_format, &caps); - mask &= (SVGA3D_DXFMT_VOLUME | SVGA3D_DXFMT_MULTISAMPLE); + mask &= SVGA3D_DXFMT_VOLUME; mask |= SVGA3D_DXFMT_SHADER_SAMPLE; if ((caps.u & mask) != mask) return FALSE; -- 2.30.2