From 84f9ef1de4680b48d646841965f963ea2b724ab2 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 11 Oct 2016 18:26:15 +0100 Subject: [PATCH] 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: afdadec77f5 ("isl: Implement isl_surf_init() for gen4-gen9") Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Emil Velikov Reviewed-by: Jason Ekstrand Reviewed-by: Chad Versace --- src/intel/isl/isl_gen6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/isl/isl_gen6.c b/src/intel/isl/isl_gen6.c index b30998d044d..07c08f6d31e 100644 --- a/src/intel/isl/isl_gen6.c +++ b/src/intel/isl/isl_gen6.c @@ -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)) -- 2.30.2