[mythtv] patch for runtime CPU detection (MMX) in linearblend filter

Isaac Richards ijr at po.cwru.edu
Mon Aug 18 18:39:19 EDT 2003


On Monday 18 August 2003 05:12 pm, Simon Kenyon wrote:
> On Monday 18 August 2003 22:03, Simon Kenyon wrote:
> > if any of you have a Via C3 CPU want to check this for me and let
> > me know how you get on
> >
> > for me, with this patch i can enable deinterlacing and not have it crash
> > with an illegal instruction
> >
> > the change is to mythtv/filters/linearblend/filter_linearblend.c to use
> > either the portable implementation or an MMX enhanced version
> >
> > the code does it once so that performance is not adversly affected; apart
> > from the one-time CPU detection itself
> >
> > patch against current CVS included
> > --
> > Simon Kenyon
> > <simon at koala.ie>
>
> sorry to followup to my own post
> but that diff sucks rocks
> it works - but to made a real dogs dinner of the change
> here is the new file in toto - a lot easier to see the change

The patch was fine -- I had already applied it..  I did clean up the detection 
code, and make sure to only enable it when the mmxext extensions are 
available.

Isaac


More information about the mythtv-dev mailing list