mesa/src/compiler
Pierre-Eric Pelloux-Prayer 49d35f3d88 glsl: declare gl_Layer/gl_ViewportIndex/gl_ViewportMask as vs builtins
Otherwise a VS doing the following:

out gl_PerVertex {
    vec4 gl_Position;
    int gl_ViewportIndex;
};

cannot be compiled because of the following error:
  "redeclaration of gl_PerVertex must be a subset of the built-in
  members of gl_PerVertex"

v2: add GLSL_PRECISION_HIGH param to add_varying() for "gl_Layer" in
    generate_fs_special_vars.
v3: add GLSL_PRECISION_HIGH param to add_varying() for "gl_Layer" in
    generate_varyings.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2946
Tested-by: John Galt <johngalt@fake.mail>
Reviewed-by: Marek Olšák <marek.olsak@amd.com> (v3)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (v3)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5167>
2020-07-09 11:59:09 +00:00
..
glsl glsl: declare gl_Layer/gl_ViewportIndex/gl_ViewportMask as vs builtins 2020-07-09 11:59:09 +00:00
nir nir/validate: Don't abort() until after the shader has printed 2020-07-08 19:51:58 +00:00
spirv Revert "nir: Support sysval tess levels in SPIR-V to NIR" 2020-07-06 08:48:10 -04:00
Android.glsl.gen.mk mesa: android: Remove unnecessary dependency tracking rules 2019-05-06 11:29:25 +00:00
Android.glsl.mk android: glsl: build shader cache sources 2017-02-20 16:30:37 +00:00
Android.mk
Android.nir.gen.mk nir: Add missing dependency in Android.nir.gen.mk 2019-08-19 09:53:18 +03:00
Android.nir.mk android: fix libmesa_nir build 2017-07-21 08:47:56 +03:00
builtin_type_macros.h glsl_types: vec8/vec16 support 2018-03-25 10:42:54 -04:00
glsl_types.cpp nir: add int16 and uint16 type helpers 2020-06-02 20:01:18 +00:00
glsl_types.h glsl: don't lower builtins to mediump that don't allow it 2020-07-07 22:02:06 -04:00
Makefile.sources nir: Add nir_lower_clip_disable.c to SCons build. 2020-07-04 01:04:54 +00:00
meson.build meson: use gnu_symbol_visibility argument 2020-06-01 18:59:18 +00:00
nir_types.cpp nir: add glsl_get_ifc_packing() helper 2020-06-03 02:22:23 +00:00
nir_types.h nir: add glsl_get_ifc_packing() helper 2020-06-03 02:22:23 +00:00
SConscript spirv: Fix building with SCons 2018-03-30 14:33:03 -06:00
SConscript.glsl Move compiler.h and imports.h/c from src/mesa/main into src/util 2020-03-27 21:00:09 +00:00
SConscript.nir nir: mako all the intrinsics 2018-03-27 08:36:37 -04:00
SConscript.spirv spirv: Fix building with SCons 2018-03-30 14:33:03 -06:00
shader_enums.c compiler: Add a system value for the line coord 2020-07-06 21:59:15 +00:00
shader_enums.h compiler: Add a system value for the line coord 2020-07-06 21:59:15 +00:00
shader_info.h nir: gather which images are MSAA 2020-06-02 20:47:49 +00:00