summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
authorCharmaine Lee <[email protected]>2017-11-30 08:54:44 -0800
committerBrian Paul <[email protected]>2018-09-10 13:07:30 -0600
commit285d8b47b17a0b497249cc542da34b21df6272a0 (patch)
tree64ae38cf1bceff8fe82618e292321333d6a249dd /src/gallium/drivers/svga
parent59a56ca1c802f22bd260e7655af9bf72ba4c5b94 (diff)
svga: fix incorrect multisample support in VGPU9 device
Commit e4048f6cd1 unintentionally allows multisample support for VGPU9 device. This patch fixes this regression. Reviewed-by: Neha Bhende <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_format.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_format.c b/src/gallium/drivers/svga/svga_format.c
index e3ca2f45f7a..bd7c964a03c 100644
--- a/src/gallium/drivers/svga/svga_format.c
+++ b/src/gallium/drivers/svga/svga_format.c
@@ -2270,6 +2270,10 @@ svga_is_format_supported(struct pipe_screen *screen,
assert(bindings);
assert(!ss->sws->have_vgpu10);
+ /* Multisamples is not supported in VGPU9 device */
+ if (sample_count > 1)
+ return FALSE;
+
svga_format = svga_translate_format(ss, format, bindings);
if (svga_format == SVGA3D_FORMAT_INVALID) {
return FALSE;