Re: [Mesa-dev] [PATCH v2] i965/fs: Strip trailing constant zeroes in sample messages

2015-04-30 Thread Matt Turner
On Thu, Apr 30, 2015 at 10:27 AM, Neil Roberts wrote: > If a send message is emitted with a message length that is less than > required for the message then the remaining parameters default to > zero. We can take advantage of this to save a register when a shader > passes constant zeroes as the fi

[Mesa-dev] [PATCH v2] i965/fs: Strip trailing constant zeroes in sample messages

2015-04-30 Thread Neil Roberts
If a send message is emitted with a message length that is less than required for the message then the remaining parameters default to zero. We can take advantage of this to save a register when a shader passes constant zeroes as the final coordinates to the sample function. I think this might be