rev 9226 - branches/kde4/cdbs
Matthew Rosewarne
mrosewarne at inoutbox.com
Sat Feb 2 20:28:00 UTC 2008
On Saturday 02 February 2008, Armin Berres wrote:
> And one important point is, that we win nothing with this change.
> When building for i386 we can't use these Options, because out in the
> wild are still some old boxes which don't support MMX (but are
> officially supported by Debian!). That's the reason why we have to stick
> with RT detection of the capabilities of a processor.
> When building for AMD64 these Options are enabled anyway. No matter what
> we do.
> I guess something like this holds true for PPC too.
This patch isn't a replacement for detecing MMX & friends at runtime. Rather,
it's used to check the CPU at build time to avoid building the MMX code paths
entirely on archs that don't support them. It was mostly inspired from the
qimageblitz code, take a look at the patch for rsibreak:
+#ifdef HAVE_MMX
+ if(BlitzCPUInfo::haveExtension(BlitzCPUInfo::MMX))
+ scanline_blend_mmx(over, m_alpha, under, result, m_image->width);
+ else
+#endif
+ scanline_blend(over, m_alpha, under, result, m_image->width);
I expect we might see more of this kind of optimisation, so I put the rules in
a shared location. It isn't used unless explicitly included, so it won't
affect any packages not using it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-kde-talk/attachments/20080202/a3e8efb4/attachment.pgp
More information about the pkg-kde-talk
mailing list