<div dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 11, 2016 at 10:26 AM, Emil Velikov <span dir="ltr"><<a href="mailto:emil.l.velikov@gmail.com" target="_blank">emil.l.velikov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
<br>
Samples == 1 is a valid value, so returning false is plain wrong.<br>
Seeming copy/paste typo introduced since day 1.<br>
<br>
Fixes: afdadec77f5 ("isl: Implement isl_surf_init() for gen4-gen9")<br>
Cc: Chad Versace <<a href="mailto:chadversary@chromium.org">chadversary@chromium.org</a>><br>
Cc: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>><br>
Cc: <a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.<wbr>org</a><br>
Signed-off-by: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
---<br>
src/intel/isl/isl_gen6.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/intel/isl/isl_gen6.c b/src/intel/isl/isl_gen6.c<br>
index b30998d..07c08f6 100644<br>
--- a/src/intel/isl/isl_gen6.c<br>
+++ b/src/intel/isl/isl_gen6.c<br>
@@ -35,7 +35,7 @@ gen6_choose_msaa_layout(const struct isl_device *dev,<br>
<br>
if (info->samples == 1) {<br>
*msaa_layout = ISL_MSAA_LAYOUT_NONE;<br>
- return false;<br>
+ return true;<br>
}<br>
<br>
if (!isl_format_supports_<wbr>multisampling(dev->info, info->format))<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.10.0<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>