Re: [Mesa-dev] [PATCH] i965/gs: Avoid DW * DW mul

2014-12-04 Thread Ben Widawsky
On Thu, Dec 04, 2014 at 07:48:06PM -0800, Ben Widawsky wrote: > On Thu, Dec 04, 2014 at 05:08:21PM -0800, Matt Turner wrote: > > On Thu, Dec 4, 2014 at 3:37 PM, Ben Widawsky > > wrote: > > > The GS has an interesting use for mul. It's essentially used as a fancy > > > mov (in > > > fact, I am not

Re: [Mesa-dev] [PATCH] i965/gs: Avoid DW * DW mul

2014-12-04 Thread Ben Widawsky
On Thu, Dec 04, 2014 at 05:17:05PM -0800, Kenneth Graunke wrote: > On Thursday, December 04, 2014 03:37:17 PM Ben Widawsky wrote: > > The GS has an interesting use for mul. It's essentially used as a fancy mov > > (in > > fact, I am not sure why a mov isn't used). The documentation in the > > fun

Re: [Mesa-dev] [PATCH] i965/gs: Avoid DW * DW mul

2014-12-04 Thread Ben Widawsky
On Thu, Dec 04, 2014 at 05:08:21PM -0800, Matt Turner wrote: > On Thu, Dec 4, 2014 at 3:37 PM, Ben Widawsky > wrote: > > The GS has an interesting use for mul. It's essentially used as a fancy mov > > (in > > fact, I am not sure why a mov isn't used). The documentation in the > > function has >

Re: [Mesa-dev] [PATCH] i965/gs: Avoid DW * DW mul

2014-12-04 Thread Kenneth Graunke
On Thursday, December 04, 2014 03:37:17 PM Ben Widawsky wrote: > The GS has an interesting use for mul. It's essentially used as a fancy mov > (in > fact, I am not sure why a mov isn't used). The documentation in the function > has > a very good explanation from Paul on the mechanics. > > CHV ha

Re: [Mesa-dev] [PATCH] i965/gs: Avoid DW * DW mul

2014-12-04 Thread Matt Turner
On Thu, Dec 4, 2014 at 3:37 PM, Ben Widawsky wrote: > The GS has an interesting use for mul. It's essentially used as a fancy mov > (in > fact, I am not sure why a mov isn't used). The documentation in the function > has > a very good explanation from Paul on the mechanics. What do you mean? Th

[Mesa-dev] [PATCH] i965/gs: Avoid DW * DW mul

2014-12-04 Thread Ben Widawsky
The GS has an interesting use for mul. It's essentially used as a fancy mov (in fact, I am not sure why a mov isn't used). The documentation in the function has a very good explanation from Paul on the mechanics. CHV has some quirks with regard to multiplication. While the documentation is somewha