glsl/types: Add support for function types
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 10 Feb 2016 02:17:06 +0000 (18:17 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sun, 14 Feb 2016 01:22:36 +0000 (17:22 -0800)
commit95ea9f770878517364ac2161eb943afbc77bfef9
tree1051207ec3cfdfd8da23828fef8ed591602c7660
parent5ec6a65388871cc11ba9058dac4a76f4181c2334
glsl/types: Add support for function types

SPIR-V has a concept of a function type that's used fairly heavily.  We
could special-case function types in SPIR-V -> NIR but it's easier if we
just add support to glsl_types.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/compiler/glsl/ast_to_hir.cpp
src/compiler/glsl/ir_clone.cpp
src/compiler/glsl/link_uniform_initializers.cpp
src/compiler/glsl/tests/uniform_initializer_utils.cpp
src/compiler/glsl_types.cpp
src/compiler/glsl_types.h
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp