svga: fix missing format multisample devcap check
authorCharmaine Lee <charmainel@vmware.com>
Fri, 1 Dec 2017 20:45:30 +0000 (12:45 -0800)
committerBrian Paul <brianp@vmware.com>
Mon, 10 Sep 2018 19:07:30 +0000 (13:07 -0600)
In commit e4048f6cd1, svga_is_dx_format_supported() is supposed to
also check the SVGA3D_DXFMT_MULTISAMPLE bit for multisample
support of a format. Somehow that code is not included in that commit.
This patch fixes it.

Fixes piglit test spec@ext_framebuffer_multisample@formats all_samples.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_format.c

index bd7c964a03c76acf6e04bf7320a01bd6f734c6df..f3bffc7482f08af2fee601c4d82a829cda2e8651 100644 (file)
@@ -2381,6 +2381,7 @@ svga_is_dx_format_supported(struct pipe_screen *screen,
       if ((ss->ms_samples & (1 << (sample_count - 1))) == 0) {
          return FALSE;
       }
+      mask |= SVGA3D_DXFMT_MULTISAMPLE;
    }
 
    /*