mesa/src
Timothy Arceri 9ce7d79cdc glsl: add a mechanism to allow layout qualifiers on function params
The spec is quite clear this is not allowed:

    From Section 4.4. (Layout Qualifiers) of the GLSL 4.60 spec:

       "Layout qualifiers can appear in several forms of declaration.
       They can appear as part of an interface block definition or
       block member, as shown in the grammar in the previous section.
       They can also appear with just an interface-qualifier to establish
       layouts of other declarations made with that qualifier:

          layout-qualifier interface-qualifier ;

       Or, they can appear with an individual variable declared with
       an interface qualifier:

          layout-qualifier interface-qualifier declaration ;"

    From Section 4.10 (Memory Qualifiers) of the GLSL 4.60 spec:

       "Layout qualifiers cannot be used on formal function parameters,
       and layout qualification is not included in parameter matching."

However on the Nvidia binary driver they actually fail to compile
if image function params don't have a layout qualifier. This results
in applications such as No Mans Sky using layout qualifiers on params.

I've submitted a CTS test to expose this problem in the Nvidia driver
but until that is resolved this patch will help Mesa drivers work
around the issue.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2018-08-30 09:54:40 +10:00
..
amd radv: Add missing checks in radv_get_image_format_properties. 2018-08-30 01:21:20 +02:00
broadcom
compiler glsl: add a mechanism to allow layout qualifiers on function params 2018-08-30 09:54:40 +10:00
egl
gallium gallivm: allow to pass two swizzles into fetches. 2018-08-30 00:15:40 +01:00
gbm
getopt
glx
gtest
hgl
intel intel/compiler: Remove surface_idx from brw_image_param 2018-08-29 14:04:03 -05:00
loader
mapi mesa: enable ARB_direct_state_access in compat for GL3.1+ 2018-08-30 07:57:38 +10:00
mesa glsl: add a mechanism to allow layout qualifiers on function params 2018-08-30 09:54:40 +10:00
util radeonsi: enable radeonsi_zerovram for No Mans Sky 2018-08-30 07:57:38 +10:00
vulkan vulkan/alloc: Add a vk_strdup helper 2018-08-28 13:05:54 -05:00
Makefile.am
SConscript
meson.build