<p dir="ltr">Gah, no :(</p>
<p dir="ltr">He even sent a patch which did this generally, what was wrong with that one?</p>
<div class="gmail_quote">On Apr 13, 2016 3:07 AM, "Jose Fonseca" <<a href="mailto:jfonseca@vmware.com">jfonseca@vmware.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Pierre, I'm going to commit this one for now, as it seems the safest thing to do.<br>
<br>
I still think we should try to fix the generic case, but it seems much harder to get this right.  I still don't understand how come isinf sometimes appears in the global namespace some times, but not others.<br>
<br>
Jose<br>
<br>
On 18/03/16 00:17, Pierre Moreau wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This fixes a compile error while building Nouveau with C++11 enabled (and<br>
glibc >= 2.23). This happens if SWR is enabled, as it forces C++11.<br>
<br>
Signed-off-by: Pierre Moreau <<a href="mailto:pierre.morrow@free.fr" target="_blank">pierre.morrow@free.fr</a>><br>
---<br>
  src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp | 4 ++++<br>
  1 file changed, 4 insertions(+)<br>
<br>
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp<br>
index 500ab89..1b595ae 100644<br>
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp<br>
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp<br>
@@ -1327,7 +1327,11 @@ GCRA::simplify()<br>
                 bestScore = score;<br>
              }<br>
           }<br>
+#if __cplusplus >= 201103L<br>
+         if (std::isinf(bestScore)) {<br>
+#else<br>
           if (isinf(bestScore)) {<br>
+#endif<br>
              ERROR("no viable spill candidates left\n");<br>
              break;<br>
           }<br>
<br>
</blockquote>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">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/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>