Re: [Mesa-dev] [PATCH 1/2] tgsi: add support for texture offsets to the TGSI IR.

2011-08-30 Thread Dave Airlie
> > Extending TSGI is a bit of a black art but you seem to have figured it out. > > I'm looking at the swizzle fields in tgsi_texture_offset.  Why do > those exist?  I'm guessing it's just for the case that a bunch of > offsets get tightly packed in a constant slot.  0, 1, -1 would seem to > be ver

Re: [Mesa-dev] [PATCH 1/2] tgsi: add support for texture offsets to the TGSI IR.

2011-08-30 Thread Christoph Bumiller
On 08/30/2011 04:43 PM, Brian Paul wrote: > On Mon, Aug 29, 2011 at 7:38 AM, Dave Airlie wrote: >> From: Dave Airlie >> >> This adds tokens for texture offsets, to store 4 * swizzled vec 3 >> for use in TXF and other opcodes. >> >> It also contains TGSI exec changes for softpipe to use this code,

Re: [Mesa-dev] [PATCH 1/2] tgsi: add support for texture offsets to the TGSI IR.

2011-08-30 Thread Brian Paul
On Mon, Aug 29, 2011 at 7:38 AM, Dave Airlie wrote: > From: Dave Airlie > > This adds tokens for texture offsets, to store 4 * swizzled vec 3 > for use in TXF and other opcodes. > > It also contains TGSI exec changes for softpipe to use this code, > along with GLSL->TGSI support for TXF. > > Sign

[Mesa-dev] [PATCH 1/2] tgsi: add support for texture offsets to the TGSI IR.

2011-08-29 Thread Dave Airlie
From: Dave Airlie This adds tokens for texture offsets, to store 4 * swizzled vec 3 for use in TXF and other opcodes. It also contains TGSI exec changes for softpipe to use this code, along with GLSL->TGSI support for TXF. Signed-off-by: Dave Airlie --- src/gallium/auxiliary/tgsi/tgsi_build.c