mesa/src
Neil Roberts f33f5e9ad6 nir/opt_intrinsics: Fix values for gl_SubGroupG{e,t}MaskARB
Previously the values were calculated by just shifting ~0 by the
invocation ID. This would end up including bits that are higher than
gl_SubGroupSizeARB. The corresponding CTS test effectively requires that
these high bits be zero so it was failing. There is a Piglit test as
well but this appears to checking the wrong values so it passes.

For the two greater-than bitmasks, this patch adds an extra mask with
(~0>>(64-gl_SubGroupSizeARB)) to force these bits to zero.

Fixes: KHR-GL45.shader_ballot_tests.ShaderBallotBitmasks

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102680#c3
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Neil Roberts <nroberts@igalia.com>
(cherry picked from commit b697ece10a)
2017-11-07 18:35:53 +02:00
..
amd amd/common/gfx9: workaround DCC corruption more conservatively 2017-11-07 18:35:53 +02:00
broadcom broadcom: correct header file in BROADCOM_FILES 2017-07-24 01:40:05 +03:00
compiler nir/opt_intrinsics: Fix values for gl_SubGroupG{e,t}MaskARB 2017-11-07 18:35:53 +02:00
egl wayland-drm: use a copy of the wayland_drm_callbacks struct 2017-10-17 16:59:31 +01:00
gallium radeon/video: add gfx9 offsets when rejoin the video surface 2017-11-07 18:35:53 +02:00
gbm gbm: fix typo 2017-07-19 15:51:54 +01:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx glxcmds: Fix a typo in the __APPLE__ codepath 2017-08-17 15:48:20 -07:00
gtest gtest: Update to 1.8.0. 2017-01-20 11:40:52 -08:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel intel/compiler/gen9: Pixel shader header only workaround 2017-11-07 18:35:53 +02:00
loader dri3: Wait for all pending swapbuffers to be scheduled before touching the front 2017-08-05 00:09:25 +01:00
mapi mapi: add missing no_error tag to glBlitNamedFramebuffer() 2017-07-18 10:07:34 +02:00
mesa i965: Check CCS_E compatibility for texture view rendering 2017-11-07 18:35:53 +02:00
util util/queue: fix a race condition in the fence code 2017-10-11 17:22:55 +01:00
vulkan vulkan/wsi: Free the event in x11_manage_fifo_queues(). 2017-10-27 18:04:59 +03:00
Makefile.am build systems: move git_sha1_gen.sh to bin/ 2017-07-06 22:59:39 +01:00
SConscript scons: use python3-compatible print() 2017-10-17 16:59:31 +01:00