Re: [Mesa-dev] [PATCH 2/6] nir/spirv: implement BuiltInWorkDim

2018-07-14 Thread Rob Clark
it is the # of dimensions of the grid (which, like local wg size, is not baked into the shader, compared to glsl) BR, -R On Sat, Jul 14, 2018 at 4:18 PM, Jason Ekstrand wrote: > What is WorkDim? how is it different from the global and/or local workgroup > dimensions? > > On Thu, Jul 12, 2018 a

Re: [Mesa-dev] [PATCH 2/6] nir/spirv: implement BuiltInWorkDim

2018-07-14 Thread Jason Ekstrand
What is WorkDim? how is it different from the global and/or local workgroup dimensions? On Thu, Jul 12, 2018 at 4:30 AM Karol Herbst wrote: > From: Rob Clark > > Signed-off-by: Karol Herbst > --- > src/compiler/nir/nir.c | 2 ++ > src/compiler/nir/nir_intrinsics.py | 1 + > src/c

[Mesa-dev] [PATCH 2/6] nir/spirv: implement BuiltInWorkDim

2018-07-12 Thread Karol Herbst
From: Rob Clark Signed-off-by: Karol Herbst --- src/compiler/nir/nir.c | 2 ++ src/compiler/nir/nir_intrinsics.py | 1 + src/compiler/shader_enums.c| 1 + src/compiler/shader_enums.h| 1 + src/compiler/spirv/vtn_variables.c | 4 5 files changed, 9 insertions(+)