mesa/src
Jason Ekstrand ab9220edd6 nir,intel/compiler: Use a fixed subgroup size
The GL_ARB_shader_ballot spec says that gl_SubGroupSizeARB is declared
as a uniform.  This means that it cannot change across an invocation
such as a draw call or a compute dispatch.  For compute shaders, we're
ok because we only ever use one dispatch size.  For fragment, however,
the hardware dynamically chooses between SIMD8 and SIMD16 which violates
the spec.  Instead, let's just pick a subgroup size based on the shader
stage.  The fixed size we choose for compute shaders is a bit higher
than strictly needed but there's no real harm in that.  The advantage is
that, if they do anything interesting with the value, NIR will see it as
an immediate and can optimize better.

Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
2017-11-07 10:37:52 -08:00
..
amd radeonsi: use ac_create_target_machine 2017-11-07 17:58:38 +01:00
broadcom broadcom/vc5: Fix mipmap filtering enums. 2017-11-07 09:40:25 -08:00
compiler nir,intel/compiler: Use a fixed subgroup size 2017-11-07 10:37:52 -08:00
egl meson: standardize .so version to major.minor.patch 2017-11-07 10:47:20 +00:00
gallium broadcom/vc5: Skip emitting textures that aren't used. 2017-11-07 09:40:25 -08:00
gbm meson: standardize .so version to major.minor.patch 2017-11-07 10:47:20 +00:00
getopt
glx meson: standardize .so version to major.minor.patch 2017-11-07 10:47:20 +00:00
gtest meson: convert gtest to an internal dependency 2017-10-03 10:02:08 -07:00
hgl
intel nir,intel/compiler: Use a fixed subgroup size 2017-11-07 10:37:52 -08:00
loader radeonsi: remove unused field in the PCI ID table 2017-11-07 17:26:36 +01:00
mapi meson: drop GLESv1 .so version back to 1.0.0 2017-11-07 10:47:20 +00:00
mesa intel/cs: Push subgroup ID instead of base thread ID 2017-11-07 10:37:52 -08:00
util disk_cache: Fix issue reading GLSL metadata 2017-10-31 23:36:54 -07:00
vulkan vulkan: Update headers and registry to 1.0.64 2017-10-26 05:17:57 +10:00
git_sha1.h.in meson: Build i965 and dri stack 2017-10-09 13:42:44 -07:00
Makefile.am automake: include git_sha1.h.in in release tarball 2017-11-06 18:18:42 +01:00
meson.build meson: build classic osmesa 2017-10-27 11:06:45 -07:00
SConscript buildsys: move file regeneration logic to the script itself 2017-10-27 13:38:37 +01:00