[Mesa-dev] [Bug 100073] Shader Disk Cache 32/64 bit detection has a flaw. Missed existence of x32 ABI

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Mar 6 01:19:24 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=100073

--- Comment #3 from Timothy Arceri <t_arceri at yahoo.com.au> ---
(In reply to Darren Salt from comment #2)
> This code is intended to be generic; it SHOULD work for other pairs such as
> armel and aarch64 (though breakage will happen should you have more than one
> 32-bit ARM ABI in use on one system).

It's not really breakage, its just that the 32-bit cache would get deleted
should you be switching between different Mesa builds.

> As such, as it's written, it should
> not be testing __i386__, __x86_64__ or similar macros, but it does need to
> test __ILP32__.
> 
> (Aside: x32 code is 64-bit.)
> 
> Without optimisation, yes, the testing is effectively at run-time; however,
> the values are constant. So in that sense, it's a small amount of bloat and
> unreachable code.
> 

Yeah and it's tested once at screen creation so it's not even worth worrying
about.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170306/c3381dc7/attachment.html>


More information about the mesa-dev mailing list