Re: [Mesa-dev] Representing explicit memory layouts in NIR

2018-12-03 Thread apinheiro
On 1/12/18 14:34, Jason Ekstrand wrote: > On Sat, Dec 1, 2018 at 4:06 AM apinheiro > wrote: > > On 30/11/18 23:52, Jason Ekstrand wrote: >> On Fri, Nov 30, 2018 at 4:39 PM Timothy Arceri >> mailto:tarc...@itsqueeze.com>> wrote: >> >> On 1/12/18 9:1

Re: [Mesa-dev] Representing explicit memory layouts in NIR

2018-12-01 Thread Jason Ekstrand
For what it's worth, I've prototyped both 1 and 3 and I don't like either: https://gitlab.freedesktop.org/jekstrand/mesa/commits/wip/nir-ubo-deref-v0.2 https://gitlab.freedesktop.org/jekstrand/mesa/commits/wip/nir-ubo-deref-v0.3 I'm going to try 2B next week. --Jason On Fri, Nov 30, 2018 at 4:

Re: [Mesa-dev] Representing explicit memory layouts in NIR

2018-12-01 Thread Jason Ekstrand
On Sat, Dec 1, 2018 at 4:06 AM apinheiro wrote: > On 30/11/18 23:52, Jason Ekstrand wrote: > > On Fri, Nov 30, 2018 at 4:39 PM Timothy Arceri > wrote: > >> On 1/12/18 9:11 am, Jason Ekstrand wrote: >> > All, >> > >> > This week, I've been working on trying to move UBO and SSBO access in >> > NIR

Re: [Mesa-dev] Representing explicit memory layouts in NIR

2018-12-01 Thread apinheiro
On 30/11/18 23:52, Jason Ekstrand wrote: > On Fri, Nov 30, 2018 at 4:39 PM Timothy Arceri > wrote: > > On 1/12/18 9:11 am, Jason Ekstrand wrote: > > All, > > > > This week, I've been working on trying to move UBO and SSBO > access in > > NIR ov

Re: [Mesa-dev] Representing explicit memory layouts in NIR

2018-11-30 Thread Jason Ekstrand
On Fri, Nov 30, 2018 at 4:39 PM Timothy Arceri wrote: > On 1/12/18 9:11 am, Jason Ekstrand wrote: > > All, > > > > This week, I've been working on trying to move UBO and SSBO access in > > NIR over to deref instructions. I'm hoping that this will allow us to > > start doing alias analysis and co

Re: [Mesa-dev] Representing explicit memory layouts in NIR

2018-11-30 Thread Timothy Arceri
On 1/12/18 9:11 am, Jason Ekstrand wrote: All, This week, I've been working on trying to move UBO and SSBO access in NIR over to deref instructions.  I'm hoping that this will allow us to start doing alias analysis and copy-propagation on it.  The passes we have in NIR *should* be able to wor

[Mesa-dev] Representing explicit memory layouts in NIR

2018-11-30 Thread Jason Ekstrand
All, This week, I've been working on trying to move UBO and SSBO access in NIR over to deref instructions. I'm hoping that this will allow us to start doing alias analysis and copy-propagation on it. The passes we have in NIR *should* be able to work with SSBOs as long as nir_compare_derefs does