[Mesa-dev] [PATCH 0/3] Fix gl_SubGroupG{e,t}MaskARB

Neil Roberts nroberts at igalia.com
Tue Oct 31 17:55:12 UTC 2017

Here are some patches to fix the values for gl_SubGroupG{e,t}MaskARB.
This fixes a corresponding CTS test.

The first patch alone fixes the problem but it generates somewhat
inefficient code. The next two patches try to address this but I’m not
really sure whether it’s worth it and maybe someone with more
experience of nir can recommend a better way to do it.

I will also post a patch for the Piglit test.

- Neil

Neil Roberts (3):
  nir/opt_intrinsics: Fix values for gl_SubGroupG{e,t}MaskARB
  nir: Add an intrinsic for a bitmask of the whole subgroup
  i965/fs/nir: Don’t let nir lower nir_intrinsic_load_subgroup_all_mask

 src/compiler/nir/nir.h                |  1 +
 src/compiler/nir/nir_intrinsics.h     |  1 +
 src/compiler/nir/nir_opt_intrinsics.c | 47 +++++++++++++++++++++++++++++++++--
 src/intel/compiler/brw_compiler.c     |  1 +
 src/intel/compiler/brw_fs_nir.cpp     |  6 +++++
 5 files changed, 54 insertions(+), 2 deletions(-)


More information about the mesa-dev mailing list