Re: [Mesa-dev] [PATCH 3/7] i965/blorp: Fix integer downsampling on Gen7.

2012-07-19 Thread Anuj Phogat
On Thu, Jul 12, 2012 at 10:43 AM, Paul Berry wrote: > When downsampling an integer-format buffer on Gen7, we need to use the > "avg" instruction rather than the "add" instruction, to ensure that we > don't overflow the range of 32-bit integers. Also, we need to use the > proper register type (BRW

[Mesa-dev] [PATCH 3/7] i965/blorp: Fix integer downsampling on Gen7.

2012-07-12 Thread Paul Berry
When downsampling an integer-format buffer on Gen7, we need to use the "avg" instruction rather than the "add" instruction, to ensure that we don't overflow the range of 32-bit integers. Also, we need to use the proper register type (BRW_REGISTER_TYPE_D or BRW_REGISTER_TYPE_UD) for intermediate co