queues, yuv

I finished off the yuv conversion document. Enough of that.

I started looking at implementing a job queue last night. I thought I’d use the atomic update functions to implement it. At least that way I can easily write a single-reader queue, and without too much hassle make it multiple-writer too, if I ever need that (which I don’t yet). After wasting a couple of hours with an incorrect parameter being passed to my test code I got something functional. I think there are some races with signalling the ppu yet, but I had the ppu queueing up jobs for an spe, and the spe responding when it was done, and the ppe being able to non busy-wait for all jobs to be completed – which are all the primitives I need. I guess with a long wet weekend coming up I might get plenty of time to play with it this weekend!

Leave a Reply

Your email address will not be published. Required fields are marked *