svga: no need to check MULTISAMPLE devcap for view format
authorCharmaine Lee <charmainel@vmware.com>
Wed, 6 Dec 2017 23:33:45 +0000 (15:33 -0800)
committerBrian Paul <brianp@vmware.com>
Mon, 10 Sep 2018 19:07:30 +0000 (13:07 -0600)
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 <brianp@vmware.com>
src/gallium/drivers/svga/svga_format.c

index 0ad55c910c3fe794b7f45e045a61a1ee35d8605d..1eb03b9a4dd2c3c60c47268235aefd3e5b948390 100644 (file)
@@ -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;