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(-) -- 2.9.5 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev