isl/gen6: correctly check msaa layout samples count

Samples == 1 is a valid value, so returning false is plain wrong.
Seeming copy/paste typo introduced since day 1.

Fixes: afdadec77f ("isl: Implement isl_surf_init() for gen4-gen9")
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Chad Versace <chadversary@chromium.org>
This commit is contained in:
Emil Velikov 2016-10-11 18:26:15 +01:00 committed by Emil Velikov
parent c572360c30
commit 84f9ef1de4
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ gen6_choose_msaa_layout(const struct isl_device *dev,
if (info->samples == 1) {
*msaa_layout = ISL_MSAA_LAYOUT_NONE;
return false;
return true;
}
if (!isl_format_supports_multisampling(dev->info, info->format))