<div dir="ltr">Wait... Why are we building the AMD driver on ARM? I know AMD has been talking about ARM-based servers, but are they actually strapping GPUs to them?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 21, 2016 at 1:16 AM, Nicolai Hähnle <span dir="ltr"><<a href="mailto:nhaehnle@gmail.com" target="_blank">nhaehnle@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 21.10.2016 00:20, Rob Herring wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The use of regparm causes an error on arm/arm64 builds with clang.<br>
fastcall is allowed, but still throws a warning. As both options only<br>
have effect on 32-bit x86 builds, limit them to that case.<br>
</blockquote>
<br></span>
While we haven't been particularly good at syncing things back-and-forth, this code is shared with closed source driver builds, including on Windows.<br>
<br>
Please re-structure the patch so that it really only changes the behavior with Clang. (For example, that MSVC doesn't define __i386__ as far as I'm aware.)<br>
<br>
Thanks,<br>
Nicolai<span class="im HOEnZb"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Signed-off-by: Rob Herring <<a href="mailto:robh@kernel.org" target="_blank">robh@kernel.org</a>><br>
---<br>
src/amd/addrlib/addrtypes.h | 10 +++++++---<br>
1 file changed, 7 insertions(+), 3 deletions(-)<br>
<br>
diff --git a/src/amd/addrlib/addrtypes.h b/src/amd/addrlib/addrtypes.h<br>
index 4c68ac544b88..183b5a751c3a 100644<br>
--- a/src/amd/addrlib/addrtypes.h<br>
+++ b/src/amd/addrlib/addrtypes.h<br>
@@ -87,10 +87,14 @@ typedef int INT;<br>
#endif<br>
<br>
#ifndef ADDR_FASTCALL<br>
- #if defined(__GNUC__)<br>
- #define ADDR_FASTCALL __attribute__((regparm(0)))<br>
+ #if defined(__i386__)<br>
+ #if defined(__GNUC__)<br>
+ #define ADDR_FASTCALL __attribute__((regparm(0)))<br>
+ #else<br>
+ #define ADDR_FASTCALL __fastcall<br>
+ #endif<br>
#else<br>
- #define ADDR_FASTCALL __fastcall<br>
+ #define ADDR_FASTCALL<br>
#endif<br>
#endif<br>
<br>
<br>
</blockquote></span><div class="HOEnZb"><div class="h5">
______________________________<wbr>_________________<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/<wbr>mailman/listinfo/mesa-dev</a><br>
</div></div></blockquote></div><br></div>