Re: [Mesa-dev] [PATCH] nir: cleanup oversized arrays in nir_swizzle calls

2018-07-12 Thread Jason Ekstrand
On Thu, Jul 12, 2018 at 7:20 PM Karol Herbst wrote: > On Fri, Jul 13, 2018 at 4:04 AM, Jason Ekstrand > wrote: > > On Thu, Jul 12, 2018 at 6:48 PM Karol Herbst wrote: > >> > >> There are no fixed sized array arguments in C, those are simply pointers > >> to unsized arrays and as the size is pas

Re: [Mesa-dev] [PATCH] nir: cleanup oversized arrays in nir_swizzle calls

2018-07-12 Thread Karol Herbst
On Fri, Jul 13, 2018 at 4:04 AM, Jason Ekstrand wrote: > On Thu, Jul 12, 2018 at 6:48 PM Karol Herbst wrote: >> >> There are no fixed sized array arguments in C, those are simply pointers >> to unsized arrays and as the size is passed in anyway, just rely on that. >> >> where possible calls are r

Re: [Mesa-dev] [PATCH] nir: cleanup oversized arrays in nir_swizzle calls

2018-07-12 Thread Jason Ekstrand
On Thu, Jul 12, 2018 at 6:48 PM Karol Herbst wrote: > There are no fixed sized array arguments in C, those are simply pointers > to unsized arrays and as the size is passed in anyway, just rely on that. > > where possible calls are replaced by nir_channel and nir_channels. > > Signed-off-by: Karo

[Mesa-dev] [PATCH] nir: cleanup oversized arrays in nir_swizzle calls

2018-07-12 Thread Karol Herbst
There are no fixed sized array arguments in C, those are simply pointers to unsized arrays and as the size is passed in anyway, just rely on that. where possible calls are replaced by nir_channel and nir_channels. Signed-off-by: Karol Herbst --- src/amd/vulkan/radv_meta_blit2d.c | 9 +++-