svga: fix missing format multisample devcap check

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>
This commit is contained in:
Charmaine Lee 2017-12-01 12:45:30 -08:00 committed by Brian Paul
parent 285d8b47b1
commit 026e1ad7bb

View 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;
}
/*