diff options
author | Jason Ekstrand <[email protected]> | 2016-02-09 18:17:06 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-02-13 17:22:36 -0800 |
commit | 95ea9f770878517364ac2161eb943afbc77bfef9 (patch) | |
tree | 1051207ec3cfdfd8da23828fef8ed591602c7660 /src/compiler/glsl/ast_to_hir.cpp | |
parent | 5ec6a65388871cc11ba9058dac4a76f4181c2334 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ast_to_hir.cpp')
-rw-r--r-- | src/compiler/glsl/ast_to_hir.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp index 3996b01c9f9..b63937899cb 100644 --- a/src/compiler/glsl/ast_to_hir.cpp +++ b/src/compiler/glsl/ast_to_hir.cpp @@ -1135,6 +1135,7 @@ do_comparison(void *mem_ctx, int operation, ir_rvalue *op0, ir_rvalue *op1) case GLSL_TYPE_INTERFACE: case GLSL_TYPE_ATOMIC_UINT: case GLSL_TYPE_SUBROUTINE: + case GLSL_TYPE_FUNCTION: /* I assume a comparison of a struct containing a sampler just * ignores the sampler present in the type. */ |