summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorCharmaine Lee <[email protected]>2017-12-01 12:45:30 -0800
committerBrian Paul <[email protected]>2018-09-10 13:07:30 -0600
commit026e1ad7bba6afa275903f108d9d99d0898eecde (patch)
tree6927d6bb0ac80e49da0573575191668dfb88a535 /src/gallium/drivers
parent285d8b47b17a0b497249cc542da34b21df6272a0 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/svga/svga_format.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_format.c b/src/gallium/drivers/svga/svga_format.c
index bd7c964a03c..f3bffc7482f 100644
--- a/src/gallium/drivers/svga/svga_format.c
+++ b/src/gallium/drivers/svga/svga_format.c
@@ -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;
}
/*