Re: [Mesa-dev] [PATCH 2/6] i965/fs: Enumerate logical fb writes arguments

2015-10-21 Thread Francisco Jerez
Ben Widawsky writes: > Gen9 adds the ability to write out a stencil value, so we need to expand the > virtual payload by one. Abstracting this now makes that change easier to read. > > I was admittedly confused early on about some of the hardcoding. If people > believe the resulting code is infer

Re: [Mesa-dev] [PATCH 2/6] i965/fs: Enumerate logical fb writes arguments

2015-10-20 Thread Matt Turner
On Tue, Oct 20, 2015 at 3:27 PM, Ben Widawsky wrote: > On Tue, Oct 20, 2015 at 03:19:48PM -0700, Matt Turner wrote: >> What I should have said in the previous email is that assigning >> arbitrary numbers to enums in brw_defines.h is confusing because one >> might be led to believe that these are h

Re: [Mesa-dev] [PATCH 2/6] i965/fs: Enumerate logical fb writes arguments

2015-10-20 Thread Ben Widawsky
On Tue, Oct 20, 2015 at 03:19:48PM -0700, Matt Turner wrote: > On Tue, Oct 20, 2015 at 3:11 PM, Ben Widawsky wrote: > > On Tue, Oct 20, 2015 at 02:57:24PM -0700, Matt Turner wrote: > >> On Tue, Oct 20, 2015 at 2:54 PM, Ben Widawsky wrote: > >> > On Tue, Oct 20, 2015 at 02:52:29PM -0700, Matt Turn

Re: [Mesa-dev] [PATCH 2/6] i965/fs: Enumerate logical fb writes arguments

2015-10-20 Thread Matt Turner
On Tue, Oct 20, 2015 at 3:11 PM, Ben Widawsky wrote: > On Tue, Oct 20, 2015 at 02:57:24PM -0700, Matt Turner wrote: >> On Tue, Oct 20, 2015 at 2:54 PM, Ben Widawsky wrote: >> > On Tue, Oct 20, 2015 at 02:52:29PM -0700, Matt Turner wrote: >> >> On Tue, Oct 20, 2015 at 2:29 PM, Ben Widawsky >> >>

Re: [Mesa-dev] [PATCH 2/6] i965/fs: Enumerate logical fb writes arguments

2015-10-20 Thread Ben Widawsky
On Tue, Oct 20, 2015 at 02:57:24PM -0700, Matt Turner wrote: > On Tue, Oct 20, 2015 at 2:54 PM, Ben Widawsky wrote: > > On Tue, Oct 20, 2015 at 02:52:29PM -0700, Matt Turner wrote: > >> On Tue, Oct 20, 2015 at 2:29 PM, Ben Widawsky > >> wrote: > >> > Gen9 adds the ability to write out a stencil v

Re: [Mesa-dev] [PATCH 2/6] i965/fs: Enumerate logical fb writes arguments

2015-10-20 Thread Matt Turner
On Tue, Oct 20, 2015 at 2:54 PM, Ben Widawsky wrote: > On Tue, Oct 20, 2015 at 02:52:29PM -0700, Matt Turner wrote: >> On Tue, Oct 20, 2015 at 2:29 PM, Ben Widawsky >> wrote: >> > Gen9 adds the ability to write out a stencil value, so we need to expand >> > the >> > virtual payload by one. Abstr

Re: [Mesa-dev] [PATCH 2/6] i965/fs: Enumerate logical fb writes arguments

2015-10-20 Thread Ben Widawsky
On Tue, Oct 20, 2015 at 02:52:29PM -0700, Matt Turner wrote: > On Tue, Oct 20, 2015 at 2:29 PM, Ben Widawsky > wrote: > > Gen9 adds the ability to write out a stencil value, so we need to expand the > > virtual payload by one. Abstracting this now makes that change easier to > > read. > > > > I w

Re: [Mesa-dev] [PATCH 2/6] i965/fs: Enumerate logical fb writes arguments

2015-10-20 Thread Matt Turner
On Tue, Oct 20, 2015 at 2:29 PM, Ben Widawsky wrote: > Gen9 adds the ability to write out a stencil value, so we need to expand the > virtual payload by one. Abstracting this now makes that change easier to read. > > I was admittedly confused early on about some of the hardcoding. If people > beli

[Mesa-dev] [PATCH 2/6] i965/fs: Enumerate logical fb writes arguments

2015-10-20 Thread Ben Widawsky
Gen9 adds the ability to write out a stencil value, so we need to expand the virtual payload by one. Abstracting this now makes that change easier to read. I was admittedly confused early on about some of the hardcoding. If people believe the resulting code is inferior, I am not super attached to