From: Charmaine Lee Date: Wed, 6 Dec 2017 23:33:45 +0000 (-0800) Subject: svga: no need to check MULTISAMPLE devcap for view format X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30695812606d3211052a9845f0223ca52ffcb881;p=mesa.git 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 --- 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;