Re: [Mesa-dev] [PATCH] nir: Add a pass for gathering transform feedback info

2018-10-10 Thread Alejandro Piñeiro
After the experience of using it, and reading it, the patch LGTM. I still have some issues while trying to use this pass, but they are mostly glslang bugs, or things that I suspect is a problem on a different pass or on our linking code, that are better to talk in a different thread. So this patch

Re: [Mesa-dev] [PATCH] nir: Add a pass for gathering transform feedback info

2018-10-10 Thread Samuel Pitoiset
I'm aware of the Offset decoration discussions, but I'm fine with that pass for now anyway. It does the job and RADV can use it. Having the offset explicitely declared is the way to go in my opinion, and that doesn't require extra compiler work. So, patch is: Reviewed-by: Samuel Pitoiset On

Re: [Mesa-dev] [PATCH] nir: Add a pass for gathering transform feedback info

2018-10-08 Thread Jason Ekstrand
On Mon, Oct 8, 2018 at 10:22 AM Alejandro Piñeiro wrote: > I was not able to finish trying to get ARB_gl_spirv using this pass. The > major difference is that on ARB_gl_spirv (and afaiu on GLSL too) we are > merging the info of all the available xfb varyings from all the stages, > while this pass

Re: [Mesa-dev] [PATCH] nir: Add a pass for gathering transform feedback info

2018-10-08 Thread Alejandro Piñeiro
I was not able to finish trying to get ARB_gl_spirv using this pass. The major difference is that on ARB_gl_spirv (and afaiu on GLSL too) we are merging the info of all the available xfb varyings from all the stages, while this pass gathers info from a individual nir shader (so one individual stage

Re: [Mesa-dev] [PATCH] nir: Add a pass for gathering transform feedback info

2018-10-05 Thread Alejandro Piñeiro
On 05/10/18 17:44, Jason Ekstrand wrote: > On Fri, Oct 5, 2018 at 10:34 AM Alejandro Piñeiro > mailto:apinhe...@igalia.com>> wrote: > > On 05/10/18 16:13, Jason Ekstrand wrote: > > This is different from the GL_ARB_spirv pass because it > generates a much > > simpler data structure

Re: [Mesa-dev] [PATCH] nir: Add a pass for gathering transform feedback info

2018-10-05 Thread Jason Ekstrand
On Fri, Oct 5, 2018 at 10:34 AM Alejandro Piñeiro wrote: > On 05/10/18 16:13, Jason Ekstrand wrote: > > This is different from the GL_ARB_spirv pass because it generates a much > > simpler data structure that isn't tied to OpenGL and mtypes.h. > > I have just skimmed it (don't have time right now

Re: [Mesa-dev] [PATCH] nir: Add a pass for gathering transform feedback info

2018-10-05 Thread Alejandro Piñeiro
On 05/10/18 16:13, Jason Ekstrand wrote: > This is different from the GL_ARB_spirv pass because it generates a much > simpler data structure that isn't tied to OpenGL and mtypes.h. I have just skimmed it (don't have time right now for a full check, will take a deeper look next Monday), but FWIW, t

[Mesa-dev] [PATCH] nir: Add a pass for gathering transform feedback info

2018-10-05 Thread Jason Ekstrand
This is different from the GL_ARB_spirv pass because it generates a much simpler data structure that isn't tied to OpenGL and mtypes.h. --- src/compiler/Makefile.sources | 4 +- src/compiler/nir/meson.build | 2 + src/compiler/nir/nir_gather_xfb_info.c | 150