Re: [Mesa-dev] [PATCH 1/7] i965: Add support for AVG instruction.

2012-07-19 Thread Anuj Phogat
On Thu, Jul 12, 2012 at 10:43 AM, Paul Berry wrote: > > From the Ivy Bridge PRM, Vol4 Part3 p152: > > "The avg instruction performs component-wise integer average of > src0 and src1 and stores the results in dst. An integer average > uses integer upward rounding. It is equivalent to in

Re: [Mesa-dev] [PATCH 1/7] i965: Add support for AVG instruction.

2012-07-12 Thread Kenneth Graunke
On 07/12/2012 10:43 AM, Paul Berry wrote: > From the Ivy Bridge PRM, Vol4 Part3 p152: > > "The avg instruction performs component-wise integer average of > src0 and src1 and stores the results in dst. An integer average > uses integer upward rounding. It is equivalent to increment one

[Mesa-dev] [PATCH 1/7] i965: Add support for AVG instruction.

2012-07-12 Thread Paul Berry
>From the Ivy Bridge PRM, Vol4 Part3 p152: "The avg instruction performs component-wise integer average of src0 and src1 and stores the results in dst. An integer average uses integer upward rounding. It is equivalent to increment one to the addition of src0 and src1 and then apply