glsl: Add support for the framebuffer fetch layout(noncoherent) qualifier.
authorFrancisco Jerez <currojerez@riseup.net>
Mon, 12 Feb 2018 23:54:33 +0000 (15:54 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Sat, 24 Feb 2018 23:28:36 +0000 (15:28 -0800)
commitef9e3f63ca369e3549b4f17b39934dc4b3cbbb05
treef7419d5cecdaecbdc179a80452fdb890e26ec37f
parent0aeec504b484cb37b856dd574974d739f35e968b
glsl: Add support for the framebuffer fetch layout(noncoherent) qualifier.

This allows the application to request framebuffer fetch coherency
with per-fragment output granularity.  Coherent framebuffer fetch
outputs (which is the default if no qualifier is present for
compatibility with older versions of the EXT_shader_framebuffer_fetch
extension) will have ir_variable_data::memory_coherent set to true.

Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
src/compiler/glsl/ast.h
src/compiler/glsl/ast_to_hir.cpp
src/compiler/glsl/ast_type.cpp
src/compiler/glsl/builtin_variables.cpp
src/compiler/glsl/glsl_parser.yy