[Mesa-dev] [Bug 27512] Illegal instruction _mesa_x86_64_transform_points4_general
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jan 5 13:13:53 PST 2016
https://bugs.freedesktop.org/show_bug.cgi?id=27512
--- Comment #12 from Roland Scheidegger <sroland at vmware.com> ---
(In reply to Patrick Baggett from comment #10)
> Created attachment 120821 [details]
> attachment-30621-0.html
>
> Given that there is a _mesa_3dnow_transform_points4_2d in the x86-64 asm
> (using MMX/3DNow! is deprecated in x86-64), it appears that this code was
> copy-pasted. I wrote a quick patch to change prefetch[w] to prefetcht1,
> which is more or less the equivalent in SSE. However, I'm not actually sure
> those prefetches really benefit the code since they appear to be monotonic
> addresses and hinting only 16 bytes ahead (a cache line is almost always at
> least 32 bytes) -- maybe that sort of testing is for another day.
I'd agree that it's dubious that "modern" cpus would benefit - as you said
addresses are monotonic and certainly hw prefetchers should handle that pretty
well. Though you could argue someone might still use some cpus with terrible
prefetchers, and the prefetch instructions should not hurt (at least not much)
on modern cpus neither...
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20160105/585efba6/attachment.html>
More information about the mesa-dev
mailing list