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:
parent
c572360c30
commit
84f9ef1de4
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue