[Liboil] 2D convolution with Orc

David Schleef ds at entropywave.com
Tue Oct 19 10:19:54 PDT 2010

On Mon, Oct 18, 2010 at 09:13:18AM +0100, jcupitt at gmail.com wrote:
> Hi David,
> On Monday, October 18, 2010, David Schleef <ds at entropywave.com> wrote:
> > On Sun, Oct 17, 2010 at 05:44:15PM +0100, jcupitt at gmail.com wrote:
> >> I've been tinkering with Orc trying to make a 2D convolution. It seems
> >> to me that I'll need to use loadoffb to get the scattered pixel values
> >> from my source array, but the 'off' part needs to be a parameter or
> >> constant. This means (I think) that I need to pass in the offset for
> >> every array element as a separate parameter.
> >
> > This is an area I'm actively working on.  Right now, the best you can
> > do is about 3x3, using 3 separate source arrays and loadoff[bwl].  This,
> > combined with a multiplication value for each element, uses a lot of
> > constants, which are limited to 16 right now.  (It uses either 9+2 or
> > 9+6, depending on how the constants get folded.)
> Thanks, this all sounds promising. Is there a 16 limit for number of
> parameters as well? Or just 16 for both?

There's a separate limit of 8 parameters.


More information about the Liboil mailing list